Interface BukkitImplAdapter<T>
- All Superinterfaces:
- IBukkitAdapter
- All Known Subinterfaces:
- IDelegateBukkitImplAdapter<T>
- All Known Implementing Classes:
- FaweAdapter
An interface for adapters of various Bukkit implementations.
- 
Method SummaryModifier and TypeMethodDescriptionadapt(BaseItemStack item) Create a Bukkit ItemStack with NBT, if available.Create a WorldEdit ItemStack with NBT, if available.booleancanPlaceAt(World world, BlockVector3 position, BlockState blockState) Gets whether the givenBlockStatecan be placed here.default booleanclearContainerBlockContents(World world, BlockVector3 pt) Clears the contents of a Clearable block.createEntity(Location location, BaseEntity state) Create the given entity.default WorldcreateWorld(WorldCreator creator) WorldNativeAccess<?, ?, ?> createWorldNativeAccess(World world) Create aWorldNativeAccessfor the given world reference.default TfromNative(Tag foreign) Deprecated.default TfromNativeLin(org.enginehub.linbus.tree.LinTag<?> foreign) default IChunkGetdefault BiomeTypeGets the current biome at a location.Get the block at the given location.Get a data fixer, or null if not supported.Get the state for the given entity.getFullBlock(Location location) Get the block with NBT data at the given location.default intgetInternalBiomeId(BiomeType biome) default OptionalIntRetrieve the internal ID for a given state, if possible.default OptionalIntdefault BlockMaterialgetMaterial(BlockState blockState) default BlockMaterialgetMaterial(BlockType blockType) default PlacementStateProcessorgetPlatformPlacementProcessor(Extent extent, BlockTypeMask mask, Region region) Returns anPlacementStateProcessorinstance for processing placed blocks to "fix" them.getProperties(BlockType blockType) Get a map ofstring -> property.default Iterable<NamespacedKey> Returns an iterable of all biomes known to the server.default Collection<String> Returns an iterable of all blocks in their default state as string representations known to the server.default RelighterFactorycom.sk89q.worldedit.util.formatting.text.ComponentgetRichBlockName(BlockType blockType) Gets the name for the given block.com.sk89q.worldedit.util.formatting.text.ComponentgetRichItemName(BaseItemStack itemStack) Gets the name for the given item stack.com.sk89q.worldedit.util.formatting.text.ComponentgetRichItemName(ItemType itemType) Gets the name for the given item.Get theSideEffects that this adapter supports.default IBatchProcessorReturns anIBatchProcessorinstance for post-processing of chunks to sort ticking of placed/existing blocks and fluids if the plugin is configured to do sodefault voidInitialize registries that require NMS access.default booleanregenerate(World world, Region region, Extent extent, RegenOptions options) Regenerate a region in the given world, so it appears "as new".default voidsendBiomeUpdates(World world, Iterable<BlockVector2> chunks) Sends biome updates for the given chunks.default voidsendFakeChunk(World world, Player player, ChunkPacket packet) Send a fake chunk packet to a player.voidsendFakeNBT(Player player, BlockVector3 pos, org.enginehub.linbus.tree.LinCompoundTag nbtData) Send the given NBT data to the player.voidsendFakeOP(Player player) Make the client think it has operator status.default voidSet the biome at a location.default booleansimulateItemUse(World world, BlockVector3 position, BaseItem item, Direction face) Simulates a player using an item.default booleanCheck if this adapter supports the watchdog.default voidTick the server watchdog, if possible.default TagDeprecated.default org.enginehub.linbus.tree.LinTag<?> toNativeLin(T foreign) Methods inherited from interface com.fastasyncworldedit.bukkit.adapter.IBukkitAdapteradapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, asBlockState, asBlockType, asBlockVector, asBukkitWorld, asItemType, asVector, equals, generateTree, getEntities
- 
Method Details- 
getDataFixerGet a data fixer, or null if not supported.- Returns:
- the data fixer
 
- 
supportsWatchdogdefault boolean supportsWatchdog()Check if this adapter supports the watchdog.- Returns:
- trueif- tickWatchdog()is implemented
 
- 
tickWatchdogdefault void tickWatchdog()Tick the server watchdog, if possible.
- 
getBlockGet the block at the given location.- Parameters:
- location- the location
- Returns:
- the block
 
- 
getFullBlockGet the block with NBT data at the given location.- Parameters:
- location- the location
- Returns:
- the block
 
- 
createWorldNativeAccessCreate aWorldNativeAccessfor the given world reference.- Parameters:
- world- the world reference
- Returns:
- the native access object
 
