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 ItemStackadapt(BaseItemStack item) Create a Bukkit ItemStack with NBT, if available.default PlayerCreate a Bukkit Player from a WorldEdit Player.default Biomedefault MaterialCreate a Bukkit Material form a WorldEdit BlockTypedefault EntityTypeadapt(EntityType entityType) default MaterialCreate a Bukkit Material form a WorldEdit ItemTypedefault WorldCreate a Bukkit world from a WorldEdit world.default BiomeTypedefault BlockStateCreate a WorldEdit BlockStateHolder from a Bukkit BlockDatadefault EntityCreate a WorldEdit entity from a Bukkit entity.default EntityTypeadapt(EntityType entityType) Create a WorldEdit EntityType from a Bukkit one.default BukkitPlayerCreate a WorldEdit Player from a Bukkit Player.default GameModeCreate a WorldEdit GameMode from a Bukkit one.default BaseItemStackCreate a WorldEdit ItemStack with NBT, if available.default WorldCreate a WorldEdit world from a Bukkit world.default Locationadapt(World world, BlockVector3 position) default LocationCreate a Bukkit location from a WorldEdit position with a Bukkit world.default LocationCreate a Bukkit location from a WorldEdit location with a Bukkit world.default BlockStateasBlockState(ItemStack itemStack) Create a WorldEdit BlockStateHolder from a Bukkit ItemStackdefault BlockTypeasBlockType(Material material) Converts a Material to a BlockTypedefault BlockVector3asBlockVector(Location location) Create a WorldEdit BlockVector from a Bukkit location.default BukkitWorldasBukkitWorld(World world) Convert any WorldEdit world into an equivalent wrapped Bukkit world.default ItemTypeasItemType(Material material) Converts a Material to a ItemTypedefault Vector3Create a WorldEdit Vector from a Bukkit location.default booleanclearContainerBlockContents(World world, BlockVector3 pt) Clears the contents of a Clearable block.default EntitycreateEntity(Location location, BaseEntity state) Create the given entity.default WorldcreateWorld(WorldCreator creator) default booleanChecks equality between a WorldEdit BlockType and a Bukkit Materialdefault TfromNative(Tag foreign) default TfromNativeLin(org.enginehub.linbus.tree.LinTag foreign) default BiomeTypeGets the current biome at a location.default BlockStateGet the block at the given location.default DataFixerGet a data fixer, or null if not supported.default BaseEntityGet the state for the given entity.default OptionalIntRetrieve the internal ID for a given state, if possible.default OptionalIntdefault BlockMaterialgetMaterial(BlockState blockState) default BlockMaterialgetMaterial(BlockType blockType) getProperties(BlockType blockType) Get a map ofstring -> property.default Collection<String> Returns an iterable of all blocks in their default state as string representations known to the server.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.default voidsendFakeNBT(Player player, BlockVector3 pos, org.enginehub.linbus.tree.LinCompoundTag nbtData) Send the given NBT data to the player.default 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 Tagdefault org.enginehub.linbus.tree.LinTag<?> toNativeLin(T foreign) Methods inherited from interface com.sk89q.worldedit.bukkit.adapter.BukkitImplAdapter
canPlaceAt, createWorldNativeAccess, get, getAllProperties, getFullBlock, getInternalBiomeId, getPlatformPlacementProcessor, getRegisteredBiomes, getRelighterFactory, getRichBlockName, getRichItemName, getRichItemName, getSupportedSideEffects, getTickingPostProcessor, initializeRegistries, regenerateMethods inherited from interface com.fastasyncworldedit.bukkit.adapter.IBukkitAdapter
generateTree, getEntities
-
Method Details
-
getParent
BukkitImplAdapter<T> getParent() -
getDataFixer
Description copied from interface:BukkitImplAdapterGet a data fixer, or null if not supported.- Specified by:
getDataFixerin interfaceBukkitImplAdapter<T>- Returns:
- the data fixer
-
supportsWatchdog
default boolean supportsWatchdog()Description copied from interface:BukkitImplAdapterCheck if this adapter supports the watchdog.- Specified by:
supportsWatchdogin interfaceBukkitImplAdapter<T>- Returns:
trueifBukkitImplAdapter.tickWatchdog()is implemented
-
tickWatchdog
default void tickWatchdog()Description copied from interface:BukkitImplAdapterTick the server watchdog, if possible.- Specified by:
tickWatchdogin interfaceBukkitImplAdapter<T>
-
getBlock
Description copied from interface:BukkitImplAdapterGet the block at the given location.- Specified by:
getBlockin interfaceBukkitImplAdapter<T>- Parameters:
location- the location- Returns:
- the block
-
getEntity
Description copied from interface:BukkitImplAdapterGet the state for the given entity.- Specified by:
getEntityin interfaceBukkitImplAdapter<T>- Parameters:
entity- the entity- Returns:
- the state, or null
-
createEntity
Description copied from interface:BukkitImplAdapterCreate the given entity.- Specified by:
createEntityin interfaceBukkitImplAdapter<T>- Parameters:
location- the locationstate- the state- Returns:
- the created entity or null
-
getProperties
Description copied from interface:BukkitImplAdapterGet a map ofstring -> property.- Specified by:
getPropertiesin 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:BukkitImplAdapterSend the given NBT data to the player.- Specified by:
sendFakeNBTin interfaceBukkitImplAdapter<T>- Parameters:
player- The playerpos- The positionnbtData- The NBT Data
-
sendFakeOP
Description copied from interface:BukkitImplAdapterMake the client think it has operator status. This does not give them any operator capabilities.- Specified by:
sendFakeOPin interfaceBukkitImplAdapter<T>- Parameters:
player- The player
-
simulateItemUse
Description copied from interface:BukkitImplAdapterSimulates a player using an item.- Specified by:
simulateItemUsein 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:BukkitImplAdapterCreate a Bukkit ItemStack with NBT, if available.- Specified by:
adaptin interfaceBukkitImplAdapter<T>- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
item- the WorldEdit BaseItemStack to adapt- Returns:
- the Bukkit ItemStack
-
adapt
Description copied from interface:BukkitImplAdapterCreate a WorldEdit ItemStack with NBT, if available.- Specified by:
adaptin interfaceBukkitImplAdapter<T>- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
itemStack- the Bukkit ItemStack to adapt- Returns:
- the WorldEdit BaseItemStack
-
getInternalBlockStateId
- Specified by:
getInternalBlockStateIdin interfaceBukkitImplAdapter<T>
-
getInternalBlockStateId
Description copied from interface:BukkitImplAdapterRetrieve the internal ID for a given state, if possible.- Specified by:
getInternalBlockStateIdin interfaceBukkitImplAdapter<T>- Parameters:
state- The block state- Returns:
- the internal ID of the state
-
clearContainerBlockContents
Description copied from interface:BukkitImplAdapterClears the contents of a Clearable block.- Specified by:
clearContainerBlockContentsin interfaceBukkitImplAdapter<T>- Parameters:
world- The worldpt- The location- Returns:
- If a block was cleared
-
setBiome
Description copied from interface:BukkitImplAdapterSet the biome at a location.- Specified by:
setBiomein interfaceBukkitImplAdapter<T>- Parameters:
location- the locationbiome- the new biome
-
getBiome
Description copied from interface:BukkitImplAdapterGets the current biome at a location.- Specified by:
getBiomein interfaceBukkitImplAdapter<T>- Parameters:
location- the location- Returns:
- the biome
-
sendBiomeUpdates
Description copied from interface:BukkitImplAdapterSends 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:
sendBiomeUpdatesin interfaceBukkitImplAdapter<T>- Parameters:
world- the worldchunks- a list of chunk coordinates to send biome updates for
-
getRegisteredDefaultBlockStates
Description copied from interface:BukkitImplAdapterReturns an iterable of all blocks in their default state as string representations known to the server.- Specified by:
getRegisteredDefaultBlockStatesin interfaceBukkitImplAdapter<T>- Returns:
- an iterable containing the default state strings of all valid blocks
-
getMaterial
- Specified by:
getMaterialin interfaceBukkitImplAdapter<T>
-
getMaterial
- Specified by:
getMaterialin interfaceBukkitImplAdapter<T>
-
toNative
- Specified by:
toNativein interfaceBukkitImplAdapter<T>
-
toNativeLin
- Specified by:
toNativeLinin interfaceBukkitImplAdapter<T>
-
fromNative
- Specified by:
fromNativein interfaceBukkitImplAdapter<T>
-
fromNativeLin
- Specified by:
fromNativeLinin interfaceBukkitImplAdapter<T>
-
createWorld
- Specified by:
createWorldin interfaceBukkitImplAdapter<T>
-
sendFakeChunk
Description copied from interface:BukkitImplAdapterSend a fake chunk packet to a player.- Specified by:
sendFakeChunkin interfaceBukkitImplAdapter<T>
-
asBukkitWorld
Description copied from interface:IBukkitAdapterConvert any WorldEdit world into an equivalent wrapped Bukkit world.If a matching world cannot be found, a
RuntimeExceptionwill be thrown.- Specified by:
asBukkitWorldin interfaceIBukkitAdapter- Parameters:
world- the world- Returns:
- a wrapped Bukkit world
-
adapt
Description copied from interface:IBukkitAdapterCreate a Bukkit world from a WorldEdit world.- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
world- the WorldEdit world- Returns:
- a Bukkit world
-
adapt
Description copied from interface:IBukkitAdapterCreate a Bukkit location from a WorldEdit position with a Bukkit world.- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
world- the Bukkit worldposition- the WorldEdit position- Returns:
- a Bukkit location
-
adapt
- Specified by:
adaptin interfaceIBukkitAdapter
-
adapt
Description copied from interface:IBukkitAdapterCreate a Bukkit location from a WorldEdit location with a Bukkit world.- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
world- the Bukkit worldlocation- the WorldEdit location- Returns:
- a Bukkit location
-
asVector
Description copied from interface:IBukkitAdapterCreate a WorldEdit Vector from a Bukkit location.- Specified by:
asVectorin interfaceIBukkitAdapter- Parameters:
location- The Bukkit location- Returns:
- a WorldEdit vector
-
asBlockVector
Description copied from interface:IBukkitAdapterCreate a WorldEdit BlockVector from a Bukkit location.- Specified by:
asBlockVectorin interfaceIBukkitAdapter- Parameters:
location- The Bukkit location- Returns:
- a WorldEdit vector
-
adapt
Description copied from interface:IBukkitAdapterCreate a WorldEdit entity from a Bukkit entity.- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
entity- the Bukkit entity- Returns:
- a WorldEdit entity
-
adapt
Description copied from interface:IBukkitAdapterCreate a Bukkit Material form a WorldEdit ItemType- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
itemType- The WorldEdit ItemType- Returns:
- The Bukkit Material
-
adapt
Description copied from interface:IBukkitAdapterCreate a Bukkit Material form a WorldEdit BlockType- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
blockType- The WorldEdit BlockType- Returns:
- The Bukkit Material
-
adapt
- Specified by:
adaptin interfaceIBukkitAdapter
-
asBlockType
Description copied from interface:IBukkitAdapterConverts a Material to a BlockType- Specified by:
asBlockTypein interfaceIBukkitAdapter- Parameters:
material- The material- Returns:
- The blocktype
-
asItemType
Description copied from interface:IBukkitAdapterConverts a Material to a ItemType- Specified by:
asItemTypein interfaceIBukkitAdapter- Parameters:
material- The material- Returns:
- The itemtype
-
adapt
Description copied from interface:IBukkitAdapterCreate a WorldEdit BlockStateHolder from a Bukkit BlockData- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
blockData- The Bukkit BlockData- Returns:
- The WorldEdit BlockState
-
adapt
Description copied from interface:IBukkitAdapterCreate a Bukkit BlockData from a WorldEdit BlockStateHolder- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
block- The WorldEdit BlockStateHolder- Returns:
- The Bukkit BlockData
-
adapt
Description copied from interface:IBukkitAdapterCreate a WorldEdit Player from a Bukkit Player.- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
player- The Bukkit player- Returns:
- The WorldEdit player
-
adapt
Description copied from interface:IBukkitAdapterCreate a Bukkit Player from a WorldEdit Player.- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
player- The WorldEdit player- Returns:
- The Bukkit player
-
adapt
- Specified by:
adaptin interfaceIBukkitAdapter
-
adapt
- Specified by:
adaptin interfaceIBukkitAdapter
-
equals
Description copied from interface:IBukkitAdapterChecks equality between a WorldEdit BlockType and a Bukkit Material- Specified by:
equalsin interfaceIBukkitAdapter- Parameters:
blockType- The WorldEdit BlockTypetype- The Bukkit Material- Returns:
- If they are equal
-
adapt
Description copied from interface:IBukkitAdapterCreate a WorldEdit world from a Bukkit world.- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
world- the Bukkit world- Returns:
- a WorldEdit world
-
adapt
Description copied from interface:IBukkitAdapterCreate a WorldEdit GameMode from a Bukkit one.- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
gameMode- Bukkit GameMode- Returns:
- WorldEdit GameMode
-
adapt
Description copied from interface:IBukkitAdapterCreate a WorldEdit EntityType from a Bukkit one.- Specified by:
adaptin interfaceIBukkitAdapter- Parameters:
entityType- Bukkit EntityType- Returns:
- WorldEdit EntityType
-
asBlockState
Description copied from interface:IBukkitAdapterCreate a WorldEdit BlockStateHolder from a Bukkit ItemStack- Specified by:
asBlockStatein interfaceIBukkitAdapter- Parameters:
itemStack- The Bukkit ItemStack- Returns:
- The WorldEdit BlockState
-