Class FaweAdapter<TAG,SERVER_LEVEL>
java.lang.Object
com.fastasyncworldedit.bukkit.adapter.CachedBukkitAdapter
com.fastasyncworldedit.bukkit.adapter.FaweAdapter<TAG,SERVER_LEVEL>
- Type Parameters:
TAG
- the version-specific NBT tag typeSERVER_LEVEL
- the version-specific ServerLevel type
- All Implemented Interfaces:
IBukkitAdapter
,IDelegateBukkitImplAdapter<TAG>
,BukkitImplAdapter<TAG>
public abstract class FaweAdapter<TAG,SERVER_LEVEL>
extends CachedBukkitAdapter
implements IDelegateBukkitImplAdapter<TAG>
A base class for version-specific implementations of the BukkitImplAdapter
-
Field Summary
Modifier and TypeFieldDescriptionprotected char[]
protected boolean
protected int[]
protected final BukkitImplAdapter
<TAG> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
generateTree
(TreeGenerator.TreeType treeType, EditSession editSession, BlockVector3 blockVector3, World world) Generate a given tree type to the given editsession.protected abstract List
<BlockState> getCapturedBlockStatesCopy
(SERVER_LEVEL serverLevel) protected abstract SERVER_LEVEL
getServerLevel
(World world) protected abstract void
postCaptureBlockStates
(SERVER_LEVEL serverLevel) protected abstract void
preCaptureStates
(SERVER_LEVEL serverLevel) Methods inherited from class com.fastasyncworldedit.bukkit.adapter.CachedBukkitAdapter
adapt, asBlockType, asItemType, getIbdToStateOrdinal, getOrdinalToIbdID
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.bukkit.adapter.BukkitImplAdapter
canPlaceAt, createWorldNativeAccess, get, getAllProperties, getFullBlock, getInternalBiomeId, getRegisteredBiomes, getRelighterFactory, getRichBlockName, getRichItemName, getRichItemName, getSupportedSideEffects, getTickingPostProcessor, initializeRegistries, regenerate
Methods inherited from interface com.fastasyncworldedit.bukkit.adapter.IBukkitAdapter
getEntities
Methods inherited from interface com.fastasyncworldedit.bukkit.adapter.IDelegateBukkitImplAdapter
adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, asBlockState, asBlockType, asBlockVector, asBukkitWorld, asItemType, asVector, clearContainerBlockContents, createEntity, createWorld, equals, fromNative, fromNativeLin, getBiome, getBlock, getDataFixer, getEntity, getInternalBlockStateId, getInternalBlockStateId, getMaterial, getMaterial, getParent, getProperties, sendBiomeUpdates, sendFakeChunk, sendFakeNBT, sendFakeOP, setBiome, simulateItemUse, supportsWatchdog, tickWatchdog, toNative, toNativeLin
-
Field Details
-
parent
-
ibdToStateOrdinal
protected char[] ibdToStateOrdinal -
ordinalToIbdID
protected int[] ordinalToIbdID -
initialised
protected boolean initialised -
allBlockProperties
-
-
Constructor Details
-
FaweAdapter
-
-
Method Details
-
generateTree
public boolean generateTree(TreeGenerator.TreeType treeType, EditSession editSession, BlockVector3 blockVector3, World world) Description copied from interface:IBukkitAdapter
Generate a given tree type to the given editsession.- Specified by:
generateTree
in interfaceIBukkitAdapter
- Parameters:
treeType
- Type of tree to generateeditSession
- Editsession to set blocks toblockVector3
- Point to generate tree atworld
- World to "generate" tree from (seed-wise)- Returns:
- If successsful
-
preCaptureStates
-
getCapturedBlockStatesCopy
-
postCaptureBlockStates
-
getServerLevel
-