Class CachedBukkitAdapter
java.lang.Object
com.fastasyncworldedit.bukkit.adapter.CachedBukkitAdapter
- All Implemented Interfaces:
IBukkitAdapter
- Direct Known Subclasses:
FaweAdapter
,SimpleBukkitAdapter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a WorldEdit BlockStateHolder from a Bukkit BlockData.asBlockType
(Material material) Converts a Material to a BlockTypeasItemType
(Material material) Converts a Material to a ItemType.protected abstract char[]
protected abstract int[]
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fastasyncworldedit.bukkit.adapter.IBukkitAdapter
adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, asBlockState, asBlockVector, asBukkitWorld, asVector, equals, generateTree, getEntities
-
Constructor Details
-
CachedBukkitAdapter
public CachedBukkitAdapter()
-
-
Method Details
-
asItemType
Converts a Material to a ItemType.- Specified by:
asItemType
in interfaceIBukkitAdapter
- Parameters:
material
- The material- Returns:
- The itemtype
-
asBlockType
Description copied from interface:IBukkitAdapter
Converts a Material to a BlockType- Specified by:
asBlockType
in interfaceIBukkitAdapter
- Parameters:
material
- The material- Returns:
- The blocktype
-
adapt
Create a WorldEdit BlockStateHolder from a Bukkit BlockData.- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
blockData
- The Bukkit BlockData- Returns:
- The WorldEdit BlockState
-
getIbdToStateOrdinal
protected abstract char[] getIbdToStateOrdinal() -
getOrdinalToIbdID
protected abstract int[] getOrdinalToIbdID()
-