emerald-extension / cn.berberman.emerald.extension / NBTModifier / NBTTagModifier

NBTTagModifier

class NBTTagModifier

Modify NBT Tag.

See Also

NBTModifier

Author berberman

Types

INBTTagName interface INBTTagName
An enum which list data of NBT Name should implements this interface.
NBTType enum class NBTType : INBTTagName
NBT modify type enumeration.
Slot enum class Slot : INBTTagName
NBT slot enumeration.

Constructors

<init> NBTTagModifier()
Modify NBT Tag.

Properties

amount var amount: Int
The value of NBT Tag
operation var operation: Boolean
true represents use amount false represents use %
slot var slot: Slot
Which slot where the item in this NBT Tag take effect.
type var type: NBTType
Which NBT Tag type you want to modify.
uuidLeast var uuidLeast: Int
uuidLeast value.
uuidMost var uuidMost: Int
uuidMost value.

Companion Object Properties

DEFAULT_OPERATION const val DEFAULT_OPERATION: Boolean
Default operation value
DEFAULT_UUID_LEAST const val DEFAULT_UUID_LEAST: Int
Default uuid least value
DEFAULT_UUID_MOST const val DEFAULT_UUID_MOST: Int
Default uuid most value