Class CachedBukkitAdapter

java.lang.Object
com.fastasyncworldedit.bukkit.adapter.CachedBukkitAdapter
All Implemented Interfaces:
IBukkitAdapter
Direct Known Subclasses:
FaweAdapter, SimpleBukkitAdapter

public abstract class CachedBukkitAdapter extends Object implements IBukkitAdapter
  • Constructor Details

    • CachedBukkitAdapter

      public CachedBukkitAdapter()
  • Method Details

    • asItemType

      public ItemType asItemType(Material material)
      Converts a Material to a ItemType.
      Specified by:
      asItemType in interface IBukkitAdapter
      Parameters:
      material - The material
      Returns:
      The itemtype
    • asBlockType

      public BlockType asBlockType(Material material)
      Description copied from interface: IBukkitAdapter
      Converts a Material to a BlockType
      Specified by:
      asBlockType in interface IBukkitAdapter
      Parameters:
      material - The material
      Returns:
      The blocktype
    • adapt

      public BlockState adapt(BlockData blockData)
      Create a WorldEdit BlockStateHolder from a Bukkit BlockData.
      Specified by:
      adapt in interface IBukkitAdapter
      Parameters:
      blockData - The Bukkit BlockData
      Returns:
      The WorldEdit BlockState
    • getIbdToStateOrdinal

      protected abstract char[] getIbdToStateOrdinal()
    • getOrdinalToIbdID

      protected abstract int[] getOrdinalToIbdID()