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()
NBTSerializable
process
in interface NBTSerializable
public ItemDisplayProperties displayProperties()
ItemMeta
displayProperties
in interface ItemMeta
public void setDisplayProperties(ItemDisplayProperties properties)
ItemMeta
setDisplayProperties
in interface ItemMeta
properties
- the new display propertiespublic Set<ItemMeta.HiddenModifierFlag> flags()
ItemMeta
public void setFlag(ItemMeta.HiddenModifierFlag flag, boolean shown)
ItemMeta
Copyright © 2016. All rights reserved.