Uses of Interface
org.bukkit.block.Block
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.Classes relating to handling specialized non-chat player input.
Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Events
triggered from an enchantment table
.Events
relating to entities that hang
.Events
relating to vehicular entities
.Classes involved in manipulating player inventories and item interactions.
Classes to represent the source of a projectile
Multi and single purpose classes to facilitate various programmatic
concepts.
-
Uses of Block in com.destroystokyo.paper
-
Uses of Block in com.destroystokyo.paper.block
Modifier and TypeMethodDescriptionTargetBlockInfo.getBlock()
Get the block that is targetedTargetBlockInfo.getRelativeBlock()
Get the relative Block to the targeted block on the side it is targeted atModifierConstructorDescriptionTargetBlockInfo(@NotNull Block block, @NotNull BlockFace blockFace)
-
Uses of Block in com.destroystokyo.paper.event.block
ModifierConstructorDescriptionBeaconEffectEvent(@NotNull Block block, @NotNull PotionEffect effect, @NotNull Player player, boolean primary)
BlockDestroyEvent(@NotNull Block block, @NotNull BlockData newState, boolean willDrop)
TNTPrimeEvent(@NotNull Block theBlock, @NotNull TNTPrimeEvent.PrimeReason reason, @Nullable Entity primerEntity)
-
Uses of Block in com.destroystokyo.paper.loottable
-
Uses of Block in io.papermc.paper.event.block
Modifier and TypeMethodDescriptionPlayerShearBlockEvent.getBlock()
Gets the block being sheared in this event.ModifierConstructorDescriptionBeaconActivatedEvent(@NotNull Block block)
BeaconDeactivatedEvent(@NotNull Block block)
BellRevealRaiderEvent(@NotNull Block theBlock, @NotNull Entity raider)
BellRingEvent(@NotNull Block block, @Nullable Entity entity)
BlockFailedDispenseEvent(@NotNull Block theBlock)
BlockPreDispenseEvent(@NotNull Block block, @NotNull ItemStack itemStack, int slot)
DragonEggFormEvent(@NotNull Block block, @NotNull BlockState newState, @NotNull DragonBattle dragonBattle)
PlayerShearBlockEvent(@NotNull Player who, @NotNull Block block, @NotNull ItemStack item, @NotNull EquipmentSlot hand, @NotNull List<ItemStack> drops)
TargetHitEvent(@NotNull Projectile projectile, @NotNull Block block, @NotNull BlockFace blockFace, int signalStrength)
-
Uses of Block in io.papermc.paper.event.entity
ModifierConstructorDescriptionEntityInsideBlockEvent(@NotNull Entity entity, @NotNull Block block)
-
Uses of Block in io.papermc.paper.event.player
Modifier and TypeMethodDescriptionPlayerChangeBeaconEffectEvent.getBeacon()
PlayerBedFailEnterEvent.getBed()
PlayerFlowerPotManipulateEvent.getFlowerpot()
Gets the flowerpot that is involved in this event.ModifierConstructorDescriptionPlayerBedFailEnterEvent(@NotNull Player player, @NotNull PlayerBedFailEnterEvent.FailReason failReason, @NotNull Block bed, boolean willExplode, @Nullable Component message)
PlayerChangeBeaconEffectEvent(@NotNull Player player, @Nullable PotionEffectType primary, @Nullable PotionEffectType secondary, @Nullable Block beacon)
PlayerFlowerPotManipulateEvent(@NotNull Player player, @NotNull Block flowerpot, @NotNull ItemStack item, boolean placing)
-
Uses of Block in org.bukkit
Modifier and TypeMethodDescriptionChunk.getBlock(int x, int y, int z)
Gets a block from this chunkLocation.getBlock()
Gets the block at the represented locationWorld.getBlockAt(int x, int y, int z)
Gets theBlock
at the given coordinatesWorld.getBlockAt(@NotNull Location location)
World.getBlockAtKey(long key)
Gets theBlock
at the given block keyWorld.getHighestBlockAt(int x, int z)
Gets the highest non-empty (impassable) block at the given coordinates.World.getHighestBlockAt(int x, int z, @NotNull HeightMap heightMap)
Gets the highest block corresponding to theHeightMap
at the given coordinates.World.getHighestBlockAt(int x, int z, HeightmapType heightmap)
Deprecated.World.getHighestBlockAt(@NotNull Location location)
Gets the highest non-empty (impassable) block at the given coordinates.World.getHighestBlockAt(@NotNull Location location, @NotNull HeightMap heightMap)
Gets the highest block corresponding to theHeightMap
at the given coordinates.World.getHighestBlockAt(@NotNull Location location, HeightmapType heightmap)
Deprecated.Upstream has added support for this, useWorld.getHighestBlockAt(Location, HeightMap)
Modifier and TypeMethodDescriptionWorld.getChunkAt(@NotNull Block block)
default CompletableFuture<Chunk>
World.getChunkAtAsync(@NotNull Block block)
Requests aChunk
to be loaded at the given coordinates This method makes no guarantee on how fast the chunk will load, and will return the chunk to the callback at a later time.default CompletableFuture<Chunk>
World.getChunkAtAsync(@NotNull Block block, boolean gen)
Requests aChunk
to be loaded at the given coordinates This method makes no guarantee on how fast the chunk will load, and will return the chunk to the callback at a later time.default void
World.getChunkAtAsync(@NotNull Block block, boolean gen, Consumer<Chunk> cb)
default void
World.getChunkAtAsync(@NotNull Block block, @NotNull World.ChunkLoadCallback cb)
Deprecated.Use either the Future or the Consumer based methodsdefault void
World.getChunkAtAsync(@NotNull Block block, Consumer<Chunk> cb)
default CompletableFuture<Chunk>
World.getChunkAtAsyncUrgently(@NotNull Block block)
Requests aChunk
to be loaded at the given coordinates This method makes no guarantee on how fast the chunk will load, and will return the chunk to the callback at a later time.default CompletableFuture<Chunk>
World.getChunkAtAsyncUrgently(@NotNull Block block, boolean gen)
Requests aChunk
to be loaded at the given coordinates This method makes no guarantee on how fast the chunk will load, and will return the chunk to the callback at a later time.UnsafeValues.getTranslationKey(Block block)
Deprecated.Return the translation key for the Block, so the client can translate it into the active locale when using aTranslatableComponent
.Modifier and TypeMethodDescriptionChunk.getTileEntities(@NotNull Predicate<Block> blockPredicate, boolean useSnapshot)
Get a list of all tile entities that match a given predicate in the chunk. -
Uses of Block in org.bukkit.block
Modifier and TypeMethodDescriptionBlockState.getBlock()
Gets the block represented by this block state.Block.getRelative(int modX, int modY, int modZ)
Gets the block at the given offsetsBlock.getRelative(@NotNull BlockFace face)
Gets the block at the given faceBlock.getRelative(@NotNull BlockFace face, int distance)
Gets the block at the given distance of the given face -
Uses of Block in org.bukkit.command
-
Uses of Block in org.bukkit.entity
Modifier and TypeMethodDescriptionAbstractArrow.getAttachedBlock()
Gets the block to which this arrow is attached.Raider.getPatrolTarget()
Gets the block the raider is targeting to patrol.LivingEntity.getTargetBlock(int maxDistance)
Gets the block that the living entity has targeted, ignoring fluidsLivingEntity.getTargetBlock(int maxDistance, TargetBlockInfo.FluidMode fluidMode)
Gets the block that the living entity has targetedLivingEntity.getTargetBlock(@Nullable Set<Material> transparent, int maxDistance)
Gets the block that the living entity has targeted.LivingEntity.getTargetBlockExact(int maxDistance)
Gets the block that the living entity has targeted.LivingEntity.getTargetBlockExact(int maxDistance, @NotNull FluidCollisionMode fluidCollisionMode)
Gets the block that the living entity has targeted.Modifier and TypeMethodDescriptionLivingEntity.getLastTwoTargetBlocks(@Nullable Set<Material> transparent, int maxDistance)
Gets the last two blocks along the living entity's line of sight.LivingEntity.getLineOfSight(@Nullable Set<Material> transparent, int maxDistance)
Gets all blocks along the living entity's line of sight.Modifier and TypeMethodDescriptionvoid
Raider.setPatrolTarget(@Nullable Block block)
Sets the block the raider is targeting to patrol. -
Uses of Block in org.bukkit.event.block
Modifier and TypeFieldDescriptionprotected Block
BlockEvent.block
protected Block
BlockPlaceEvent.placedAgainst
protected Block
BlockFromToEvent.to
Modifier and TypeMethodDescriptionBlockEvent.getBlock()
Gets the block involved in this event.BlockPlaceEvent.getBlockAgainst()
Gets the block that this block was placed againstBlockPlaceEvent.getBlockPlaced()
Clarity method for getting the placed block.BlockBurnEvent.getIgnitingBlock()
Gets the block which ignited this block.BlockIgniteEvent.getIgnitingBlock()
Gets the block which ignited this blockBlockSpreadEvent.getSource()
Gets the source block involved in this event.BlockPhysicsEvent.getSourceBlock()
Gets the source block that triggered this event.BlockFromToEvent.getToBlock()
Convenience method for getting the faced Block.Modifier and TypeMethodDescriptionBlockExplodeEvent.blockList()
Returns the list of blocks that would have been removed or were removed from the explosion event.BlockPistonExtendEvent.getBlocks()
Get an immutable list of the blocks which will be moved by the extending.BlockPistonRetractEvent.getBlocks()
Get an immutable list of the blocks which will be moved by the extending.ModifierConstructorDescriptionBlockBreakEvent(@NotNull Block theBlock, @NotNull Player player)
BlockBurnEvent(@NotNull Block block)
Deprecated.BlockBurnEvent(@NotNull Block block, @Nullable Block ignitingBlock)
BlockCanBuildEvent(@NotNull Block block, @NotNull BlockData type, boolean canBuild)
Deprecated.BlockCanBuildEvent(@NotNull Block block, @Nullable Player player, @NotNull BlockData type, boolean canBuild)
Deprecated.BlockCookEvent(@NotNull Block block, @NotNull ItemStack source, @NotNull ItemStack result, CookingRecipe<?> recipe)
BlockDamageEvent(@NotNull Player player, @NotNull Block block, @NotNull ItemStack itemInHand, boolean instaBreak)
BlockDispenseArmorEvent(@NotNull Block block, @NotNull ItemStack dispensed, @NotNull LivingEntity target)
BlockDropItemEvent(@NotNull Block block, @NotNull BlockState blockState, @NotNull Player player, @NotNull List<Item> items)
BlockEvent(@NotNull Block theBlock)
BlockExpEvent(@NotNull Block block, int exp)
BlockFadeEvent(@NotNull Block block, @NotNull BlockState newState)
BlockFertilizeEvent(@NotNull Block theBlock, @Nullable Player player, @NotNull List<BlockState> blocks)
BlockFormEvent(@NotNull Block block, @NotNull BlockState newState)
BlockFromToEvent(@NotNull Block block, @NotNull Block toBlock)
BlockFromToEvent(@NotNull Block block, @NotNull BlockFace face)
BlockGrowEvent(@NotNull Block block, @NotNull BlockState newState)
BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @NotNull Block ignitingBlock)
BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @Nullable Entity ignitingEntity)
BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @Nullable Entity ignitingEntity, @Nullable Block ignitingBlock)
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)
BlockPhysicsEvent(@NotNull Block block, @NotNull BlockData changed)
BlockPhysicsEvent(Block block, BlockData changed, int sourceX, int sourceY, int sourceZ)
Deprecated.BlockPistonEvent(@NotNull Block block, @NotNull BlockFace direction)
BlockPistonExtendEvent(@NotNull Block block, int length, @NotNull BlockFace direction)
Deprecated.BlockPistonExtendEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction)
BlockPistonRetractEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction)
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)
BlockRedstoneEvent(@NotNull Block block, int oldCurrent, int newCurrent)
BlockSpreadEvent(@NotNull Block block, @NotNull Block source, @NotNull BlockState newState)
CauldronLevelChangeEvent(@NotNull Block block, @Nullable Entity entity, @NotNull CauldronLevelChangeEvent.ChangeReason reason, int oldLevel, int newLevel)
EntityBlockFormEvent(@NotNull Entity entity, @NotNull Block block, @NotNull BlockState blockstate)
FluidLevelChangeEvent(@NotNull Block theBlock, @NotNull BlockData newData)
LeavesDecayEvent(@NotNull Block block)
MoistureChangeEvent(@NotNull Block block, @NotNull BlockState newState)
NotePlayEvent(@NotNull Block block, @NotNull Instrument instrument, @NotNull Note note)
Deprecated.SpongeAbsorbEvent(@NotNull Block block, @NotNull List<BlockState> waterblocks)
-
Uses of Block in org.bukkit.event.enchantment
Modifier and TypeMethodDescriptionEnchantItemEvent.getEnchantBlock()
Gets the block being used to enchant the itemPrepareItemEnchantEvent.getEnchantBlock()
Gets the block being used to enchant the itemModifierConstructorDescriptionEnchantItemEvent(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, int level, @NotNull Map<Enchantment,Integer> enchants, int i)
PrepareItemEnchantEvent(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, @NotNull EnchantmentOffer[] offers, int bonus)
-
Uses of Block in org.bukkit.event.entity
Modifier and TypeMethodDescriptionEntityChangeBlockEvent.getBlock()
Gets the block the entity is changingEntityEnterBlockEvent.getBlock()
Get the block the entity will enter.EntityInteractEvent.getBlock()
Returns the involved blockEntityPlaceEvent.getBlock()
Returns the block that the entity was placed onEntityCombustByBlockEvent.getCombuster()
The combuster can be lava or a block that is on fire.EntityDamageByBlockEvent.getDamager()
Returns the block that damaged the player.ProjectileHitEvent.getHitBlock()
Gets the block that was hit, if it was a block that was hit.Modifier and TypeMethodDescriptionEntityExplodeEvent.blockList()
Returns the list of blocks that would have been removed or were removed from the explosion event.ModifierConstructorDescriptionEntityBreakDoorEvent(@NotNull LivingEntity entity, @NotNull Block targetBlock)
EntityCombustByBlockEvent(@Nullable Block combuster, @NotNull Entity combustee, int duration)
EntityDamageByBlockEvent(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage)
EntityDamageByBlockEvent(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions)
EntityEnterBlockEvent(@NotNull Entity entity, @NotNull Block block)
EntityInteractEvent(@NotNull Entity entity, @NotNull Block block)
EntityPlaceEvent(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace)
ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Block hitBlock)
ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock)
ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace)
-
Uses of Block in org.bukkit.event.hanging
Modifier and TypeMethodDescriptionHangingPlaceEvent.getBlock()
Returns the block that the hanging entity was placed on -
Uses of Block in org.bukkit.event.inventory
ModifierConstructorDescriptionBrewEvent(@NotNull Block brewer, @NotNull BrewerInventory contents, int fuelLevel)
BrewingStandFuelEvent(@NotNull Block brewingStand, @NotNull ItemStack fuel, int fuelPower)
FurnaceBurnEvent(@NotNull Block furnace, @NotNull ItemStack fuel, int burnTime)
FurnaceExtractEvent(@NotNull Player player, @NotNull Block block, @NotNull Material itemType, int itemAmount, int exp)
Deprecated.FurnaceSmeltEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull ItemStack result, CookingRecipe<?> recipe)
-
Uses of Block in org.bukkit.event.player
Modifier and TypeMethodDescriptionPlayerBedEnterEvent.getBed()
Returns the bed block involved in this event.PlayerBedLeaveEvent.getBed()
Returns the bed block involved in this event.PlayerBucketEvent.getBlock()
Gets the block involved in this event.PlayerBucketEvent.getBlockClicked()
Return the block clickedPlayerInteractEvent.getClickedBlock()
Returns the clicked blockPlayerHarvestBlockEvent.getHarvestedBlock()
Gets the block that is being harvested.ModifierConstructorDescriptionPlayerBedEnterEvent(@NotNull Player who, @NotNull Block bed)
Deprecated.PlayerBedEnterEvent(@NotNull Player who, @NotNull Block bed, @NotNull PlayerBedEnterEvent.BedEnterResult bedEnterResult)
PlayerBedLeaveEvent(@NotNull Player who, @NotNull Block bed, boolean setBedSpawn)
PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)
Deprecated.PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @Nullable EquipmentSlot hand)
Deprecated.PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)
PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @Nullable EquipmentSlot hand)
PlayerBucketEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)
Deprecated.PlayerBucketEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @Nullable EquipmentSlot hand)
Deprecated.PlayerBucketEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)
PlayerBucketEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @Nullable EquipmentSlot hand)
PlayerBucketFillEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)
Deprecated.PlayerBucketFillEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @Nullable EquipmentSlot hand)
Deprecated.PlayerBucketFillEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)
PlayerBucketFillEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @Nullable EquipmentSlot hand)
PlayerHarvestBlockEvent(@NotNull Player player, @NotNull Block harvestedBlock, @NotNull List<ItemStack> itemsHarvested)
PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace)
PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand)
PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand, @Nullable Location interactionPoint)
-
Uses of Block in org.bukkit.event.vehicle
Modifier and TypeMethodDescriptionVehicleBlockCollisionEvent.getBlock()
Gets the block the vehicle collided withModifierConstructorDescriptionVehicleBlockCollisionEvent(@NotNull Vehicle vehicle, @NotNull Block block)
-
Uses of Block in org.bukkit.inventory
-
Uses of Block in org.bukkit.projectiles
-
Uses of Block in org.bukkit.util
Modifier and TypeMethodDescriptionRayTraceResult.getHitBlock()
Gets the hit block.BlockIterator.next()
Returns the next Block in the traceModifier and TypeMethodDescriptionstatic @NotNull BoundingBox
Creates a new 1x1x1 sized bounding box containing the given block.static @NotNull BoundingBox
Creates a new bounding box using the coordinates of the given blocks as corners.
World.getHighestBlockAt(int, int, HeightMap)