public class MapDecoration
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MapDecoration.Type |
Modifier and Type | Field and Description |
---|---|
private ITextComponent |
customName |
private byte |
rotation |
private MapDecoration.Type |
type |
private byte |
x |
private byte |
y |
Constructor and Description |
---|
MapDecoration(MapDecoration.Type p_i48875_1_,
byte p_i48875_2_,
byte p_i48875_3_,
byte p_i48875_4_,
ITextComponent p_i48875_5_) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object p_equals_1_) |
ITextComponent |
getCustomName() |
byte |
getImage() |
byte |
getRotation() |
MapDecoration.Type |
getType() |
byte |
getX() |
byte |
getY() |
int |
hashCode() |
boolean |
render(int index)
Renders this decoration, useful for custom sprite sheets.
|
boolean |
renderOnFrame() |
private final MapDecoration.Type type
private byte x
private byte y
private byte rotation
private final ITextComponent customName
public MapDecoration(MapDecoration.Type p_i48875_1_, byte p_i48875_2_, byte p_i48875_3_, byte p_i48875_4_, @Nullable ITextComponent p_i48875_5_)
public byte getImage()
public MapDecoration.Type getType()
public byte getX()
public byte getY()
public byte getRotation()
public boolean renderOnFrame()
@Nullable public ITextComponent getCustomName()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean render(int index)
index
- The index of this icon in the MapData's list. Used by vanilla to offset the Z-coordinate to prevent Z-fighting