public class ImmutableSpongeEnchantmentData extends AbstractImmutableData<org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData,org.spongepowered.api.data.manipulator.mutable.item.EnchantmentData> implements org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData
Constructor and Description |
---|
ImmutableSpongeEnchantmentData(List<org.spongepowered.api.data.meta.ItemEnchantment> enchantments) |
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.data.manipulator.mutable.item.EnchantmentData |
asMutable() |
int |
compareTo(org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData o) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<org.spongepowered.api.data.meta.ItemEnchantment> |
enchantments() |
ImmutableList<org.spongepowered.api.data.meta.ItemEnchantment> |
getEnchantments() |
protected void |
registerGetters() |
org.spongepowered.api.data.DataContainer |
toContainer() |
copy, equals, get, getKeys, getValue, getValues, hashCode, registerFieldGetter, registerKeyValue, supports, with
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
public ImmutableSpongeEnchantmentData(List<org.spongepowered.api.data.meta.ItemEnchantment> enchantments)
protected void registerGetters()
registerGetters
in class AbstractImmutableData<org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData,org.spongepowered.api.data.manipulator.mutable.item.EnchantmentData>
public org.spongepowered.api.data.value.immutable.ImmutableListValue<org.spongepowered.api.data.meta.ItemEnchantment> enchantments()
enchantments
in interface org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData
public org.spongepowered.api.data.manipulator.mutable.item.EnchantmentData asMutable()
asMutable
in interface org.spongepowered.api.data.manipulator.ImmutableDataManipulator<org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData,org.spongepowered.api.data.manipulator.mutable.item.EnchantmentData>
public int compareTo(org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData o)
compareTo
in interface Comparable<org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData>
public org.spongepowered.api.data.DataContainer toContainer()
toContainer
in interface org.spongepowered.api.data.DataSerializable
public ImmutableList<org.spongepowered.api.data.meta.ItemEnchantment> getEnchantments()