Class MapDecoration
java.lang.Object
net.minecraft.world.level.saveddata.maps.MapDecoration
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionMapDecoration(MapDecoration.Type p_77797_, byte p_77798_, byte p_77799_, byte p_77800_, Component p_77801_)  - 
Method Summary
 
- 
Field Details
- 
type
 - 
x
private final byte x - 
y
private final byte y - 
rot
private final byte rot - 
name
 
 - 
 - 
Constructor Details
- 
MapDecoration
public MapDecoration(MapDecoration.Type p_77797_, byte p_77798_, byte p_77799_, byte p_77800_, @Nullable Component p_77801_)  
 - 
 - 
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
 
 
 -