java.lang.Cloneable
Ageable
, AnaloguePowerable
, Attachable
, Bed
, Bisected
, BrewingStand
, BubbleColumn
, Cake
, Chest
, Cocoa
, CommandBlock
, Comparator
, CoralWallFan
, DaylightDetector
, Directional
, Dispenser
, Door
, EnderChest
, EndPortalFrame
, Farmland
, Fence
, Fire
, Furnace
, Gate
, GlassPane
, Hopper
, Jukebox
, Ladder
, Leaves
, Levelled
, Lightable
, MultipleFacing
, NoteBlock
, Observer
, Openable
, Orientable
, Piston
, PistonHead
, Powerable
, Rail
, RedstoneRail
, RedstoneWallTorch
, RedstoneWire
, Repeater
, Rotatable
, Sapling
, SeaPickle
, Sign
, Slab
, Snow
, Snowable
, Stairs
, StructureBlock
, Switch
, TechnicalPiston
, TNT
, TrapDoor
, Tripwire
, TripwireHook
, TurtleEgg
, WallSign
, Waterlogged
public interface BlockData
extends java.lang.Cloneable
Modifier and Type | Method | Description |
---|---|---|
BlockData |
clone() |
Returns a copy of this BlockData.
|
java.lang.String |
getAsString() |
Gets a string, which when passed into a method such as
Server.createBlockData(java.lang.String) will unambiguously
recreate this instance. |
Material |
getMaterial() |
Get the Material represented by this block data.
|
boolean |
matches(BlockData data) |
Checks if the specified BlockData matches this block data.
|
BlockData |
merge(BlockData data) |
Merges all explicitly set states from the given data with this BlockData.
|
Material getMaterial()
java.lang.String getAsString()
Server.createBlockData(java.lang.String)
will unambiguously
recreate this instance.BlockData merge(BlockData data)
Server.createBlockData(java.lang.String)
and
not have been subsequently modified.
data
- the data to merge fromboolean matches(BlockData data)
Object.equals(java.lang.Object)
, whilst for parsed data (that to
which merge(org.bukkit.block.data.BlockData)
applies, it will
return true when the type and all explicitly set states match.
data
- the data to match against (normally a parsed constant)BlockData clone()
Copyright © 2018. All rights reserved.