Class StateWrapper

java.lang.Object
com.plotsquared.bukkit.schematic.StateWrapper

public class StateWrapper extends Object
  • Field Details

    • tag

      public com.sk89q.jnbt.CompoundTag tag
  • Constructor Details

    • StateWrapper

      public StateWrapper(com.sk89q.jnbt.CompoundTag tag)
  • Method Details

    • jsonToColourCode

      public static String jsonToColourCode(String str)
    • restoreTag

      public boolean restoreTag(String worldName, int x, int y, int z)
      Restore the TileEntity data to the given world at the given coordinates.
      Parameters:
      worldName - World name
      x - x position
      y - y position
      z - z position
      Returns:
      true if successful
    • restoreTag

      public boolean restoreTag(@NonNull Block block)
      Restore the TileEntity data to the given block
      Parameters:
      block - Block to restore to
      Returns:
      true if successful
    • getId

      public String getId()
    • serializeInventory

      public List<com.sk89q.jnbt.CompoundTag> serializeInventory(ItemStack[] items)
    • serializeItem

      public Map<String,com.sk89q.jnbt.Tag> serializeItem(ItemStack item)