Package net.minecraft.world.storage
Class MapDecoration
- java.lang.Object
-
- net.minecraft.world.storage.MapDecoration
-
public class MapDecoration extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MapDecoration.Type
-
Field Summary
Fields Modifier and Type Field Description private ITextComponent
name
private byte
rot
private MapDecoration.Type
type
private byte
x
private byte
y
-
Constructor Summary
Constructors Constructor Description MapDecoration(MapDecoration.Type p_i48875_1_, byte p_i48875_2_, byte p_i48875_3_, byte p_i48875_4_, ITextComponent p_i48875_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object p_equals_1_)
byte
getImage()
ITextComponent
getName()
byte
getRot()
MapDecoration.Type
getType()
byte
getX()
byte
getY()
int
hashCode()
boolean
render(int index)
Renders this decoration, useful for custom sprite sheets.boolean
renderOnFrame()
-
-
-
Field Detail
-
type
private final MapDecoration.Type type
-
x
private byte x
-
y
private byte y
-
rot
private byte rot
-
name
private final ITextComponent name
-
-
Constructor Detail
-
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 Detail
-
getImage
public byte getImage()
-
getType
public MapDecoration.Type getType()
-
getX
public byte getX()
-
getY
public byte getY()
-
getRot
public byte getRot()
-
renderOnFrame
public boolean renderOnFrame()
-
getName
@Nullable public ITextComponent getName()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
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
-
-