Package | Description |
---|---|
com.destroystokyo.paper | |
com.destroystokyo.paper.block | |
com.destroystokyo.paper.event.block | |
com.destroystokyo.paper.loottable | |
io.papermc.paper.event.block | |
io.papermc.paper.event.player | |
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
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(@NotNull Block block) |
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
TargetBlockInfo.getBlock()
Get the block that is targeted
|
@NotNull Block |
TargetBlockInfo.getRelativeBlock()
Get the relative Block to the targeted block on the side it is targeted at
|
Constructor and Description |
---|
TargetBlockInfo(@NotNull Block block,
@NotNull BlockFace blockFace) |
Constructor and Description |
---|
BeaconEffectEvent(@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) |
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
LootableBlockInventory.getBlock()
Gets the block that is lootable
|
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
PlayerShearBlockEvent.getBlock()
Gets the block being sheared in this event.
|
Constructor and Description |
---|
BeaconActivatedEvent(@NotNull Block block) |
BeaconDeactivatedEvent(@NotNull Block block) |
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) |
Modifier and Type | Method and Description |
---|---|
@Nullable Block |
PlayerChangeBeaconEffectEvent.getBeacon() |
@NotNull Block |
PlayerBedFailEnterEvent.getBed() |
@NotNull Block |
PlayerFlowerPotManipulateEvent.getFlowerpot()
Gets the flowerpot that is involved in this event.
|
Constructor and Description |
---|
PlayerBedFailEnterEvent(@NotNull Player player,
@NotNull PlayerBedFailEnterEvent.FailReason failReason,
@NotNull Block bed,
boolean willExplode,
@Nullable net.kyori.adventure.text.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) |
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
Location.getBlock()
Gets the block at the represented location
|
@NotNull Block |
Chunk.getBlock(int x,
int y,
int z)
Gets a block from this chunk
|
@NotNull Block |
World.getBlockAt(int x,
int y,
int z)
Gets the
Block at the given coordinates |
@NotNull Block |
World.getBlockAt(@NotNull Location location)
|
default @NotNull Block |
World.getBlockAtKey(long key)
Gets the
Block at the given block key |
@NotNull Block |
World.getHighestBlockAt(int x,
int z)
Gets the highest non-empty (impassable) block at the given coordinates.
|
@NotNull Block |
World.getHighestBlockAt(int x,
int z,
@NotNull HeightMap heightMap)
Gets the highest block corresponding to the
HeightMap at the
given coordinates. |
default @NotNull Block |
World.getHighestBlockAt(int x,
int z,
HeightmapType heightmap)
Deprecated.
Upstream has added support for this, use
World.getHighestBlockAt(int, int, HeightMap) |
@NotNull Block |
World.getHighestBlockAt(@NotNull Location location)
Gets the highest non-empty (impassable) block at the given coordinates.
|
@NotNull Block |
World.getHighestBlockAt(@NotNull Location location,
@NotNull HeightMap heightMap)
Gets the highest block corresponding to the
HeightMap at the
given coordinates. |
default @NotNull Block |
World.getHighestBlockAt(@NotNull Location location,
HeightmapType heightmap)
Deprecated.
Upstream has added support for this, use
World.getHighestBlockAt(Location, HeightMap) |
Modifier and Type | Method and Description |
---|---|
@NotNull Chunk |
World.getChunkAt(@NotNull Block block)
|
default CompletableFuture<Chunk> |
World.getChunkAtAsync(@NotNull 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(@NotNull 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(@NotNull Block block,
boolean gen,
Consumer<Chunk> cb)
|
default void |
World.getChunkAtAsync(@NotNull Block block,
Consumer<Chunk> cb)
|
default void |
World.getChunkAtAsync(@NotNull Block block,
@NotNull World.ChunkLoadCallback cb)
Deprecated.
Use either the Future or the Consumer based methods
|
default CompletableFuture<Chunk> |
World.getChunkAtAsyncUrgently(@NotNull 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.getChunkAtAsyncUrgently(@NotNull 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. |
String |
UnsafeValues.getTranslationKey(Block block)
Deprecated.
Return the translation key for the Block, so the client can translate it into the active
locale when using a
TranslatableComponent . |
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
BlockState.getBlock()
Gets the block represented by this block state.
|
@NotNull Block |
Block.getRelative(@NotNull BlockFace face)
Gets the block at the given face
|
@NotNull Block |
Block.getRelative(@NotNull BlockFace face,
int distance)
Gets the block at the given distance of the given face
|
@NotNull Block |
Block.getRelative(int modX,
int modY,
int modZ)
Gets the block at the given offsets
|
Modifier and Type | Method and Description |
---|---|
@Nullable BlockFace |
Block.getFace(@NotNull Block block)
Gets the face relation of this block compared to the given block.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
BlockCommandSender.getBlock()
Returns the block this command sender belongs to
|
Modifier and Type | Method and Description |
---|---|
@Nullable Block |
AbstractArrow.getAttachedBlock()
Gets the block to which this arrow is attached.
|
@Nullable Block |
Raider.getPatrolTarget()
Gets the block the raider is targeting to patrol.
|
default @Nullable Block |
LivingEntity.getTargetBlock(int maxDistance)
Gets the block that the living entity has targeted, ignoring fluids
|
@Nullable Block |
LivingEntity.getTargetBlock(int maxDistance,
TargetBlockInfo.FluidMode fluidMode)
Gets the block that the living entity has targeted
|
@NotNull Block |
LivingEntity.getTargetBlock(@Nullable Set<Material> transparent,
int maxDistance)
Gets the block that the living entity has targeted.
|
@Nullable Block |
LivingEntity.getTargetBlockExact(int maxDistance)
Gets the block that the living entity has targeted.
|
@Nullable Block |
LivingEntity.getTargetBlockExact(int maxDistance,
@NotNull FluidCollisionMode fluidCollisionMode)
Gets the block that the living entity has targeted.
|
Modifier and Type | Method and Description |
---|---|
void |
Raider.setPatrolTarget(@Nullable 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 |
---|---|
@NotNull Block |
BlockEvent.getBlock()
Gets the block involved in this event.
|
@NotNull Block |
BlockPlaceEvent.getBlockAgainst()
Gets the block that this block was placed against
|
@NotNull Block |
BlockPlaceEvent.getBlockPlaced()
Clarity method for getting the placed block.
|
@Nullable Block |
BlockBurnEvent.getIgnitingBlock()
Gets the block which ignited this block.
|
@Nullable Block |
BlockIgniteEvent.getIgnitingBlock()
Gets the block which ignited this block
|
@NotNull Block |
BlockSpreadEvent.getSource()
Gets the source block involved in this event.
|
@NotNull Block |
BlockPhysicsEvent.getSourceBlock()
Gets the source block that triggered this event.
|
@NotNull Block |
BlockFromToEvent.getToBlock()
Convenience method for getting the faced Block.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
PrepareItemEnchantEvent.getEnchantBlock()
Gets the block being used to enchant the item
|
@NotNull Block |
EnchantItemEvent.getEnchantBlock()
Gets the block being used to enchant the item
|
Constructor and Description |
---|
EnchantItemEvent(@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) |
Modifier and Type | Field and Description |
---|---|
protected Block |
EntityInteractEvent.block |
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
EntityChangeBlockEvent.getBlock()
Gets the block the entity is changing
|
@NotNull Block |
EntityEnterBlockEvent.getBlock()
Get the block the entity will enter.
|
@NotNull Block |
EntityPlaceEvent.getBlock()
Returns the block that the entity was placed on
|
@NotNull Block |
EntityInteractEvent.getBlock()
Returns the involved block
|
@Nullable Block |
EntityCombustByBlockEvent.getCombuster()
The combuster can be lava or a block that is on fire.
|
@Nullable Block |
EntityDamageByBlockEvent.getDamager()
Returns the block that damaged the player.
|
@Nullable Block |
ProjectileHitEvent.getHitBlock()
Gets the block that was hit, if it was a block that was hit.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
HangingPlaceEvent.getBlock()
Returns the block that the hanging entity was placed on
|
Constructor and Description |
---|
HangingPlaceEvent(@NotNull Hanging hanging,
@Nullable Player player,
@NotNull Block block,
@NotNull BlockFace blockFace) |
Constructor and Description |
---|
BrewEvent(@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) |
FurnaceSmeltEvent(@NotNull Block furnace,
@NotNull ItemStack source,
@NotNull ItemStack result)
Deprecated.
|
FurnaceSmeltEvent(@NotNull Block furnace,
@NotNull ItemStack source,
@NotNull ItemStack result,
CookingRecipe<?> recipe) |
Modifier and Type | Field and Description |
---|---|
protected Block |
PlayerInteractEvent.blockClicked |
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
PlayerBedEnterEvent.getBed()
Returns the bed block involved in this event.
|
@NotNull Block |
PlayerBedLeaveEvent.getBed()
Returns the bed block involved in this event.
|
@NotNull Block |
PlayerBucketEvent.getBlock()
Gets the block involved in this event.
|
@NotNull Block |
PlayerBucketEvent.getBlockClicked()
Return the block clicked
|
@Nullable Block |
PlayerInteractEvent.getClickedBlock()
Returns the clicked block
|
@NotNull Block |
PlayerHarvestBlockEvent.getHarvestedBlock()
Gets the block that is being harvested.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
VehicleBlockCollisionEvent.getBlock()
Gets the block the vehicle collided with
|
Constructor and Description |
---|
VehicleBlockCollisionEvent(@NotNull Vehicle vehicle,
@NotNull Block block) |
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
BlockInventoryHolder.getBlock()
Gets the block associated with this holder.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Block |
BlockProjectileSource.getBlock()
Gets the block this projectile source belongs to.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Block |
RayTraceResult.getHitBlock()
Gets the hit block.
|
@NotNull Block |
BlockIterator.next()
Returns the next Block in the trace
|
Modifier and Type | Method and Description |
---|---|
static @NotNull BoundingBox |
BoundingBox.of(@NotNull Block block)
Creates a new 1x1x1 sized bounding box containing the given block.
|
static @NotNull BoundingBox |
BoundingBox.of(@NotNull Block corner1,
@NotNull Block corner2)
Creates a new bounding box using the coordinates of the given blocks as
corners.
|
static @NotNull BoundingBox |
BoundingBox.of(@NotNull Block corner1,
@NotNull Block corner2)
Creates a new bounding box using the coordinates of the given blocks as
corners.
|
Constructor and Description |
---|
RayTraceResult(@NotNull Vector hitPosition,
@Nullable Block hitBlock,
@Nullable BlockFace hitBlockFace)
Creates a RayTraceResult.
|
Copyright © 2021. All rights reserved.