public class ItemMetaImpl extends Object implements ItemMeta
ItemMeta.HiddenModifierFlag| Modifier and Type | Field and Description |
|---|---|
protected ItemDisplayProperties |
displayProperties |
protected int |
flags |
| Constructor and Description |
|---|
ItemMetaImpl() |
| Modifier and Type | Method and Description |
|---|---|
ItemDisplayProperties |
displayProperties()
Gets the display properties of this item
|
Set<ItemMeta.HiddenModifierFlag> |
flags()
Gets the display flags of this item.
|
void |
process()
Called when all fields have been set.
|
void |
setDisplayProperties(ItemDisplayProperties properties)
Sets the display properties of this item
|
void |
setFlag(ItemMeta.HiddenModifierFlag flag,
boolean shown)
Sets the display value of a specified flag.
|
protected ItemDisplayProperties displayProperties
protected int flags
public ItemMetaImpl()
public void process()
NBTSerializableprocess in interface NBTSerializablepublic ItemDisplayProperties displayProperties()
ItemMetadisplayProperties in interface ItemMetapublic void setDisplayProperties(ItemDisplayProperties properties)
ItemMetasetDisplayProperties in interface ItemMetaproperties - the new display propertiespublic Set<ItemMeta.HiddenModifierFlag> flags()
ItemMetapublic void setFlag(ItemMeta.HiddenModifierFlag flag, boolean shown)
ItemMetaCopyright © 2016. All rights reserved.