Package com.plotsquared.bukkit.schematic
Class StateWrapper
java.lang.Object
com.plotsquared.bukkit.schematic.StateWrapper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()com.sk89q.jnbt.CompoundTaggetTag()static StringjsonToColourCode(String str) booleanrestoreTag(@NonNull Block block) Restore the TileEntity data to the given blockbooleanrestoreTag(String worldName, int x, int y, int z) Restore the TileEntity data to the given world at the given coordinates.List<com.sk89q.jnbt.CompoundTag>serializeInventory(ItemStack[] items) serializeItem(ItemStack item)
-
Field Details
-
state
-
tag
public com.sk89q.jnbt.CompoundTag tag
-
-
Constructor Details
-
StateWrapper
-
StateWrapper
public StateWrapper(com.sk89q.jnbt.CompoundTag tag)
-
-
Method Details
-
jsonToColourCode
-
restoreTag
Restore the TileEntity data to the given world at the given coordinates.- Parameters:
worldName- World namex- x positiony- y positionz- z position- Returns:
- true if successful
-
restoreTag
Restore the TileEntity data to the given block- Parameters:
block- Block to restore to- Returns:
- true if successful
-
getTag
public com.sk89q.jnbt.CompoundTag getTag() -
getId
-
serializeInventory
-
serializeItem
-