- 
getEntityGet the state for the given entity.- Parameters:
- entity- the entity
- Returns:
- the state, or null
 
- 
createEntityCreate the given entity.- Parameters:
- location- the location
- state- the state
- Returns:
- the created entity or null
 
- 
getRichBlockNameGets the name for the given block.- Parameters:
- blockType- the block
- Returns:
- The name
 
- 
getRichItemNameGets the name for the given item.- Parameters:
- itemType- the item
- Returns:
- The name
 
- 
getRichItemNameGets the name for the given item stack.- Parameters:
- itemStack- the item stack
- Returns:
- The name
 
- 
getPropertiesGet a map ofstring -> property.- Parameters:
- blockType- The block type
- Returns:
- The properties map
 
- 
sendFakeNBTSend the given NBT data to the player.- Parameters:
- player- The player
- pos- The position
- nbtData- The NBT Data
 
- 
sendFakeOPMake the client think it has operator status. This does not give them any operator capabilities.- Parameters:
- player- The player
 
- 
simulateItemUseSimulates a player using an item.- Parameters:
- world- the world
- position- the location
- item- the item to be used
- face- the direction in which to "face" when using the item
- Returns:
- whether the usage was successful
 
- 
canPlaceAtGets whether the givenBlockStatecan be placed here.- Parameters:
- world- The world
- position- The position
- blockState- The blockstate
- Returns:
- If it can be placed
 
- 
adaptCreate a Bukkit ItemStack with NBT, if available.- Specified by:
- adaptin interface- IBukkitAdapter
- Parameters:
- item- the WorldEdit BaseItemStack to adapt
- Returns:
- the Bukkit ItemStack
 
- 
adaptCreate a WorldEdit ItemStack with NBT, if available.- Specified by:
- adaptin interface- IBukkitAdapter
- Parameters:
- itemStack- the Bukkit ItemStack to adapt
- Returns:
- the WorldEdit BaseItemStack
 
- 
getSupportedSideEffectsSet<SideEffect> getSupportedSideEffects()Get theSideEffects that this adapter supports.- Returns:
- The side effects that are supported
 
- 
getInternalBlockStateId
- 
getInternalBlockStateIdRetrieve the internal ID for a given state, if possible.- Parameters:
- state- The block state
- Returns:
- the internal ID of the state
 
- 
regeneratedefault boolean regenerate(World world, Region region, Extent extent, RegenOptions options) throws Exception Regenerate a region in the given world, so it appears "as new".- Parameters:
- world- the world to regen in
- region- the region to regen
- extent- the extent to use for setting blocks
- options- the regeneration options
- Returns:
- true on success, false on failure
- Throws:
- Exception
 
- 
clearContainerBlockContentsClears the contents of a Clearable block.- Parameters:
- world- The world
- pt- The location
- Returns:
- If a block was cleared
 
- 
setBiomeSet the biome at a location.- Parameters:
- location- the location
- biome- the new biome
 
- 
getBiomeGets the current biome at a location.- Parameters:
- location- the location
- Returns:
- the biome
 
- 
initializeRegistriesdefault void initializeRegistries()Initialize registries that require NMS access.
- 
sendBiomeUpdatesSends biome updates for the given chunks.This doesn't modify biomes at all, it just sends the current state of the biomes in the world to all of the nearby players, updating the visual representation of the biomes on their clients. - Parameters:
- world- the world
- chunks- a list of chunk coordinates to send biome updates for
 
- 
getMaterial
- 
getMaterial
- 
getRegisteredDefaultBlockStatesReturns an iterable of all blocks in their default state as string representations known to the server.- Returns:
- an iterable containing the default state strings of all valid blocks
 
- 
toNativeDeprecated.
- 
toNativeLin
- 
fromNativeDeprecated.
- 
fromNativeLin
- 
createWorld
- 
sendFakeChunkSend a fake chunk packet to a player.
- 
get
- 
getInternalBiomeId
- 
getRegisteredBiomesReturns an iterable of all biomes known to the server.- Returns:
- all biomes known to the server.
 
- 
getRelighterFactory
- 
getAllProperties
- 
getTickingPostProcessorReturns anIBatchProcessorinstance for post-processing of chunks to sort ticking of placed/existing blocks and fluids if the plugin is configured to do so- Since:
- 2.1.0
 
- 
getPlatformPlacementProcessordefault PlacementStateProcessor getPlatformPlacementProcessor(Extent extent, BlockTypeMask mask, Region region) Returns anPlacementStateProcessorinstance for processing placed blocks to "fix" them.- Since:
- 2.12.3
 
 
-