Package | Description |
---|---|
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.generator |
Classes to facilitate
world generation
implementation. |
org.bukkit.inventory.meta |
The interfaces used when manipulating extra data can can be stored inside
item stacks . |
org.bukkit.structure |
Classes related to creating or using
structures without creating Structure
blocks in the world. |
Modifier and Type | Method and Description |
---|---|
BlockState |
RegionAccessor.getBlockState(int x,
int y,
int z)
Gets the
BlockState at the given coordinates. |
BlockState |
RegionAccessor.getBlockState(Location location)
Gets the
BlockState at the given Location . |
BlockState[] |
Chunk.getTileEntities()
Get a list of all tile entities in the chunk.
|
Modifier and Type | Method and Description |
---|---|
boolean |
RegionAccessor.generateTree(Location location,
Random random,
TreeType type,
Consumer<BlockState> stateConsumer)
Creates a tree at the given
Location |
boolean |
RegionAccessor.generateTree(Location location,
Random random,
TreeType type,
Predicate<BlockState> statePredicate)
Creates a tree at the given
Location |
Modifier and Type | Interface and 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 |
SculkSensor
Represents a captured state of a sculk sensor
|
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 and Description |
---|---|
BlockState |
Block.getState()
Captures the current state of this block.
|
Modifier and Type | Field and Description |
---|---|
protected BlockState |
BlockPlaceEvent.replacedBlockState |
Modifier and Type | Method and Description |
---|---|
BlockState |
BlockPlaceEvent.getBlockReplacedState()
Gets the BlockState for the block which was replaced.
|
BlockState |
BlockDropItemEvent.getBlockState()
Gets the BlockState of the block involved in this event before it was
broken.
|
BlockState |
MoistureChangeEvent.getNewState()
Gets the new state of the affected block.
|
BlockState |
CauldronLevelChangeEvent.getNewState()
Gets the new state of the cauldron.
|
BlockState |
BlockGrowEvent.getNewState()
Gets the state of the block where it will form or spread to.
|
BlockState |
BlockFadeEvent.getNewState()
Gets the state of the block that will be fading, melting or
disappearing.
|
Modifier and Type | Method and Description |
---|---|
List<BlockState> |
SpongeAbsorbEvent.getBlocks()
Get a list of all blocks to be removed by the sponge.
|
List<BlockState> |
BlockFertilizeEvent.getBlocks()
Gets a list of all blocks changed by the fertilization.
|
List<BlockState> |
BlockMultiPlaceEvent.getReplacedBlockStates()
Gets a list of blockstates for all blocks which were replaced by the
placement of the new blocks.
|
Constructor and Description |
---|
BlockDropItemEvent(Block block,
BlockState blockState,
Player player,
List<Item> items) |
BlockFadeEvent(Block block,
BlockState newState) |
BlockFormEvent(Block block,
BlockState newState) |
BlockGrowEvent(Block block,
BlockState newState) |
BlockPlaceEvent(Block placedBlock,
BlockState replacedBlockState,
Block placedAgainst,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild)
Deprecated.
|
BlockPlaceEvent(Block placedBlock,
BlockState replacedBlockState,
Block placedAgainst,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild,
EquipmentSlot hand) |
BlockSpreadEvent(Block block,
Block source,
BlockState newState) |
CauldronLevelChangeEvent(Block block,
Entity entity,
CauldronLevelChangeEvent.ChangeReason reason,
BlockState newBlock) |
EntityBlockFormEvent(Entity entity,
Block block,
BlockState blockstate) |
MoistureChangeEvent(Block block,
BlockState newState) |
Constructor and Description |
---|
BlockFertilizeEvent(Block theBlock,
Player player,
List<BlockState> blocks) |
BlockMultiPlaceEvent(List<BlockState> states,
Block clicked,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild) |
SpongeAbsorbEvent(Block block,
List<BlockState> waterblocks) |
Modifier and Type | Method and Description |
---|---|
List<BlockState> |
EntityCreatePortalEvent.getBlocks()
Deprecated.
Gets a list of all blocks associated with the portal.
|
Constructor and Description |
---|
EntityCreatePortalEvent(LivingEntity what,
List<BlockState> blocks,
PortalType type)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<BlockState> |
StructureGrowEvent.getBlocks()
Gets a list of all blocks associated with the structure.
|
List<BlockState> |
PortalCreateEvent.getBlocks()
Gets an array list of all the blocks associated with the created portal
|
Constructor and Description |
---|
PortalCreateEvent(List<BlockState> blocks,
World world,
Entity entity,
PortalCreateEvent.CreateReason reason) |
PortalCreateEvent(List<BlockState> blocks,
World world,
PortalCreateEvent.CreateReason reason)
Deprecated.
|
StructureGrowEvent(Location location,
TreeType species,
boolean bonemeal,
Player player,
List<BlockState> blocks) |
Modifier and Type | Method and Description |
---|---|
List<BlockState> |
LimitedRegion.getTileEntities()
Gets a list of all tile entities in the limited region including the
buffer zone.
|
Modifier and Type | Method and Description |
---|---|
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 and Description |
---|---|
void |
BlockStateMeta.setBlockState(BlockState blockState)
Attaches a copy of the passed block state to the item.
|
Modifier and Type | Method and Description |
---|---|
List<BlockState> |
Palette.getBlocks()
Gets a copy of the blocks this Palette is made of.
|
Copyright © 2022. All rights reserved.