Class EnchantmentDefinition
java.lang.Object
com.github.retrooper.packetevents.protocol.item.enchantment.EnchantmentDefinition
-
Constructor Summary
ConstructorDescriptionEnchantmentDefinition
(MappedEntitySet<ItemType> supportedItems, Optional<MappedEntitySet<ItemType>> primaryItems, int weight, int maxLevel, EnchantmentCost minCost, EnchantmentCost maxCost, int anvilCost, List<ItemAttributeModifiers.EquipmentSlotGroup> slots) -
Method Summary
Modifier and TypeMethodDescriptionstatic EnchantmentDefinition
decode
(NBT nbt, ClientVersion version) static NBT
encode
(EnchantmentDefinition definition, ClientVersion version) boolean
int
int
getSlots()
int
int
hashCode()
toString()
-
Constructor Details
-
EnchantmentDefinition
public EnchantmentDefinition(MappedEntitySet<ItemType> supportedItems, Optional<MappedEntitySet<ItemType>> primaryItems, int weight, int maxLevel, EnchantmentCost minCost, EnchantmentCost maxCost, int anvilCost, List<ItemAttributeModifiers.EquipmentSlotGroup> slots)
-
-
Method Details
-
decode
-
encode
-
getSupportedItems
-
getPrimaryItems
-
getWeight
public int getWeight() -
getMaxLevel
public int getMaxLevel() -
getMinCost
-
getMaxCost
-
getAnvilCost
public int getAnvilCost() -
getSlots
-
equals
-
hashCode
public int hashCode() -
toString
-