Package net.minecraft

Record Class class_9744

java.lang.Object
java.lang.Record
net.minecraft.class_9744
Record Components:
enchantments -
minCost -
maxCostSpan -
All Implemented Interfaces:
class_9741

public record class_9744(RegistryEntryList<Enchantment> enchantments, int minCost, int maxCostSpan) extends Record implements class_9741
Mappings:
Namespace Name
named net/minecraft/class_9744
intermediary net/minecraft/class_9744
official dat
named enchantments
intermediary comp_2766
official c
named minCost
intermediary comp_2767
official d
named maxCostSpan
intermediary comp_2768
official e
  • Field Details

    • enchantments

      private final RegistryEntryList<Enchantment> enchantments
      The field for the enchantments record component.
    • minCost

      private final int minCost
      The field for the minCost record component.
    • maxCostSpan

      private final int maxCostSpan
      The field for the maxCostSpan record component.
    • field_51733

      public static final com.mojang.serialization.MapCodec<class_9744> field_51733
      Mappings:
      Namespace Name Mixin selector
      named field_51733 Lnet/minecraft/class_9744;field_51733:Lcom/mojang/serialization/MapCodec;
      intermediary field_51733 Lnet/minecraft/class_9744;field_51733:Lcom/mojang/serialization/MapCodec;
      official b Ldat;b:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • method_60266

      public void method_60266(ItemStack itemStack, ItemEnchantmentsComponent.Builder builder, Random random, World world, BlockPos blockPos)
      Specified by:
      method_60266 in interface class_9741
      Mappings:
      Namespace Name Mixin selector
      named method_60266 Lnet/minecraft/class_9741;method_60266(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_60266 Lnet/minecraft/class_9741;method_60266(Lnet/minecraft/class_1799;Lnet/minecraft/class_9304$class_9305;Lnet/minecraft/class_5819;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      official a Ldaq;a(Lcua;Lczp$a;Laym;Ldcd;Lja;)V
    • method_60265

      public com.mojang.serialization.MapCodec<class_9744> method_60265()
      Specified by:
      method_60265 in interface class_9741
      Mappings:
      Namespace Name Mixin selector
      named method_60265 Lnet/minecraft/class_9741;method_60265()Lcom/mojang/serialization/MapCodec;
      intermediary method_60265 Lnet/minecraft/class_9741;method_60265()Lcom/mojang/serialization/MapCodec;
      official a Ldaq;a()Lcom/mojang/serialization/MapCodec;
    • toString

      public final 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
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • enchantments

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

      public int minCost()
      Returns the value of the minCost record component.
      Returns:
      the value of the minCost record component
    • maxCostSpan

      public int maxCostSpan()
      Returns the value of the maxCostSpan record component.
      Returns:
      the value of the maxCostSpan record component