Uses of Interface
org.bukkit.block.BlockState
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes used to manipulate the voxels in a
world
,
including special states.Generalized BlockData classes.
Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Classes to facilitate
world
generation
implementation.The interfaces used when manipulating extra data can can be stored inside
item stacks
.Classes related to creating or using
structures
without creating Structure
blocks
in the world.Multi and single purpose classes to facilitate various programmatic
concepts.
-
Uses of BlockState in com.destroystokyo.paper
-
Uses of BlockState in io.papermc.paper.block
Modifier and TypeInterfaceDescriptioninterface
Interface for tile entities that are lockable.interface
-
Uses of BlockState in io.papermc.paper.command.brigadier.argument
Modifier and TypeMethodDescriptionstatic @NotNull com.mojang.brigadier.arguments.ArgumentType
<BlockState> ArgumentTypes.blockState()
A blockstate argument which will provide rich parsing for specifying the specific block variant and then the block entity NBT if applicable. -
Uses of BlockState in io.papermc.paper.event.block
ModifierConstructorDescriptionDragonEggFormEvent
(@NotNull Block block, @NotNull BlockState newState, @NotNull DragonBattle dragonBattle) -
Uses of BlockState in org.bukkit
Modifier and TypeMethodDescriptionRegionAccessor.getBlockState
(int x, int y, int z) Gets theBlockState
at the given coordinates.RegionAccessor.getBlockState
(@NotNull Location location) Gets theBlockState
at the givenLocation
.default @NotNull BlockState[]
Chunk.getTileEntities()
Get a list of all tile entities in the chunk.Chunk.getTileEntities
(boolean useSnapshot) Get a list of all tile entities in the chunk.Modifier and TypeMethodDescriptionChunk.getTileEntities
(@NotNull Predicate<? super Block> blockPredicate, boolean useSnapshot) Get a list of all tile entities that match a given predicate in the chunk.Modifier and TypeMethodDescriptionboolean
RegionAccessor.generateTree
(@NotNull Location location, @NotNull Random random, @NotNull TreeType type, @Nullable Consumer<? super BlockState> stateConsumer) Creates a tree at the givenLocation
boolean
RegionAccessor.generateTree
(@NotNull Location location, @NotNull Random random, @NotNull TreeType type, @Nullable Predicate<? super BlockState> statePredicate) Creates a tree at the givenLocation
-
Uses of BlockState in org.bukkit.block
Modifier and TypeInterfaceDescriptioninterface
Represents a captured state of a banner.interface
Represents a captured state of a Barrel.interface
Represents a captured state of a beacon.interface
Represents a captured state of a bed.interface
Represents a captured state of a bee hive.interface
Represents a captured state of Bell.interface
Represents a captured state of a blast furnace.interface
Represents a captured state of a brewing stand.interface
Represents a captured state of suspicious sand or gravel.interface
Represents a captured state of a calibrated sculk sensorinterface
Represents a captured state of a campfire.interface
Represents a captured state of a chest.interface
Represents a captured state of a chiseled bookshelf.interface
Represents a captured state of a command block.interface
Represents a captured state of an on / off comparator.interface
Represents a captured state of a conduit.interface
Represents a captured state of a container block.interface
Represents a captured state of a crafter.interface
Represents a captured state of a creature spawner.interface
Represents a captured state of a (possibly inverted) daylight detector.interface
Represents a captured state of a decorated pot.interface
Represents a captured state of a dispenser.interface
Represents a captured state of a dropper.interface
Represents a captured state of an enchanting table.interface
Represents a captured state of an ender chest.interface
Represents a captured state of an end gateway.interface
EntityBlockStorage<T extends Entity>
Represents a captured state of a block which stores entities.interface
Represents a captured state of a furnace.interface
Represents a captured state of a hanging sign.interface
Represents a captured state of a hopper.interface
Represents a captured state of a jigsaw.interface
Represents a captured state of a jukebox.interface
Represents a captured state of a lectern.interface
Represents a captured state of a sculk catalyst.interface
Represents a captured state of a sculk sensorinterface
Represents a captured state of a sculk shrieker.interface
Represents a captured state of a ShulkerBox.interface
Represents a captured state of either a SignPost or a WallSign.interface
Represents a captured state of a skull block.interface
Represents a captured state of a smoker.interface
Represents a structure block that can save and load blocks from a file.interface
Deprecated.interface
Represents a block state that also hosts a tile entity at the given location.interface
Represents a captured state of a trial spawner.interface
Represents a captured state of a trial spawner. -
Uses of BlockState in org.bukkit.block.data
Modifier and TypeMethodDescriptionBlockData.createBlockState()
Creates a new defaultBlockState
for this type of Block, not bound to a location. -
Uses of BlockState in org.bukkit.entity
Modifier and TypeMethodDescriptionFallingBlock.getBlockState()
Get the data of the falling block represented as aBlockState
which includes potential NBT data that gets applied when the block gets placed on landing.Modifier and TypeMethodDescriptionvoid
FallingBlock.setBlockState
(BlockState blockState) Sets theBlockData
and possibly present tile entity data for the falling block.Modifier and TypeMethodDescriptionvoid
Player.sendBlockChanges
(@NotNull Collection<BlockState> blocks) Send a multi-block change.void
Player.sendBlockChanges
(@NotNull Collection<BlockState> blocks, boolean suppressLightUpdates) Deprecated.suppressLightUpdates is not functional in versions greater than 1.19.4 -
Uses of BlockState in org.bukkit.event.block
Modifier and TypeMethodDescriptionBlockPlaceEvent.getBlockReplacedState()
Gets the BlockState for the block which was replaced.BlockDropItemEvent.getBlockState()
Gets the BlockState of the block involved in this event before it was broken.BlockExplodeEvent.getExplodedBlockState()
Returns the captured BlockState of the block that exploded.BlockFadeEvent.getNewState()
Gets the state of the block that will be fading, melting or disappearing.BlockGrowEvent.getNewState()
Gets the state of the block where it will form or spread to.CauldronLevelChangeEvent.getNewState()
Gets the new state of the cauldron.MoistureChangeEvent.getNewState()
Gets the new state of the affected block.Modifier and TypeMethodDescriptionBlockFertilizeEvent.getBlocks()
Gets a list of all blocks changed by the fertilization.SpongeAbsorbEvent.getBlocks()
Get a list of all blocks to be removed by the sponge.BlockMultiPlaceEvent.getReplacedBlockStates()
Gets a list of blockstates for all blocks which were replaced by the placement of the new blocks.ModifierConstructorDescriptionBlockDropItemEvent
(@NotNull Block block, @NotNull BlockState blockState, @NotNull Player player, @NotNull List<Item> items) BlockExplodeEvent
(@NotNull Block what, @NotNull BlockState blockState, @NotNull List<Block> blocks, float yield) BlockFadeEvent
(@NotNull Block block, @NotNull BlockState newState) BlockFormEvent
(@NotNull Block block, @NotNull BlockState newState) BlockGrowEvent
(@NotNull Block block, @NotNull BlockState newState) BlockPlaceEvent
(@NotNull Block placedBlock, @NotNull BlockState replacedBlockState, @NotNull Block placedAgainst, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild) Deprecated.BlockPlaceEvent
(@NotNull Block placedBlock, @NotNull BlockState replacedBlockState, @NotNull Block placedAgainst, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild, @NotNull EquipmentSlot hand) BlockSpreadEvent
(@NotNull Block block, @NotNull Block source, @NotNull BlockState newState) CauldronLevelChangeEvent
(@NotNull Block block, @Nullable Entity entity, @NotNull CauldronLevelChangeEvent.ChangeReason reason, @NotNull BlockState newBlock) EntityBlockFormEvent
(@NotNull Entity entity, @NotNull Block block, @NotNull BlockState blockstate) MoistureChangeEvent
(@NotNull Block block, @NotNull BlockState newState) ModifierConstructorDescriptionBlockFertilizeEvent
(@NotNull Block theBlock, @Nullable Player player, @NotNull List<BlockState> blocks) BlockMultiPlaceEvent
(@NotNull List<BlockState> states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild) Deprecated.BlockMultiPlaceEvent
(@NotNull List<BlockState> states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild, EquipmentSlot hand) SpongeAbsorbEvent
(@NotNull Block block, @NotNull List<BlockState> waterblocks) -
Uses of BlockState in org.bukkit.event.entity
Modifier and TypeMethodDescriptionEntityDamageByBlockEvent.getDamagerBlockState()
Returns the captured BlockState of the block that damaged the player.Modifier and TypeMethodDescriptionEntityCreatePortalEvent.getBlocks()
Deprecated.Gets a list of all blocks associated with the portal.ModifierConstructorDescriptionEntityDamageByBlockEvent
(@Nullable Block damager, @Nullable BlockState damagerState, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, double damage) EntityDamageByBlockEvent
(@Nullable Block damager, @Nullable BlockState damagerState, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) ModifierConstructorDescriptionEntityCreatePortalEvent
(@NotNull LivingEntity what, @NotNull List<BlockState> blocks, @NotNull PortalType type) Deprecated. -
Uses of BlockState in org.bukkit.event.world
Modifier and TypeMethodDescriptionPortalCreateEvent.getBlocks()
Gets an array list of all the blocks associated with the created portalStructureGrowEvent.getBlocks()
Gets a list of all blocks associated with the structure.ModifierConstructorDescriptionPortalCreateEvent
(@NotNull List<BlockState> blocks, @NotNull World world, @Nullable Entity entity, @NotNull PortalCreateEvent.CreateReason reason) PortalCreateEvent
(@NotNull List<BlockState> blocks, @NotNull World world, @NotNull PortalCreateEvent.CreateReason reason) Deprecated.StructureGrowEvent
(@NotNull Location location, @NotNull TreeType species, boolean bonemeal, @Nullable Player player, @NotNull List<BlockState> blocks) -
Uses of BlockState in org.bukkit.generator
Modifier and TypeMethodDescriptiondefault @NotNull BlockState
LimitedRegion.getBlockState
(@NotNull Vector location) Gets theBlockState
at a location.Modifier and TypeMethodDescriptionLimitedRegion.getTileEntities()
Gets a list of all tile entities in the limited region including the buffer zone.Modifier and TypeMethodDescriptionvoid
LimitedRegion.setBlockState
(int x, int y, int z, @NotNull BlockState state) Sets theBlockState
at a location.default void
LimitedRegion.setBlockState
(@NotNull Vector location, @NotNull BlockState state) Sets theBlockState
at a location. -
Uses of BlockState in org.bukkit.inventory.meta
Modifier and TypeMethodDescriptionBlockStateMeta.getBlockState()
Returns the currently attached block state for this item or creates a new one if one doesn't exist.Modifier and TypeMethodDescriptionvoid
BlockStateMeta.setBlockState
(@NotNull BlockState blockState) Attaches a copy of the passed block state to the item. -
Uses of BlockState in org.bukkit.structure
Modifier and TypeMethodDescriptionPalette.getBlocks()
Gets a copy of the blocks this Palette is made of. -
Uses of BlockState in org.bukkit.util
Modifier and TypeMethodDescriptionBlockTransformer.TransformationState.getOriginal()
Creates a clone of the original block state that a structure wanted to place and caches it for the current transformer.BlockTransformer.TransformationState.getWorld()
Creates a clone of the block state that was at the location of the currently modified block at the start of the transformation process and caches it for the current transformer.BlockTransformer.transform
(@NotNull LimitedRegion region, int x, int y, int z, @NotNull BlockState current, @NotNull BlockTransformer.TransformationState state) Transforms a block in a structure.Modifier and TypeMethodDescriptionBlockTransformer.transform
(@NotNull LimitedRegion region, int x, int y, int z, @NotNull BlockState current, @NotNull BlockTransformer.TransformationState state) Transforms a block in a structure.