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 type
SERVER_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 Details

    • parent

      protected final BukkitImplAdapter<TAG> parent
    • ibdToStateOrdinal

      protected char[] ibdToStateOrdinal
    • ordinalToIbdID

      protected int[] ordinalToIbdID
    • initialised

      protected boolean initialised
    • allBlockProperties

      protected Map<String,List<Property<?>>> allBlockProperties
  • Constructor Details

  • 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 interface IBukkitAdapter
      Parameters:
      treeType - Type of tree to generate
      editSession - Editsession to set blocks to
      blockVector3 - Point to generate tree at
      world - World to "generate" tree from (seed-wise)
      Returns:
      If successsful
    • preCaptureStates

      protected abstract void preCaptureStates(SERVER_LEVEL serverLevel)
    • getCapturedBlockStatesCopy

      protected abstract List<BlockState> getCapturedBlockStatesCopy(SERVER_LEVEL serverLevel)
    • postCaptureBlockStates

      protected abstract void postCaptureBlockStates(SERVER_LEVEL serverLevel)
    • getServerLevel

      protected abstract SERVER_LEVEL getServerLevel(World world)