类 MapDecoration
java.lang.Object
net.minecraft.world.level.saveddata.maps.MapDecoration
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
type
-
x
private final byte x -
y
private final byte y -
rot
private final byte rot -
name
-
-
构造器详细资料
-
MapDecoration
public MapDecoration(MapDecoration.Type pType, byte pX, byte pY, byte pRot, @Nullable Component pName)
-
-
方法详细资料
-
getImage
public byte getImage() -
getType
-
getX
public byte getX() -
getY
public byte getY() -
getRot
public byte getRot() -
renderOnFrame
public boolean renderOnFrame() -
getName
-
equals
-
hashCode
public int hashCode() -
render
public boolean render(int index) Renders this decoration, useful for custom sprite sheets.- 参数:
index
- The index of this icon in the MapData's list. Used by vanilla to offset the Z-coordinate to prevent Z-fighting- 返回:
- false to run vanilla logic for this decoration, true to skip it
-