Package | Description |
---|---|
com.destroystokyo.paper | |
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.event.block | |
org.bukkit.event.entity | |
org.bukkit.event.world | |
org.bukkit.inventory.meta |
The interfaces used when manipulating extra data can can be stored inside
item stacks . |
Modifier and Type | Method | Description |
---|---|---|
boolean |
MaterialSetTag.isTagged(@NotNull BlockState block) |
Modifier and Type | Method | Description |
---|---|---|
default @NotNull BlockState[] |
Chunk.getTileEntities() |
Get a list of all tile entities in the chunk.
|
@NotNull BlockState[] |
Chunk.getTileEntities(boolean useSnapshot) |
Get a list of all tile entities in the chunk.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
Banner |
Represents a captured state of a banner.
|
interface |
Barrel |
Represents a captured state of a Barrel.
|
interface |
Beacon |
Represents a captured state of a beacon.
|
interface |
Bed |
Deprecated.
does not provide useful information beyond the material itself
|
interface |
Beehive |
Represents a captured state of a bee hive.
|
interface |
Bell |
Represents a captured state of Bell.
|
interface |
BlastFurnace |
Represents a captured state of a blast furnace.
|
interface |
BrewingStand |
Represents a captured state of a brewing stand.
|
interface |
Campfire |
Represents a captured state of a campfire.
|
interface |
Chest |
Represents a captured state of a chest.
|
interface |
CommandBlock |
Represents a captured state of a command block.
|
interface |
Comparator |
Represents a captured state of an on / off comparator.
|
interface |
Conduit |
Represents a captured state of a conduit.
|
interface |
Container |
Represents a captured state of a container block.
|
interface |
CreatureSpawner |
Represents a captured state of a creature spawner.
|
interface |
DaylightDetector |
Represents a captured state of a (possibly inverted) daylight detector.
|
interface |
Dispenser |
Represents a captured state of a dispenser.
|
interface |
Dropper |
Represents a captured state of a dropper.
|
interface |
EnchantingTable |
Represents a captured state of an enchanting table.
|
interface |
EnderChest |
Represents a captured state of an ender chest.
|
interface |
EndGateway |
Represents a captured state of an end gateway.
|
interface |
EntityBlockStorage<T extends Entity> |
Represents a captured state of a block which stores entities.
|
interface |
Furnace |
Represents a captured state of a furnace.
|
interface |
Hopper |
Represents a captured state of a hopper.
|
interface |
Jigsaw |
Represents a captured state of a jigsaw.
|
interface |
Jukebox |
Represents a captured state of a jukebox.
|
interface |
Lectern |
Represents a captured state of a lectern.
|
interface |
ShulkerBox |
Represents a captured state of a ShulkerBox.
|
interface |
Sign |
Represents a captured state of either a SignPost or a WallSign.
|
interface |
Skull |
Represents a captured state of a skull block.
|
interface |
Smoker |
Represents a captured state of a smoker.
|
interface |
Structure |
Represents a structure block that can save and load blocks from a file.
|
interface |
TileState |
Represents a block state that also hosts a tile entity at the given location.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull BlockState |
Block.getState() |
Captures the current state of this block.
|
@NotNull BlockState |
Block.getState(boolean useSnapshot) |
Modifier and Type | Field | Description |
---|---|---|
protected BlockState |
BlockPlaceEvent.replacedBlockState |
Modifier and Type | Method | Description |
---|---|---|
@NotNull BlockState |
BlockPlaceEvent.getBlockReplacedState() |
Gets the BlockState for the block which was replaced.
|
@NotNull BlockState |
BlockDropItemEvent.getBlockState() |
Gets the BlockState of the block involved in this event before it was
broken.
|
@NotNull BlockState |
BlockFadeEvent.getNewState() |
Gets the state of the block that will be fading, melting or
disappearing.
|
@NotNull BlockState |
BlockGrowEvent.getNewState() |
Gets the state of the block where it will form or spread to.
|
@NotNull BlockState |
MoistureChangeEvent.getNewState() |
Gets the new state of the affected block.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull List<BlockState> |
BlockFertilizeEvent.getBlocks() |
Gets a list of all blocks changed by the fertilization.
|
@NotNull List<BlockState> |
SpongeAbsorbEvent.getBlocks() |
Get a list of all blocks to be removed by the sponge.
|
@NotNull List<BlockState> |
BlockMultiPlaceEvent.getReplacedBlockStates() |
Gets a list of blockstates for all blocks which were replaced by the
placement of the new blocks.
|
Constructor | Description |
---|---|
BlockDropItemEvent(@NotNull Block block,
@NotNull BlockState blockState,
@NotNull Player player,
@NotNull List<Item> items) |
|
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) |
|
EntityBlockFormEvent(@NotNull Entity entity,
@NotNull Block block,
@NotNull BlockState blockstate) |
|
MoistureChangeEvent(@NotNull Block block,
@NotNull BlockState newState) |
Constructor | Description |
---|---|
BlockFertilizeEvent(@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) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull List<BlockState> |
EntityCreatePortalEvent.getBlocks() |
Deprecated.
Gets a list of all blocks associated with the portal.
|
Constructor | Description |
---|---|
EntityCreatePortalEvent(@NotNull LivingEntity what,
@NotNull List<BlockState> blocks,
@NotNull PortalType type) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull List<BlockState> |
PortalCreateEvent.getBlocks() |
Gets an array list of all the blocks associated with the created portal
|
@NotNull List<BlockState> |
StructureGrowEvent.getBlocks() |
Gets a list of all blocks associated with the structure.
|
Constructor | Description |
---|---|
PortalCreateEvent(@NotNull List<BlockState> blocks,
@NotNull World world,
@NotNull PortalCreateEvent.CreateReason reason) |
Deprecated.
|
PortalCreateEvent(@NotNull List<BlockState> blocks,
@NotNull World world,
@Nullable Entity entity,
@NotNull PortalCreateEvent.CreateReason reason) |
|
StructureGrowEvent(@NotNull Location location,
@NotNull TreeType species,
boolean bonemeal,
@Nullable Player player,
@NotNull List<BlockState> blocks) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull BlockState |
BlockStateMeta.getBlockState() |
Returns the currently attached block state for this
item or creates a new one if one doesn't exist.
|
Modifier and Type | Method | Description |
---|---|---|
void |
BlockStateMeta.setBlockState(@NotNull BlockState blockState) |
Attaches a copy of the passed block state to the item.
|
Copyright © 2020. All rights reserved.