Class StaticEnchantmentType
java.lang.Object
com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
com.github.retrooper.packetevents.protocol.item.enchantment.type.StaticEnchantmentType
- All Implemented Interfaces:
EnchantmentType,CopyableEntity<EnchantmentType>,DeepComparableEntity,MappedEntity
-
Field Summary
Fields inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
data -
Constructor Summary
ConstructorsConstructorDescriptionStaticEnchantmentType(@Nullable TypesBuilderData data, net.kyori.adventure.text.Component description, EnchantmentDefinition definition, MappedEntitySet<EnchantmentType> exclusiveSet, StaticComponentMap effects) StaticEnchantmentType(net.kyori.adventure.text.Component description, EnchantmentDefinition definition, MappedEntitySet<EnchantmentType> exclusiveSet, StaticComponentMap effects) -
Method Summary
Modifier and TypeMethodDescriptioncopy(@Nullable TypesBuilderData newData) booleandeepEquals(Object obj) intnet.kyori.adventure.text.ComponenttoString()Methods inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
equals, getId, getName, getRegistryData, hashCode, isRegisteredMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.retrooper.packetevents.protocol.mapper.MappedEntity
getId, getName, isRegistered
-
Constructor Details
-
StaticEnchantmentType
public StaticEnchantmentType(net.kyori.adventure.text.Component description, EnchantmentDefinition definition, MappedEntitySet<EnchantmentType> exclusiveSet, StaticComponentMap effects) -
StaticEnchantmentType
public StaticEnchantmentType(@Nullable @Nullable TypesBuilderData data, net.kyori.adventure.text.Component description, EnchantmentDefinition definition, MappedEntitySet<EnchantmentType> exclusiveSet, StaticComponentMap effects)
-
-
Method Details
-
copy
- Specified by:
copyin interfaceCopyableEntity<EnchantmentType>
-
getDescription
public net.kyori.adventure.text.Component getDescription()- Specified by:
getDescriptionin interfaceEnchantmentType
-
getDefinition
- Specified by:
getDefinitionin interfaceEnchantmentType
-
getExclusiveSet
- Specified by:
getExclusiveSetin interfaceEnchantmentType
-
getEffects
- Specified by:
getEffectsin interfaceEnchantmentType
-
deepEquals
- Specified by:
deepEqualsin interfaceDeepComparableEntity
-
deepHashCode
public int deepHashCode()- Specified by:
deepHashCodein interfaceDeepComparableEntity
-
toString
- Overrides:
toStringin classAbstractMappedEntity
-