Interface IDelegateBukkitImplAdapter<T>
- All Superinterfaces:
BukkitImplAdapter<T>
,IBukkitAdapter
- All Known Implementing Classes:
FaweAdapter
-
Method Summary
Modifier and TypeMethodDescriptiondefault <B extends BlockStateHolder<B>>
BlockDataadapt
(B block) Create a Bukkit BlockData from a WorldEdit BlockStateHolderdefault ItemStack
adapt
(BaseItemStack item) Create a Bukkit ItemStack with NBT, if available.default Player
Create a Bukkit Player from a WorldEdit Player.default Biome
default Material
Create a Bukkit Material form a WorldEdit BlockTypedefault EntityType
adapt
(EntityType entityType) default Material
Create a Bukkit Material form a WorldEdit ItemTypedefault World
Create a Bukkit world from a WorldEdit world.default BiomeType
default BlockState
Create a WorldEdit BlockStateHolder from a Bukkit BlockDatadefault Entity
Create a WorldEdit entity from a Bukkit entity.default EntityType
adapt
(EntityType entityType) Create a WorldEdit EntityType from a Bukkit one.default BukkitPlayer
Create a WorldEdit Player from a Bukkit Player.default GameMode
Create a WorldEdit GameMode from a Bukkit one.default BaseItemStack
Create a WorldEdit ItemStack with NBT, if available.default World
Create a WorldEdit world from a Bukkit world.default Location
adapt
(World world, BlockVector3 position) default Location
Create a Bukkit location from a WorldEdit position with a Bukkit world.default Location
Create a Bukkit location from a WorldEdit location with a Bukkit world.default BlockState
asBlockState
(ItemStack itemStack) Create a WorldEdit BlockStateHolder from a Bukkit ItemStackdefault BlockType
asBlockType
(Material material) Converts a Material to a BlockTypedefault BlockVector3
asBlockVector
(Location location) Create a WorldEdit BlockVector from a Bukkit location.default BukkitWorld
asBukkitWorld
(World world) Convert any WorldEdit world into an equivalent wrapped Bukkit world.default ItemType
asItemType
(Material material) Converts a Material to a ItemTypedefault Vector3
Create a WorldEdit Vector from a Bukkit location.default boolean
clearContainerBlockContents
(World world, BlockVector3 pt) Clears the contents of a Clearable block.default Entity
createEntity
(Location location, BaseEntity state) Create the given entity.default World
createWorld
(WorldCreator creator) default boolean
Checks equality between a WorldEdit BlockType and a Bukkit Materialdefault T
fromNative
(Tag foreign) default T
fromNativeLin
(org.enginehub.linbus.tree.LinTag foreign) default BiomeType
Gets the current biome at a location.default BlockState
Get the block at the given location.default DataFixer
Get a data fixer, or null if not supported.default BaseEntity
Get the state for the given entity.default OptionalInt
Retrieve the internal ID for a given state, if possible.default OptionalInt
default BlockMaterial
getMaterial
(BlockState blockState) default BlockMaterial
getMaterial
(BlockType blockType) getProperties
(BlockType blockType) Get a map ofstring -> property
.default void
sendBiomeUpdates
(World world, Iterable<BlockVector2> chunks) Sends biome updates for the given chunks.default void
sendFakeChunk
(World world, Player player, ChunkPacket packet) Send a fake chunk packet to a player.default void
sendFakeNBT
(Player player, BlockVector3 pos, org.enginehub.linbus.tree.LinCompoundTag nbtData) Send the given NBT data to the player.default void
sendFakeOP
(Player player) Make the client think it has operator status.default void
Set the biome at a location.default boolean
simulateItemUse
(World world, BlockVector3 position, BaseItem item, Direction face) Simulates a player using an item.default boolean
Check if this adapter supports the watchdog.default void
Tick the server watchdog, if possible.default Tag
default org.enginehub.linbus.tree.LinTag
<?> toNativeLin
(T foreign) 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
generateTree, getEntities
-
Method Details
-
getParent
BukkitImplAdapter<T> getParent() -
getDataFixer
Description copied from interface:BukkitImplAdapter
Get a data fixer, or null if not supported.- Specified by:
getDataFixer
in interfaceBukkitImplAdapter<T>
- Returns:
- the data fixer
-
supportsWatchdog
default boolean supportsWatchdog()Description copied from interface:BukkitImplAdapter
Check if this adapter supports the watchdog.- Specified by:
supportsWatchdog
in interfaceBukkitImplAdapter<T>
- Returns:
true
ifBukkitImplAdapter.tickWatchdog()
is implemented
-
tickWatchdog
default void tickWatchdog()Description copied from interface:BukkitImplAdapter
Tick the server watchdog, if possible.- Specified by:
tickWatchdog
in interfaceBukkitImplAdapter<T>
-
getBlock
Description copied from interface:BukkitImplAdapter
Get the block at the given location.- Specified by:
getBlock
in interfaceBukkitImplAdapter<T>
- Parameters:
location
- the location- Returns:
- the block
-
getEntity
Description copied from interface:BukkitImplAdapter
Get the state for the given entity.- Specified by:
getEntity
in interfaceBukkitImplAdapter<T>
- Parameters:
entity
- the entity- Returns:
- the state, or null
-
createEntity
Description copied from interface:BukkitImplAdapter
Create the given entity.- Specified by:
createEntity
in interfaceBukkitImplAdapter<T>
- Parameters:
location
- the locationstate
- the state- Returns:
- the created entity or null
-
getProperties
Description copied from interface:BukkitImplAdapter
Get a map ofstring -> property
.- Specified by:
getProperties
in interfaceBukkitImplAdapter<T>
- Parameters:
blockType
- The block type- Returns:
- The properties map
-
sendFakeNBT
default void sendFakeNBT(Player player, BlockVector3 pos, org.enginehub.linbus.tree.LinCompoundTag nbtData) Description copied from interface:BukkitImplAdapter
Send the given NBT data to the player.- Specified by:
sendFakeNBT
in interfaceBukkitImplAdapter<T>
- Parameters:
player
- The playerpos
- The positionnbtData
- The NBT Data
-
sendFakeOP
Description copied from interface:BukkitImplAdapter
Make the client think it has operator status. This does not give them any operator capabilities.- Specified by:
sendFakeOP
in interfaceBukkitImplAdapter<T>
- Parameters:
player
- The player
-
simulateItemUse
Description copied from interface:BukkitImplAdapter
Simulates a player using an item.- Specified by:
simulateItemUse
in interfaceBukkitImplAdapter<T>
- Parameters:
world
- the worldposition
- the locationitem
- the item to be usedface
- the direction in which to "face" when using the item- Returns:
- whether the usage was successful
-
adapt
Description copied from interface:BukkitImplAdapter
Create a Bukkit ItemStack with NBT, if available.- Specified by:
adapt
in interfaceBukkitImplAdapter<T>
- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
item
- the WorldEdit BaseItemStack to adapt- Returns:
- the Bukkit ItemStack
-
adapt
Description copied from interface:BukkitImplAdapter
Create a WorldEdit ItemStack with NBT, if available.- Specified by:
adapt
in interfaceBukkitImplAdapter<T>
- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
itemStack
- the Bukkit ItemStack to adapt- Returns:
- the WorldEdit BaseItemStack
-
getInternalBlockStateId
- Specified by:
getInternalBlockStateId
in interfaceBukkitImplAdapter<T>
-
getInternalBlockStateId
Description copied from interface:BukkitImplAdapter
Retrieve the internal ID for a given state, if possible.- Specified by:
getInternalBlockStateId
in interfaceBukkitImplAdapter<T>
- Parameters:
state
- The block state- Returns:
- the internal ID of the state
-
clearContainerBlockContents
Description copied from interface:BukkitImplAdapter
Clears the contents of a Clearable block.- Specified by:
clearContainerBlockContents
in interfaceBukkitImplAdapter<T>
- Parameters:
world
- The worldpt
- The location- Returns:
- If a block was cleared
-
setBiome
Description copied from interface:BukkitImplAdapter
Set the biome at a location.- Specified by:
setBiome
in interfaceBukkitImplAdapter<T>
- Parameters:
location
- the locationbiome
- the new biome
-
getBiome
Description copied from interface:BukkitImplAdapter
Gets the current biome at a location.- Specified by:
getBiome
in interfaceBukkitImplAdapter<T>
- Parameters:
location
- the location- Returns:
- the biome
-
sendBiomeUpdates
Description copied from interface:BukkitImplAdapter
Sends 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.
- Specified by:
sendBiomeUpdates
in interfaceBukkitImplAdapter<T>
- Parameters:
world
- the worldchunks
- a list of chunk coordinates to send biome updates for
-
getMaterial
- Specified by:
getMaterial
in interfaceBukkitImplAdapter<T>
-
getMaterial
- Specified by:
getMaterial
in interfaceBukkitImplAdapter<T>
-
toNative
- Specified by:
toNative
in interfaceBukkitImplAdapter<T>
-
toNativeLin
- Specified by:
toNativeLin
in interfaceBukkitImplAdapter<T>
-
fromNative
- Specified by:
fromNative
in interfaceBukkitImplAdapter<T>
-
fromNativeLin
- Specified by:
fromNativeLin
in interfaceBukkitImplAdapter<T>
-
createWorld
- Specified by:
createWorld
in interfaceBukkitImplAdapter<T>
-
sendFakeChunk
Description copied from interface:BukkitImplAdapter
Send a fake chunk packet to a player.- Specified by:
sendFakeChunk
in interfaceBukkitImplAdapter<T>
-
asBukkitWorld
Description copied from interface:IBukkitAdapter
Convert any WorldEdit world into an equivalent wrapped Bukkit world.If a matching world cannot be found, a
RuntimeException
will be thrown.- Specified by:
asBukkitWorld
in interfaceIBukkitAdapter
- Parameters:
world
- the world- Returns:
- a wrapped Bukkit world
-
adapt
Description copied from interface:IBukkitAdapter
Create a Bukkit world from a WorldEdit world.- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
world
- the WorldEdit world- Returns:
- a Bukkit world
-
adapt
Description copied from interface:IBukkitAdapter
Create a Bukkit location from a WorldEdit position with a Bukkit world.- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
world
- the Bukkit worldposition
- the WorldEdit position- Returns:
- a Bukkit location
-
adapt
- Specified by:
adapt
in interfaceIBukkitAdapter
-
adapt
Description copied from interface:IBukkitAdapter
Create a Bukkit location from a WorldEdit location with a Bukkit world.- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
world
- the Bukkit worldlocation
- the WorldEdit location- Returns:
- a Bukkit location
-
asVector
Description copied from interface:IBukkitAdapter
Create a WorldEdit Vector from a Bukkit location.- Specified by:
asVector
in interfaceIBukkitAdapter
- Parameters:
location
- The Bukkit location- Returns:
- a WorldEdit vector
-
asBlockVector
Description copied from interface:IBukkitAdapter
Create a WorldEdit BlockVector from a Bukkit location.- Specified by:
asBlockVector
in interfaceIBukkitAdapter
- Parameters:
location
- The Bukkit location- Returns:
- a WorldEdit vector
-
adapt
Description copied from interface:IBukkitAdapter
Create a WorldEdit entity from a Bukkit entity.- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
entity
- the Bukkit entity- Returns:
- a WorldEdit entity
-
adapt
Description copied from interface:IBukkitAdapter
Create a Bukkit Material form a WorldEdit ItemType- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
itemType
- The WorldEdit ItemType- Returns:
- The Bukkit Material
-
adapt
Description copied from interface:IBukkitAdapter
Create a Bukkit Material form a WorldEdit BlockType- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
blockType
- The WorldEdit BlockType- Returns:
- The Bukkit Material
-
adapt
- Specified by:
adapt
in interfaceIBukkitAdapter
-
asBlockType
Description copied from interface:IBukkitAdapter
Converts a Material to a BlockType- Specified by:
asBlockType
in interfaceIBukkitAdapter
- Parameters:
material
- The material- Returns:
- The blocktype
-
asItemType
Description copied from interface:IBukkitAdapter
Converts a Material to a ItemType- Specified by:
asItemType
in interfaceIBukkitAdapter
- Parameters:
material
- The material- Returns:
- The itemtype
-
adapt
Description copied from interface:IBukkitAdapter
Create a WorldEdit BlockStateHolder from a Bukkit BlockData- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
blockData
- The Bukkit BlockData- Returns:
- The WorldEdit BlockState
-
adapt
Description copied from interface:IBukkitAdapter
Create a Bukkit BlockData from a WorldEdit BlockStateHolder- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
block
- The WorldEdit BlockStateHolder- Returns:
- The Bukkit BlockData
-
adapt
Description copied from interface:IBukkitAdapter
Create a WorldEdit Player from a Bukkit Player.- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
player
- The Bukkit player- Returns:
- The WorldEdit player
-
adapt
Description copied from interface:IBukkitAdapter
Create a Bukkit Player from a WorldEdit Player.- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
player
- The WorldEdit player- Returns:
- The Bukkit player
-
adapt
- Specified by:
adapt
in interfaceIBukkitAdapter
-
adapt
- Specified by:
adapt
in interfaceIBukkitAdapter
-
equals
Description copied from interface:IBukkitAdapter
Checks equality between a WorldEdit BlockType and a Bukkit Material- Specified by:
equals
in interfaceIBukkitAdapter
- Parameters:
blockType
- The WorldEdit BlockTypetype
- The Bukkit Material- Returns:
- If they are equal
-
adapt
Description copied from interface:IBukkitAdapter
Create a WorldEdit world from a Bukkit world.- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
world
- the Bukkit world- Returns:
- a WorldEdit world
-
adapt
Description copied from interface:IBukkitAdapter
Create a WorldEdit GameMode from a Bukkit one.- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
gameMode
- Bukkit GameMode- Returns:
- WorldEdit GameMode
-
adapt
Description copied from interface:IBukkitAdapter
Create a WorldEdit EntityType from a Bukkit one.- Specified by:
adapt
in interfaceIBukkitAdapter
- Parameters:
entityType
- Bukkit EntityType- Returns:
- WorldEdit EntityType
-
asBlockState
Description copied from interface:IBukkitAdapter
Create a WorldEdit BlockStateHolder from a Bukkit ItemStack- Specified by:
asBlockState
in interfaceIBukkitAdapter
- Parameters:
itemStack
- The Bukkit ItemStack- Returns:
- The WorldEdit BlockState
-