Package net.minecraft.world.storage
Class MapDecoration
java.lang.Object
net.minecraft.world.storage.MapDecoration
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ITextComponent
private byte
private final MapDecoration.Type
private byte
private byte
-
Constructor Summary
ConstructorDescriptionMapDecoration
(MapDecoration.Type p_i48875_1_, byte p_i48875_2_, byte p_i48875_3_, byte p_i48875_4_, ITextComponent p_i48875_5_) -
Method Summary
-
Field Details
-
type
-
x
private byte x -
y
private byte y -
rot
private byte rot -
name
-
-
Constructor Details
-
MapDecoration
public MapDecoration(MapDecoration.Type p_i48875_1_, byte p_i48875_2_, byte p_i48875_3_, byte p_i48875_4_, @Nullable ITextComponent p_i48875_5_)
-
-
Method Details
-
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.- Parameters:
index
- The index of this icon in the MapData's list. Used by vanilla to offset the Z-coordinate to prevent Z-fighting- Returns:
- false to run vanilla logic for this decoration, true to skip it
-