Package | Description |
---|---|
com.destroystokyo.paper | |
com.destroystokyo.paper.block | |
com.destroystokyo.paper.event.block | |
com.destroystokyo.paper.loottable | |
org.bukkit |
More generalized classes in the API.
|
org.bukkit.block |
Classes used to manipulate the voxels in a
world ,
including special states. |
org.bukkit.command |
Classes relating to handling specialized non-chat player input.
|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.block | |
org.bukkit.event.enchantment |
Events triggered from an enchantment table . |
org.bukkit.event.entity | |
org.bukkit.event.hanging |
Events relating to entities that hang . |
org.bukkit.event.inventory | |
org.bukkit.event.player | |
org.bukkit.event.vehicle |
Events relating to vehicular entities . |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
org.bukkit.projectiles |
Classes to represent the source of a projectile
|
org.bukkit.util |
Multi and single purpose classes to facilitate various programmatic
concepts.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MaterialSetTag.isTagged(Block block) |
Modifier and Type | Method and Description |
---|---|
Block |
TargetBlockInfo.getBlock()
Get the block that is targeted
|
Block |
TargetBlockInfo.getRelativeBlock()
Get the relative Block to the targeted block on the side it is targeted at
|
Constructor and Description |
---|
TargetBlockInfo(Block block,
BlockFace blockFace) |
Constructor and Description |
---|
BeaconEffectEvent(Block block,
PotionEffect effect,
Player player,
boolean primary) |
BlockDestroyEvent(Block block,
BlockData newState,
boolean willDrop) |
TNTPrimeEvent(Block theBlock,
TNTPrimeEvent.PrimeReason reason,
Entity primerEntity) |
Modifier and Type | Method and Description |
---|---|
Block |
LootableBlockInventory.getBlock()
Gets the block that is lootable
|
Modifier and Type | Method and Description |
---|---|
Block |
Location.getBlock()
Gets the block at the represented location
|
Block |
Chunk.getBlock(int x,
int y,
int z)
Gets a block from this chunk
|
Block |
World.getBlockAt(int x,
int y,
int z)
Gets the
Block at the given coordinates |
Block |
World.getBlockAt(Location location)
|
default Block |
World.getBlockAtKey(long key)
Gets the
Block at the given block key |
Block |
World.getHighestBlockAt(int x,
int z)
Gets the lowest block at the given coordinates such that the block and
all blocks above it are transparent for lighting purposes.
|
default Block |
World.getHighestBlockAt(int x,
int z,
HeightmapType heightmap)
Returns the highest
Block at the specified block coordinates that match the specified heightmap's conditions. |
Block |
World.getHighestBlockAt(Location location)
Gets the lowest block at the given
Location such that the block
and all blocks above it are transparent for lighting purposes. |
default Block |
World.getHighestBlockAt(Location location,
HeightmapType heightmap)
Returns the highest
Block at the specified block coordinates that match the specified heightmap's conditions. |
Modifier and Type | Method and Description |
---|---|
Chunk |
World.getChunkAt(Block block)
|
default CompletableFuture<Chunk> |
World.getChunkAtAsync(Block block)
Requests a
Chunk 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(Block block,
boolean gen)
Requests a
Chunk 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(Block block,
boolean gen,
Consumer<Chunk> cb)
|
default void |
World.getChunkAtAsync(Block block,
Consumer<Chunk> cb)
|
default void |
World.getChunkAtAsync(Block block,
World.ChunkLoadCallback cb)
Deprecated.
Use either the Future or the Consumer based methods
|
Modifier and Type | Method and Description |
---|---|
Block |
BlockState.getBlock()
Gets the block represented by this block state.
|
Block |
Block.getRelative(BlockFace face)
Gets the block at the given face
|
Block |
Block.getRelative(BlockFace face,
int distance)
Gets the block at the given distance of the given face
|
Block |
Block.getRelative(int modX,
int modY,
int modZ)
Gets the block at the given offsets
|
Modifier and Type | Method and Description |
---|---|
BlockFace |
Block.getFace(Block block)
Gets the face relation of this block compared to the given block.
|
Modifier and Type | Method and Description |
---|---|
Block |
BlockCommandSender.getBlock()
Returns the block this command sender belongs to
|
Modifier and Type | Method and Description |
---|---|
Block |
AbstractArrow.getAttachedBlock()
Gets the block to which this arrow is attached.
|
Block |
Raider.getPatrolTarget()
Gets the block the raider is targeting to patrol.
|
default Block |
LivingEntity.getTargetBlock(int maxDistance)
Gets the block that the living entity has targeted, ignoring fluids
|
Block |
LivingEntity.getTargetBlock(int maxDistance,
TargetBlockInfo.FluidMode fluidMode)
Gets the block that the living entity has targeted
|
Block |
LivingEntity.getTargetBlock(Set<Material> transparent,
int maxDistance)
Gets the block that the living entity has targeted.
|
Block |
LivingEntity.getTargetBlockExact(int maxDistance)
Gets the block that the living entity has targeted.
|
Block |
LivingEntity.getTargetBlockExact(int maxDistance,
FluidCollisionMode fluidCollisionMode)
Gets the block that the living entity has targeted.
|
Modifier and Type | Method and Description |
---|---|
List<Block> |
LivingEntity.getLastTwoTargetBlocks(Set<Material> transparent,
int maxDistance)
Gets the last two blocks along the living entity's line of sight.
|
List<Block> |
LivingEntity.getLineOfSight(Set<Material> transparent,
int maxDistance)
Gets all blocks along the living entity's line of sight.
|
Modifier and Type | Method and Description |
---|---|
void |
Raider.setPatrolTarget(Block block)
Sets the block the raider is targeting to patrol.
|
Modifier and Type | Field and Description |
---|---|
protected Block |
BlockEvent.block |
protected Block |
BlockPlaceEvent.placedAgainst |
protected Block |
BlockFromToEvent.to |
Modifier and Type | Method and Description |
---|---|
Block |
BlockEvent.getBlock()
Gets the block involved in this event.
|
Block |
BlockPlaceEvent.getBlockAgainst()
Gets the block that this block was placed against
|
Block |
BlockPlaceEvent.getBlockPlaced()
Clarity method for getting the placed block.
|
Block |
BlockIgniteEvent.getIgnitingBlock()
Gets the block which ignited this block
|
Block |
BlockBurnEvent.getIgnitingBlock()
Gets the block which ignited this block.
|
Block |
BlockSpreadEvent.getSource()
Gets the source block involved in this event.
|
Block |
BlockPhysicsEvent.getSourceBlock()
Gets the source block that triggered this event.
|
Block |
BlockFromToEvent.getToBlock()
Convenience method for getting the faced Block.
|
Modifier and Type | Method and Description |
---|---|
List<Block> |
BlockExplodeEvent.blockList()
Returns the list of blocks that would have been removed or were removed
from the explosion event.
|
List<Block> |
BlockPistonRetractEvent.getBlocks()
Get an immutable list of the blocks which will be moved by the
extending.
|
List<Block> |
BlockPistonExtendEvent.getBlocks()
Get an immutable list of the blocks which will be moved by the
extending.
|
Constructor and Description |
---|
BlockExplodeEvent(Block what,
List<Block> blocks,
float yield) |
BlockPistonExtendEvent(Block block,
List<Block> blocks,
BlockFace direction) |
BlockPistonRetractEvent(Block block,
List<Block> blocks,
BlockFace direction) |
Modifier and Type | Method and Description |
---|---|
Block |
PrepareItemEnchantEvent.getEnchantBlock()
Gets the block being used to enchant the item
|
Block |
EnchantItemEvent.getEnchantBlock()
Gets the block being used to enchant the item
|
Constructor and Description |
---|
EnchantItemEvent(Player enchanter,
InventoryView view,
Block table,
ItemStack item,
int level,
Map<Enchantment,Integer> enchants,
int i) |
PrepareItemEnchantEvent(Player enchanter,
InventoryView view,
Block table,
ItemStack item,
EnchantmentOffer[] offers,
int bonus) |
Modifier and Type | Field and Description |
---|---|
protected Block |
EntityInteractEvent.block |
Modifier and Type | Method and Description |
---|---|
Block |
EntityPlaceEvent.getBlock()
Deprecated.
Returns the block that the entity was placed on
|
Block |
EntityInteractEvent.getBlock()
Returns the involved block
|
Block |
EntityChangeBlockEvent.getBlock()
Gets the block the entity is changing
|
Block |
EntityCombustByBlockEvent.getCombuster()
The combuster can be lava or a block that is on fire.
|
Block |
EntityDamageByBlockEvent.getDamager()
Returns the block that damaged the player.
|
Block |
ProjectileHitEvent.getHitBlock()
Gets the block that was hit, if it was a block that was hit.
|
Modifier and Type | Method and Description |
---|---|
List<Block> |
EntityExplodeEvent.blockList()
Returns the list of blocks that would have been removed or were removed
from the explosion event.
|
Constructor and Description |
---|
EntityExplodeEvent(Entity what,
Location location,
List<Block> blocks,
float yield) |
Modifier and Type | Method and Description |
---|---|
Block |
HangingPlaceEvent.getBlock()
Returns the block that the hanging entity was placed on
|
Constructor and Description |
---|
HangingPlaceEvent(Hanging hanging,
Player player,
Block block,
BlockFace blockFace) |
Constructor and Description |
---|
BrewEvent(Block brewer,
BrewerInventory contents,
int fuelLevel) |
BrewingStandFuelEvent(Block brewingStand,
ItemStack fuel,
int fuelPower) |
FurnaceBurnEvent(Block furnace,
ItemStack fuel,
int burnTime) |
FurnaceExtractEvent(Player player,
Block block,
Material itemType,
int itemAmount,
int exp) |
FurnaceSmeltEvent(Block furnace,
ItemStack source,
ItemStack result) |
Modifier and Type | Field and Description |
---|---|
protected Block |
PlayerInteractEvent.blockClicked |
Modifier and Type | Method and Description |
---|---|
Block |
PlayerBedLeaveEvent.getBed()
Returns the bed block involved in this event.
|
Block |
PlayerBedEnterEvent.getBed()
Returns the bed block involved in this event.
|
Block |
PlayerBucketEvent.getBlock()
Gets the block involved in this event.
|
Block |
PlayerBucketEvent.getBlockClicked()
Return the block clicked
|
Block |
PlayerInteractEvent.getClickedBlock()
Returns the clicked block
|
Constructor and Description |
---|
PlayerBedEnterEvent(Player who,
Block bed)
Deprecated.
|
PlayerBedEnterEvent(Player who,
Block bed,
PlayerBedEnterEvent.BedEnterResult bedEnterResult) |
PlayerBedLeaveEvent(Player who,
Block bed,
boolean setBedSpawn) |
PlayerBucketEmptyEvent(Player who,
Block block,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand) |
PlayerBucketEmptyEvent(Player who,
Block block,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand,
EquipmentSlot hand) |
PlayerBucketEmptyEvent(Player who,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand)
Deprecated.
|
PlayerBucketEmptyEvent(Player who,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand,
EquipmentSlot hand)
Deprecated.
|
PlayerBucketEvent(Player who,
Block block,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand) |
PlayerBucketEvent(Player who,
Block block,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand,
EquipmentSlot hand) |
PlayerBucketEvent(Player who,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand)
Deprecated.
|
PlayerBucketEvent(Player who,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand,
EquipmentSlot hand)
Deprecated.
|
PlayerBucketFillEvent(Player who,
Block block,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand) |
PlayerBucketFillEvent(Player who,
Block block,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand,
EquipmentSlot hand) |
PlayerBucketFillEvent(Player who,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand)
Deprecated.
|
PlayerBucketFillEvent(Player who,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand,
EquipmentSlot hand)
Deprecated.
|
PlayerInteractEvent(Player who,
Action action,
ItemStack item,
Block clickedBlock,
BlockFace clickedFace) |
PlayerInteractEvent(Player who,
Action action,
ItemStack item,
Block clickedBlock,
BlockFace clickedFace,
EquipmentSlot hand) |
Modifier and Type | Method and Description |
---|---|
Block |
VehicleBlockCollisionEvent.getBlock()
Gets the block the vehicle collided with
|
Constructor and Description |
---|
VehicleBlockCollisionEvent(Vehicle vehicle,
Block block) |
Modifier and Type | Method and Description |
---|---|
Block |
BlockInventoryHolder.getBlock()
Gets the block associated with this holder.
|
Modifier and Type | Method and Description |
---|---|
Block |
BlockProjectileSource.getBlock()
Gets the block this projectile source belongs to.
|
Modifier and Type | Method and Description |
---|---|
Block |
RayTraceResult.getHitBlock()
Gets the hit block.
|
Block |
BlockIterator.next()
Returns the next Block in the trace
|
Modifier and Type | Method and Description |
---|---|
static BoundingBox |
BoundingBox.of(Block block)
Creates a new 1x1x1 sized bounding box containing the given block.
|
static BoundingBox |
BoundingBox.of(Block corner1,
Block corner2)
Creates a new bounding box using the coordinates of the given blocks as
corners.
|
Constructor and Description |
---|
RayTraceResult(Vector hitPosition,
Block hitBlock,
BlockFace hitBlockFace)
Creates a RayTraceResult.
|
Copyright © 2022. All rights reserved.