public class DispenserBlock extends ContainerBlock
| Constructor and Description |
|---|
DispenserBlock()
Construct an empty dispenser block.
|
DispenserBlock(int data)
Construct an empty dispenser block.
|
DispenserBlock(int data,
BaseItemStack[] items)
Construct a dispenser block with the given orientation and inventory.
|
| Modifier and Type | Method and Description |
|---|---|
CompoundTag |
getNbtData()
Get the object's NBT data (tile entity data).
|
String |
getNbtId()
Return the name of the title entity ID.
|
void |
setNbtData(CompoundTag rootTag)
Set the object's NBT data (tile entity data).
|
deserializeInventory, deserializeItem, getItems, hasNbtData, serializeInventory, serializeItem, setItemscontainsFuzzy, cycleData, equals, equalsFuzzy, flip, flip, getType, inIterable, isAir, rotate90, rotate90Reverse, setTypegetData, getId, hashCode, hasWildcardData, setData, setId, setIdAndData, toStringpublic DispenserBlock()
public DispenserBlock(int data)
data - data value (orientation)public DispenserBlock(int data,
BaseItemStack[] items)
data - data value (orientation)items - array of items in the inventorypublic String getNbtId()
TileEntityBlockgetNbtId in interface TileEntityBlockgetNbtId in class Blockpublic CompoundTag getNbtData()
NbtValuedNbtValued.setNbtData(CompoundTag) so that
the instance knows of the changes. Making changes without calling
NbtValued.setNbtData(CompoundTag) could have unintended consequences.
NbtValued.hasNbtData() must return true if and only if method does not return null.getNbtData in interface NbtValuedgetNbtData in class Blockpublic void setNbtData(CompoundTag rootTag) throws DataException
NbtValuedsetNbtData in interface NbtValuedsetNbtData in class BlockrootTag - NBT data, or null if no dataDataException - if possibly the data is invalidCopyright © 2010-2014. All Rights Reserved.