Record Class Enchantment

java.lang.Object
java.lang.Record
net.minecraft.enchantment.Enchantment
Record Components:
description -
properties -
exclusiveSet -
effects -

public record Enchantment(Text description, Enchantment.Properties properties, RegistryEntryList<Enchantment> exclusiveSet, ComponentMap effects) extends Record
Mappings:
Namespace Name
named net/minecraft/enchantment/Enchantment
intermediary net/minecraft/class_1887
official czj
named description
intermediary comp_2686
official c
named properties
intermediary comp_2687
official d
named exclusiveSet
intermediary comp_2688
official e
named effects
intermediary comp_2689
official f
  • Field Details

    • description

      private final Text description
      The field for the description record component.
    • properties

      private final Enchantment.Properties properties
      The field for the properties record component.
    • exclusiveSet

      private final RegistryEntryList<Enchantment> exclusiveSet
      The field for the exclusiveSet record component.
    • effects

      private final ComponentMap effects
      The field for the effects record component.
    • field_51643

      public static final com.mojang.serialization.Codec<Enchantment> field_51643
      Mappings:
      Namespace Name Mixin selector
      named field_51643 Lnet/minecraft/enchantment/Enchantment;field_51643:Lcom/mojang/serialization/Codec;
      intermediary field_51643 Lnet/minecraft/class_1887;field_51643:Lcom/mojang/serialization/Codec;
      official a Lczj;a:Lcom/mojang/serialization/Codec;
    • field_51644

      public static final com.mojang.serialization.Codec<RegistryEntry<Enchantment>> field_51644
      Mappings:
      Namespace Name Mixin selector
      named field_51644 Lnet/minecraft/enchantment/Enchantment;field_51644:Lcom/mojang/serialization/Codec;
      intermediary field_51644 Lnet/minecraft/class_1887;field_51644:Lcom/mojang/serialization/Codec;
      official b Lczj;b:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • constantCost

      public static Enchantment.Cost constantCost(int base)
      Mappings:
      Namespace Name Mixin selector
      named constantCost Lnet/minecraft/enchantment/Enchantment;constantCost(I)Lnet/minecraft/enchantment/Enchantment$Cost;
      intermediary method_58440 Lnet/minecraft/class_1887;method_58440(I)Lnet/minecraft/class_1887$class_9426;
      official a Lczj;a(I)Lczj$b;
    • leveledCost

      public static Enchantment.Cost leveledCost(int base, int perLevel)
      Mappings:
      Namespace Name Mixin selector
      named leveledCost Lnet/minecraft/enchantment/Enchantment;leveledCost(II)Lnet/minecraft/enchantment/Enchantment$Cost;
      intermediary method_58441 Lnet/minecraft/class_1887;method_58441(II)Lnet/minecraft/class_1887$class_9426;
      official a Lczj;a(II)Lczj$b;
    • properties

      public static Enchantment.Properties properties(RegistryEntryList<Item> registryEntryList, RegistryEntryList<Item> registryEntryList2, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] attributeModifierSlot)
      Mappings:
      Namespace Name Mixin selector
      named properties Lnet/minecraft/enchantment/Enchantment;properties(Lnet/minecraft/registry/entry/RegistryEntryList;Lnet/minecraft/registry/entry/RegistryEntryList;IILnet/minecraft/enchantment/Enchantment$Cost;Lnet/minecraft/enchantment/Enchantment$Cost;I[Lnet/minecraft/component/type/AttributeModifierSlot;)Lnet/minecraft/enchantment/Enchantment$Properties;
      intermediary method_58443 Lnet/minecraft/class_1887;method_58443(Lnet/minecraft/class_6885;Lnet/minecraft/class_6885;IILnet/minecraft/class_1887$class_9426;Lnet/minecraft/class_1887$class_9426;I[Lnet/minecraft/class_9274;)Lnet/minecraft/class_1887$class_9427;
      official a Lczj;a(Ljn;Ljn;IILczj$b;Lczj$b;I[Lbsl;)Lczj$c;
    • properties

      public static Enchantment.Properties properties(RegistryEntryList<Item> registryEntryList, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] attributeModifierSlot)
      Mappings:
      Namespace Name Mixin selector
      named properties Lnet/minecraft/enchantment/Enchantment;properties(Lnet/minecraft/registry/entry/RegistryEntryList;IILnet/minecraft/enchantment/Enchantment$Cost;Lnet/minecraft/enchantment/Enchantment$Cost;I[Lnet/minecraft/component/type/AttributeModifierSlot;)Lnet/minecraft/enchantment/Enchantment$Properties;
      intermediary method_58442 Lnet/minecraft/class_1887;method_58442(Lnet/minecraft/class_6885;IILnet/minecraft/class_1887$class_9426;Lnet/minecraft/class_1887$class_9426;I[Lnet/minecraft/class_9274;)Lnet/minecraft/class_1887$class_9427;
      official a Lczj;a(Ljn;IILczj$b;Lczj$b;I[Lbsl;)Lczj$c;
    • getEquipment

      public Map<EquipmentSlot,ItemStack> getEquipment(LivingEntity livingEntity)
      Mappings:
      Namespace Name Mixin selector
      named getEquipment Lnet/minecraft/enchantment/Enchantment;getEquipment(Lnet/minecraft/entity/LivingEntity;)Ljava/util/Map;
      intermediary method_8185 Lnet/minecraft/class_1887;method_8185(Lnet/minecraft/class_1309;)Ljava/util/Map;
      official a Lczj;a(Lbsy;)Ljava/util/Map;
    • getApplicableItems

      public RegistryEntryList<Item> getApplicableItems()
      Mappings:
      Namespace Name Mixin selector
      named getApplicableItems Lnet/minecraft/enchantment/Enchantment;getApplicableItems()Lnet/minecraft/registry/entry/RegistryEntryList;
      intermediary method_56109 Lnet/minecraft/class_1887;method_56109()Lnet/minecraft/class_6885;
      official a Lczj;a()Ljn;
    • method_60026

      public boolean method_60026(EquipmentSlot equipmentSlot)
      Mappings:
      Namespace Name Mixin selector
      named method_60026 Lnet/minecraft/enchantment/Enchantment;method_60026(Lnet/minecraft/entity/EquipmentSlot;)Z
      intermediary method_60026 Lnet/minecraft/class_1887;method_60026(Lnet/minecraft/class_1304;)Z
      official a Lczj;a(Lbsk;)Z
    • isPrimaryItem

      public boolean isPrimaryItem(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named isPrimaryItem Lnet/minecraft/enchantment/Enchantment;isPrimaryItem(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_58444 Lnet/minecraft/class_1887;method_58444(Lnet/minecraft/class_1799;)Z
      official a Lczj;a(Lcua;)Z
    • method_60046

      public boolean method_60046(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      named method_60046 Lnet/minecraft/enchantment/Enchantment;method_60046(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_60046 Lnet/minecraft/class_1887;method_60046(Lnet/minecraft/class_1799;)Z
      official b Lczj;b(Lcua;)Z
    • getWeight

      public int getWeight()
      Mappings:
      Namespace Name Mixin selector
      named getWeight Lnet/minecraft/enchantment/Enchantment;getWeight()I
      intermediary method_58445 Lnet/minecraft/class_1887;method_58445()I
      official b Lczj;b()I
    • getAnvilCost

      public int getAnvilCost()
      Mappings:
      Namespace Name Mixin selector
      named getAnvilCost Lnet/minecraft/enchantment/Enchantment;getAnvilCost()I
      intermediary method_58446 Lnet/minecraft/class_1887;method_58446()I
      official c Lczj;c()I
    • getMinLevel

      public int getMinLevel()
      Mappings:
      Namespace Name Mixin selector
      named getMinLevel Lnet/minecraft/enchantment/Enchantment;getMinLevel()I
      intermediary method_8187 Lnet/minecraft/class_1887;method_8187()I
      official d Lczj;d()I
    • getMaxLevel

      public int getMaxLevel()
      Mappings:
      Namespace Name Mixin selector
      named getMaxLevel Lnet/minecraft/enchantment/Enchantment;getMaxLevel()I
      intermediary method_8183 Lnet/minecraft/class_1887;method_8183()I
      official e Lczj;e()I
    • getMinPower

      public int getMinPower(int level)
      Mappings:
      Namespace Name Mixin selector
      named getMinPower Lnet/minecraft/enchantment/Enchantment;getMinPower(I)I
      intermediary method_8182 Lnet/minecraft/class_1887;method_8182(I)I
      official b Lczj;b(I)I
    • getMaxPower

      public int getMaxPower(int level)
      Mappings:
      Namespace Name Mixin selector
      named getMaxPower Lnet/minecraft/enchantment/Enchantment;getMaxPower(I)I
      intermediary method_20742 Lnet/minecraft/class_1887;method_20742(I)I
      official c Lczj;c(I)I
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • method_60033

      public static boolean method_60033(RegistryEntry<Enchantment> registryEntry, RegistryEntry<Enchantment> registryEntry2)
      Mappings:
      Namespace Name Mixin selector
      named method_60033 Lnet/minecraft/enchantment/Enchantment;method_60033(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/registry/entry/RegistryEntry;)Z
      intermediary method_60033 Lnet/minecraft/class_1887;method_60033(Lnet/minecraft/class_6880;Lnet/minecraft/class_6880;)Z
      official a Lczj;a(Ljj;Ljj;)Z
    • getName

      public static Text getName(RegistryEntry<Enchantment> registryEntry, int level)
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/enchantment/Enchantment;getName(Lnet/minecraft/registry/entry/RegistryEntry;I)Lnet/minecraft/text/Text;
      intermediary method_8179 Lnet/minecraft/class_1887;method_8179(Lnet/minecraft/class_6880;I)Lnet/minecraft/class_2561;
      official a Lczj;a(Ljj;I)Lwu;
    • isAcceptableItem

      public boolean isAcceptableItem(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      named isAcceptableItem Lnet/minecraft/enchantment/Enchantment;isAcceptableItem(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_8192 Lnet/minecraft/class_1887;method_8192(Lnet/minecraft/class_1799;)Z
      official c Lczj;c(Lcua;)Z
    • method_60034

      public <T> List<T> method_60034(DataComponentType<List<T>> dataComponentType)
      Mappings:
      Namespace Name Mixin selector
      named method_60034 Lnet/minecraft/enchantment/Enchantment;method_60034(Lnet/minecraft/component/DataComponentType;)Ljava/util/List;
      intermediary method_60034 Lnet/minecraft/class_1887;method_60034(Lnet/minecraft/class_9331;)Ljava/util/List;
      official a Lczj;a(Lkm;)Ljava/util/List;
    • method_60014

      public boolean method_60014(ServerWorld serverWorld, int int2, Entity entity, DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      named method_60014 Lnet/minecraft/enchantment/Enchantment;method_60014(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)Z
      intermediary method_60014 Lnet/minecraft/class_1887;method_60014(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Lnet/minecraft/class_1282;)Z
      official a Lczj;a(Laqk;ILbsd;Lbqw;)Z
    • method_60018

      public void method_60018(ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, DamageSource damageSource, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60018 Lnet/minecraft/enchantment/Enchantment;method_60018(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60018 Lnet/minecraft/class_1887;method_60018(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official a Lczj;a(Laqk;ILcua;Lbsd;Lbqw;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60020

      public void method_60020(ServerWorld serverWorld, int int2, ItemStack itemStack, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60020 Lnet/minecraft/enchantment/Enchantment;method_60020(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60020 Lnet/minecraft/class_1887;method_60020(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official a Lczj;a(Laqk;ILcua;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60043

      public void method_60043(ServerWorld serverWorld, int int2, ItemStack itemStack, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60043 Lnet/minecraft/enchantment/Enchantment;method_60043(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60043 Lnet/minecraft/class_1887;method_60043(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official b Lczj;b(Laqk;ILcua;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60050

      public void method_60050(ServerWorld serverWorld, int int2, ItemStack itemStack, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60050 Lnet/minecraft/enchantment/Enchantment;method_60050(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60050 Lnet/minecraft/class_1887;method_60050(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official c Lczj;c(Laqk;ILcua;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60053

      public void method_60053(ServerWorld serverWorld, int int2, ItemStack itemStack, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60053 Lnet/minecraft/enchantment/Enchantment;method_60053(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60053 Lnet/minecraft/class_1887;method_60053(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official d Lczj;d(Laqk;ILcua;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60019

      public void method_60019(ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60019 Lnet/minecraft/enchantment/Enchantment;method_60019(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60019 Lnet/minecraft/class_1887;method_60019(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official a Lczj;a(Laqk;ILcua;Lbsd;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60056

      public void method_60056(ServerWorld serverWorld, int int2, ItemStack itemStack, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60056 Lnet/minecraft/enchantment/Enchantment;method_60056(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60056 Lnet/minecraft/class_1887;method_60056(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official e Lczj;e(Laqk;ILcua;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60042

      public void method_60042(ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60042 Lnet/minecraft/enchantment/Enchantment;method_60042(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60042 Lnet/minecraft/class_1887;method_60042(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official b Lczj;b(Laqk;ILcua;Lbsd;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60049

      public void method_60049(ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60049 Lnet/minecraft/enchantment/Enchantment;method_60049(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60049 Lnet/minecraft/class_1887;method_60049(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official c Lczj;c(Laqk;ILcua;Lbsd;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60052

      public void method_60052(ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60052 Lnet/minecraft/enchantment/Enchantment;method_60052(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60052 Lnet/minecraft/class_1887;method_60052(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official d Lczj;d(Laqk;ILcua;Lbsd;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60055

      public void method_60055(ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60055 Lnet/minecraft/enchantment/Enchantment;method_60055(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60055 Lnet/minecraft/class_1887;method_60055(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official e Lczj;e(Laqk;ILcua;Lbsd;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60041

      public void method_60041(ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, DamageSource damageSource, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60041 Lnet/minecraft/enchantment/Enchantment;method_60041(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60041 Lnet/minecraft/class_1887;method_60041(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official b Lczj;b(Laqk;ILcua;Lbsd;Lbqw;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60048

      public void method_60048(ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, DamageSource damageSource, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60048 Lnet/minecraft/enchantment/Enchantment;method_60048(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60048 Lnet/minecraft/class_1887;method_60048(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official c Lczj;c(Laqk;ILcua;Lbsd;Lbqw;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60051

      public void method_60051(ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, DamageSource damageSource, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60051 Lnet/minecraft/enchantment/Enchantment;method_60051(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60051 Lnet/minecraft/class_1887;method_60051(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official d Lczj;d(Laqk;ILcua;Lbsd;Lbqw;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60054

      public void method_60054(ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, DamageSource damageSource, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60054 Lnet/minecraft/enchantment/Enchantment;method_60054(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60054 Lnet/minecraft/class_1887;method_60054(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official e Lczj;e(Laqk;ILcua;Lbsd;Lbqw;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60031

      public static void method_60031(class_9710<class_9721> class_9710, ServerWorld serverWorld, int int2, class_9699 class_9699, Entity entity, DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      named method_60031 Lnet/minecraft/enchantment/Enchantment;method_60031(Lnet/minecraft/class_9710;Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/class_9699;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)V
      intermediary method_60031 Lnet/minecraft/class_1887;method_60031(Lnet/minecraft/class_9710;Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;)V
      official a Lczj;a(Lczr;Laqk;ILczi;Lbsd;Lbqw;)V
    • onTargetDamaged

      public void onTargetDamaged(ServerWorld serverWorld, int int2, class_9699 class_9699, class_9703 class_9703, Entity entity, DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      named onTargetDamaged Lnet/minecraft/enchantment/Enchantment;onTargetDamaged(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/class_9699;Lnet/minecraft/class_9703;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)V
      intermediary method_8189 Lnet/minecraft/class_1887;method_8189(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_9703;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;)V
      official a Lczj;a(Laqk;ILczi;Lczn;Lbsd;Lbqw;)V
    • method_60057

      public void method_60057(ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60057 Lnet/minecraft/enchantment/Enchantment;method_60057(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60057 Lnet/minecraft/class_1887;method_60057(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official f Lczj;f(Laqk;ILcua;Lbsd;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60059

      public void method_60059(ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60059 Lnet/minecraft/enchantment/Enchantment;method_60059(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60059 Lnet/minecraft/class_1887;method_60059(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official g Lczj;g(Laqk;ILcua;Lbsd;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60058

      public void method_60058(ServerWorld serverWorld, int int2, ItemStack itemStack, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60058 Lnet/minecraft/enchantment/Enchantment;method_60058(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60058 Lnet/minecraft/class_1887;method_60058(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official f Lczj;f(Laqk;ILcua;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60021

      public void method_60021(ServerWorld serverWorld, int int2, class_9699 class_9699, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named method_60021 Lnet/minecraft/enchantment/Enchantment;method_60021(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/class_9699;Lnet/minecraft/entity/Entity;)V
      intermediary method_60021 Lnet/minecraft/class_1887;method_60021(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;)V
      official a Lczj;a(Laqk;ILczi;Lbsd;)V
    • method_60044

      public void method_60044(ServerWorld serverWorld, int int2, class_9699 class_9699, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named method_60044 Lnet/minecraft/enchantment/Enchantment;method_60044(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/class_9699;Lnet/minecraft/entity/Entity;)V
      intermediary method_60044 Lnet/minecraft/class_1887;method_60044(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;)V
      official b Lczj;b(Laqk;ILczi;Lbsd;)V
    • method_60023

      public void method_60023(ServerWorld serverWorld, int int2, class_9699 class_9699, Entity entity, Vec3d vec3d)
      Mappings:
      Namespace Name Mixin selector
      named method_60023 Lnet/minecraft/enchantment/Enchantment;method_60023(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/class_9699;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_60023 Lnet/minecraft/class_1887;method_60023(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;)V
      official a Lczj;a(Laqk;ILczi;Lbsd;Levz;)V
    • method_60037

      private void method_60037(DataComponentType<List<class_9698<class_9723>>> dataComponentType, ServerWorld serverWorld, int int2, ItemStack itemStack, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60037 Lnet/minecraft/enchantment/Enchantment;method_60037(Lnet/minecraft/component/DataComponentType;Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60037 Lnet/minecraft/class_1887;method_60037(Lnet/minecraft/class_9331;Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official a Lczj;a(Lkm;Laqk;ILcua;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60036

      private void method_60036(DataComponentType<List<class_9698<class_9723>>> dataComponentType, ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60036 Lnet/minecraft/enchantment/Enchantment;method_60036(Lnet/minecraft/component/DataComponentType;Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60036 Lnet/minecraft/class_1887;method_60036(Lnet/minecraft/class_9331;Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official a Lczj;a(Lkm;Laqk;ILcua;Lbsd;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60035

      private void method_60035(DataComponentType<List<class_9698<class_9723>>> dataComponentType, ServerWorld serverWorld, int int2, ItemStack itemStack, Entity entity, DamageSource damageSource, MutableFloat mutableFloat)
      Mappings:
      Namespace Name Mixin selector
      named method_60035 Lnet/minecraft/enchantment/Enchantment;method_60035(Lnet/minecraft/component/DataComponentType;Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      intermediary method_60035 Lnet/minecraft/class_1887;method_60035(Lnet/minecraft/class_9331;Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
      official a Lczj;a(Lkm;Laqk;ILcua;Lbsd;Lbqw;Lorg/apache/commons/lang3/mutable/MutableFloat;)V
    • method_60040

      public static LootContext method_60040(ServerWorld serverWorld, int int2, Entity entity, DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      named method_60040 Lnet/minecraft/enchantment/Enchantment;method_60040(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/loot/context/LootContext;
      intermediary method_60040 Lnet/minecraft/class_1887;method_60040(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Lnet/minecraft/class_1282;)Lnet/minecraft/class_47;
      official b Lczj;b(Laqk;ILbsd;Lbqw;)Leqo;
    • method_60017

      private static LootContext method_60017(ServerWorld serverWorld, int int2, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      named method_60017 Lnet/minecraft/enchantment/Enchantment;method_60017(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/item/ItemStack;)Lnet/minecraft/loot/context/LootContext;
      intermediary method_60017 Lnet/minecraft/class_1887;method_60017(Lnet/minecraft/class_3218;ILnet/minecraft/class_1799;)Lnet/minecraft/class_47;
      official a Lczj;a(Laqk;ILcua;)Leqo;
    • method_60016

      private static LootContext method_60016(ServerWorld serverWorld, int int2, Entity entity, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      named method_60016 Lnet/minecraft/enchantment/Enchantment;method_60016(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/entity/Entity;Z)Lnet/minecraft/loot/context/LootContext;
      intermediary method_60016 Lnet/minecraft/class_1887;method_60016(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Z)Lnet/minecraft/class_47;
      official a Lczj;a(Laqk;ILbsd;Z)Leqo;
    • method_60015

      private static LootContext method_60015(ServerWorld serverWorld, int int2, Entity entity, Vec3d vec3d)
      Mappings:
      Namespace Name Mixin selector
      named method_60015 Lnet/minecraft/enchantment/Enchantment;method_60015(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/loot/context/LootContext;
      intermediary method_60015 Lnet/minecraft/class_1887;method_60015(Lnet/minecraft/class_3218;ILnet/minecraft/class_1297;Lnet/minecraft/class_243;)Lnet/minecraft/class_47;
      official a Lczj;a(Laqk;ILbsd;Levz;)Leqo;
    • method_60032

      private static <T> void method_60032(List<class_9698<T>> list, LootContext lootContext, Consumer<T> consumer)
      Mappings:
      Namespace Name Mixin selector
      named method_60032 Lnet/minecraft/enchantment/Enchantment;method_60032(Ljava/util/List;Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)V
      intermediary method_60032 Lnet/minecraft/class_1887;method_60032(Ljava/util/List;Lnet/minecraft/class_47;Ljava/util/function/Consumer;)V
      official a Lczj;a(Ljava/util/List;Leqo;Ljava/util/function/Consumer;)V
    • method_60025

      public void method_60025(ServerWorld serverWorld, int int2, class_9699 class_9699, LivingEntity livingEntity)
      Mappings:
      Namespace Name Mixin selector
      named method_60025 Lnet/minecraft/enchantment/Enchantment;method_60025(Lnet/minecraft/server/world/ServerWorld;ILnet/minecraft/class_9699;Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_60025 Lnet/minecraft/class_1887;method_60025(Lnet/minecraft/class_3218;ILnet/minecraft/class_9699;Lnet/minecraft/class_1309;)V
      official a Lczj;a(Laqk;ILczi;Lbsy;)V
    • method_60013

      public void method_60013(int int2, class_9699 class_9699, LivingEntity livingEntity)
      Mappings:
      Namespace Name Mixin selector
      named method_60013 Lnet/minecraft/enchantment/Enchantment;method_60013(ILnet/minecraft/class_9699;Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_60013 Lnet/minecraft/class_1887;method_60013(ILnet/minecraft/class_9699;Lnet/minecraft/class_1309;)V
      official a Lczj;a(ILczi;Lbsy;)V
    • method_60030

      public static Enchantment.class_9700 method_60030(Enchantment.Properties properties)
      Mappings:
      Namespace Name Mixin selector
      named method_60030 Lnet/minecraft/enchantment/Enchantment;method_60030(Lnet/minecraft/enchantment/Enchantment$Properties;)Lnet/minecraft/enchantment/Enchantment$class_9700;
      intermediary method_60030 Lnet/minecraft/class_1887;method_60030(Lnet/minecraft/class_1887$class_9427;)Lnet/minecraft/class_1887$class_9700;
      official a Lczj;a(Lczj$c;)Lczj$a;
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • description

      public Text description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • properties

      public Enchantment.Properties properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component
    • exclusiveSet

      public RegistryEntryList<Enchantment> exclusiveSet()
      Returns the value of the exclusiveSet record component.
      Returns:
      the value of the exclusiveSet record component
    • effects

      public ComponentMap effects()
      Returns the value of the effects record component.
      Returns:
      the value of the effects record component