Uses of Interface
org.bukkit.block.data.BlockData
| 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.block.data |
Generalized BlockData classes.
|
| org.bukkit.block.data.type |
Specific BlockData classes relevant to only a given block or set of blocks.
|
| 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.entity | |
| 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. |
-
Uses of BlockData in org.bukkit
Methods in org.bukkit that return BlockData Modifier and Type Method Description static BlockDataBukkit. createBlockData(String data)Creates a newBlockDatainstance with material and properties parsed from provided data.static BlockDataBukkit. createBlockData(Material material)Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults.static BlockDataBukkit. createBlockData(Material material, String data)Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults, except for those provided in data.static BlockDataBukkit. createBlockData(Material material, Consumer<BlockData> consumer)Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults.BlockDataMaterial. createBlockData()Creates a newBlockDatainstance for this Material, with all properties initialized to unspecified defaults.BlockDataMaterial. createBlockData(String data)Creates a newBlockDatainstance for this Material, with all properties initialized to unspecified defaults, except for those provided in data.BlockDataMaterial. createBlockData(Consumer<BlockData> consumer)Creates a newBlockDatainstance for this Material, with all properties initialized to unspecified defaults.BlockDataServer. createBlockData(String data)Creates a newBlockDatainstance with material and properties parsed from provided data.BlockDataServer. createBlockData(Material material)Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults.BlockDataServer. createBlockData(Material material, String data)Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults, except for those provided in data.BlockDataServer. createBlockData(Material material, Consumer<BlockData> consumer)Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults.BlockDataUnsafeValues. fromLegacy(Material material, byte data)Deprecated.BlockDataBlockChangeDelegate. getBlockData(int x, int y, int z)Get the block data at the location.BlockDataChunkSnapshot. getBlockData(int x, int y, int z)Get block data for block at corresponding coordinate in the chunkMethods in org.bukkit with parameters of type BlockData Modifier and Type Method Description booleanChunk. contains(BlockData block)Tests if this chunk contains the specified block.booleanChunkSnapshot. contains(BlockData block)Tests if this snapshot contains the specified block.booleanBlockChangeDelegate. setBlockData(int x, int y, int z, BlockData blockData)Set a block data at the specified coordinates.FallingBlockWorld. spawnFallingBlock(Location location, BlockData data)Method parameters in org.bukkit with type arguments of type BlockData Modifier and Type Method Description static BlockDataBukkit. createBlockData(Material material, Consumer<BlockData> consumer)Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults.BlockDataMaterial. createBlockData(Consumer<BlockData> consumer)Creates a newBlockDatainstance for this Material, with all properties initialized to unspecified defaults.BlockDataServer. createBlockData(Material material, Consumer<BlockData> consumer)Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults. -
Uses of BlockData in org.bukkit.block
Methods in org.bukkit.block that return BlockData Modifier and Type Method Description BlockDataBlock. getBlockData()Gets the complete block data for this blockBlockDataBlockState. getBlockData()Gets the data for this block state.Methods in org.bukkit.block with parameters of type BlockData Modifier and Type Method Description voidBlock. setBlockData(BlockData data)Sets the complete data for this blockvoidBlock. setBlockData(BlockData data, boolean applyPhysics)Sets the complete data for this block
Note that applyPhysics = false is not in general safe.voidBlockState. setBlockData(BlockData data)Sets the data for this block state. -
Uses of BlockData in org.bukkit.block.data
Subinterfaces of BlockData in org.bukkit.block.data Modifier and Type Interface Description interfaceAgeable'age' represents the different growth stages that a crop-like block can go through.interfaceAnaloguePowerable'power' represents the redstone power level currently being emitted or transmitted via this block.interfaceAttachable'attached' denotes whether a tripwire hook or string forms a complete tripwire circuit and is ready to trigger.interfaceBisected'half' denotes which half of a two block tall material this block is.interfaceDirectional'facing' represents the face towards which the block is pointing.interfaceFaceAttachable'face' represents the face to which a lever or button is stuck.interfaceLevelled'level' represents the amount of fluid contained within this block, either by itself or inside a cauldron.interfaceLightable'lit' denotes whether this block (either a redstone torch or furnace) is currently lit - that is not burned out.interfaceMultipleFacingThis class encompasses the 'north', 'east', 'south', 'west', 'up', 'down' boolean flags which are used to set which faces of the block textures are displayed on.interfaceOpenable'open' denotes whether this door-like block is currently opened.interfaceOrientable'axis' represents the axis along whilst this block is oriented.interfacePowerable'powered' indicates whether this block is in the powered state or not, i.e.interfaceRail'shape' represents the current layout of a minecart rail.interfaceRotatable'rotation' represents the current rotation of this block.interfaceSnowable'snowy' denotes whether this block has a snow covered side and top texture (normally because the block above is snow).interfaceWaterlogged'waterlogged' denotes whether this block has fluid in it.Methods in org.bukkit.block.data that return BlockData Modifier and Type Method Description BlockDataBlockData. clone()Returns a copy of this BlockData.BlockDataBlockData. merge(BlockData data)Merges all explicitly set states from the given data with this BlockData.Methods in org.bukkit.block.data with parameters of type BlockData Modifier and Type Method Description booleanBlockData. matches(BlockData data)Checks if the specified BlockData matches this block data.BlockDataBlockData. merge(BlockData data)Merges all explicitly set states from the given data with this BlockData. -
Uses of BlockData in org.bukkit.block.data.type
Subinterfaces of BlockData in org.bukkit.block.data.type Modifier and Type Interface Description interfaceBamboo'leaves' represents the size of the leaves on this bamboo block.interfaceBedSimilar toBisected, 'part' denotes which half of the bed this block corresponds to.interfaceBeehive'honey_level' represents the amount of honey stored in the hive.interfaceBell'attachment' denotes how the bell is attached to its block.interfaceBrewingStandInterface to the 'has_bottle_0', 'has_bottle_1', 'has_bottle_2' flags on a brewing stand which indicate which bottles are rendered on the outside.interfaceBubbleColumn'drag' indicates whether a force will be applied on entities moving through this block.interfaceCake'bites' represents the amount of bites which have been taken from this slice of cake.interfaceCampfire'signal_fire' denotes whether the fire is extra smokey due to having a hay bale placed beneath it.interfaceChaininterfaceChest'type' represents which part of a double chest this block is, or if it is a single chest.interfaceCocoainterfaceCommandBlock'conditional' denotes whether this command block is conditional or not, i.e.interfaceComparator'mode' indicates what mode this comparator will operate in.interfaceCoralWallFaninterfaceDaylightDetector'inverted' denotes whether this daylight detector is in the inverted mode, i.e.interfaceDispenserSimilar toPowerable, 'triggered' indicates whether or not the dispenser is currently activated.interfaceDoor'hinge' indicates which hinge this door is attached to and will rotate around when opened.interfaceEnderChestinterfaceEndPortalFrame'eye' denotes whether this end portal frame has been activated by having an eye of ender placed in it.interfaceFarmlandThe 'moisture' level of farmland indicates how close it is to a water source (if any).interfaceFenceinterfaceFiremd_5's mixtape.interfaceFurnaceinterfaceGate'in_wall" indicates if the fence gate is attached to a wall, and if true the texture is lowered by a small amount to blend in better.interfaceGlassPaneinterfaceGrindstoneinterfaceHopperSimilar toPowerable, 'enabled' indicates whether or not the hopper is currently activated.interfaceJigsaw'orientation' is the direction the block is facing.interfaceJukebox'has_record' is a quick flag to check whether this jukebox has a record inside it.interfaceLadderinterfaceLantern'hanging' denotes whether the lantern is hanging from a block.interfaceLeaves'persistent' indicates whether or not leaves will be checked by the server to see if they are subject to decay or not.interfaceLectern'has_book' is a quick flag to check whether this lectern has a book inside it.interfaceNoteBlock'instrument' is the type of sound made when this note block is activated.interfaceObserverinterfacePiston'extended' denotes whether the piston head is currently extended or not.interfacePistonHead'short' denotes this piston head is shorter than the usual amount because it is currently retracting.interfaceRedstoneRailA type of minecart rail which interacts with redstone in one way or another.interfaceRedstoneWallTorchinterfaceRedstoneWire'north', 'east', 'south', 'west' represent the types of connections this redstone wire has to adjacent blocks.interfaceRepeater'delay' is the propagation delay of a repeater, i.e.interfaceRespawnAnchor'charges' represents the amount of times the anchor may still be used.interfaceSapling'stage' represents the growth stage of a sapling.interfaceScaffolding'bottom' indicates whether the scaffolding is floating or not.interfaceSeaPickle'pickles' indicates the number of pickles in this block.interfaceSigninterfaceSlab'type' represents what state the slab is in - either top, bottom, or a double slab occupying the full block.interfaceSnow'layers' represents the amount of layers of snow which are present in this block.interfaceStairs'shape' represents the texture and bounding box shape of these stairs.interfaceStructureBlock'mode' represents the different modes in which this structure block may operate.interfaceSwitchinterfaceTechnicalPiston'type' represents the type of piston which this (technical) block corresponds to.interfaceTNT'unstable' indicates whether this TNT will explode on punching.interfaceTrapDoorinterfaceTripwire'disarmed' denotes that the tripwire was broken with shears and will not subsequently produce a current when destroyed.interfaceTripwireHookinterfaceTurtleEgg'hatch' is the number of turtles which may hatch from these eggs.interfaceWallThis class encompasses the 'north', 'east', 'south', 'west', height flags which are used to set the height of a wall.interfaceWallSign -
Uses of BlockData in org.bukkit.entity
Methods in org.bukkit.entity that return BlockData Modifier and Type Method Description BlockDataFallingBlock. getBlockData()Get the data for the falling blockBlockDataEnderman. getCarriedBlock()Gets the data of the block that the Enderman is carrying.BlockDataMinecart. getDisplayBlockData()Gets the display block for this minecart.Methods in org.bukkit.entity with parameters of type BlockData Modifier and Type Method Description voidPlayer. sendBlockChange(Location loc, BlockData block)Send a block change.voidEnderman. setCarriedBlock(BlockData blockData)Sets the data of the block that the Enderman is carrying.voidMinecart. setDisplayBlockData(BlockData blockData)Sets the display block for this minecart. -
Uses of BlockData in org.bukkit.event.block
Fields in org.bukkit.event.block declared as BlockData Modifier and Type Field Description protected BlockDataBlockCanBuildEvent. blockDataMethods in org.bukkit.event.block that return BlockData Modifier and Type Method Description BlockDataBlockCanBuildEvent. getBlockData()Gets the BlockData that we are trying to place.BlockDataFluidLevelChangeEvent. getNewData()Gets the new data of the changed block.Methods in org.bukkit.event.block with parameters of type BlockData Modifier and Type Method Description voidFluidLevelChangeEvent. setNewData(BlockData newData)Sets the new data of the changed block.Constructors in org.bukkit.event.block with parameters of type BlockData Constructor Description BlockCanBuildEvent(Block block, BlockData type, boolean canBuild)Deprecated.BlockCanBuildEvent(Block block, Player player, BlockData type, boolean canBuild)BlockPhysicsEvent(Block block, BlockData changed)BlockPhysicsEvent(Block block, BlockData changed, Block sourceBlock)FluidLevelChangeEvent(Block theBlock, BlockData newData) -
Uses of BlockData in org.bukkit.event.entity
Methods in org.bukkit.event.entity that return BlockData Modifier and Type Method Description BlockDataEntityChangeBlockEvent. getBlockData()Gets the data for the block that would be changed intoConstructors in org.bukkit.event.entity with parameters of type BlockData Constructor Description EntityChangeBlockEvent(Entity what, Block block, BlockData to) -
Uses of BlockData in org.bukkit.generator
Methods in org.bukkit.generator that return BlockData Modifier and Type Method Description BlockDataChunkGenerator.ChunkData. getBlockData(int x, int y, int z)Get the type and data of the block at x, y, z.Methods in org.bukkit.generator with parameters of type BlockData Modifier and Type Method Description voidChunkGenerator.ChunkData. setBlock(int x, int y, int z, BlockData blockData)Set the block at x,y,z in the chunk data to material.voidChunkGenerator.ChunkData. setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, BlockData blockData)Set a region of this chunk from xMin, yMin, zMin (inclusive) to xMax, yMax, zMax (exclusive) to material. -
Uses of BlockData in org.bukkit.inventory.meta
Methods in org.bukkit.inventory.meta that return BlockData Modifier and Type Method Description BlockDataBlockDataMeta. getBlockData(Material material)Returns the currently attached block data for this item or creates a new one if one doesn't exist.Methods in org.bukkit.inventory.meta with parameters of type BlockData Modifier and Type Method Description voidBlockDataMeta. setBlockData(BlockData blockData)Attaches a copy of the passed block data to the item.