public interface NbtValued
| Modifier and Type | Method and Description |
|---|---|
CompoundTag |
getNbtData()
Get the object's NBT data (tile entity data).
|
boolean |
hasNbtData()
Returns whether the block contains NBT data.
|
void |
setNbtData(CompoundTag nbtData)
Set the object's NBT data (tile entity data).
|
boolean hasNbtData()
getNbtData() must not return
null if this method returns true.CompoundTag getNbtData()
setNbtData(CompoundTag) so that
the instance knows of the changes. Making changes without calling
setNbtData(CompoundTag) could have unintended consequences.
hasNbtData() must return true if and only if method does not return null.void setNbtData(CompoundTag nbtData) throws DataException
nbtData - NBT data, or null if no dataDataException - if possibly the data is invalidCopyright © 2010-2014. All Rights Reserved.