public class MapDecoration
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MapDecoration.Type |
Constructor and Description |
---|
MapDecoration(MapDecoration.Type typeIn,
byte xIn,
byte yIn,
byte rotationIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object p_equals_1_) |
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() |
public MapDecoration(MapDecoration.Type typeIn, byte xIn, byte yIn, byte rotationIn)
public byte getImage()
public MapDecoration.Type getType()
public byte getX()
public byte getY()
public byte getRotation()
public boolean renderOnFrame()
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