Record Class EquipmentDropChances

java.lang.Object
java.lang.Record
net.minecraft.entity.EquipmentDropChances
Record Components:
byEquipment -

public record EquipmentDropChances(Map<EquipmentSlot,Float> byEquipment) extends Record
Mappings:
Namespace Name
named net/minecraft/entity/EquipmentDropChances
intermediary net/minecraft/class_10582
official bzk
named byEquipment
intermediary comp_3477
official f
  • Field Details

    • byEquipment

      private final Map<EquipmentSlot,Float> byEquipment
      The field for the byEquipment record component.
    • DEFAULT_CHANCE

      public static final float DEFAULT_CHANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_CHANCE Lnet/minecraft/entity/EquipmentDropChances;DEFAULT_CHANCE:F
      intermediary field_55655 Lnet/minecraft/class_10582;field_55655:F
      official a Lbzk;a:F
    • UNHARMED_DROP_THRESHOLD

      public static final float UNHARMED_DROP_THRESHOLD
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named UNHARMED_DROP_THRESHOLD Lnet/minecraft/entity/EquipmentDropChances;UNHARMED_DROP_THRESHOLD:F
      intermediary field_55656 Lnet/minecraft/class_10582;field_55656:F
      official b Lbzk;b:F
    • GUARANTEED_DROP_CHANCE

      public static final int GUARANTEED_DROP_CHANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named GUARANTEED_DROP_CHANCE Lnet/minecraft/entity/EquipmentDropChances;GUARANTEED_DROP_CHANCE:I
      intermediary field_55657 Lnet/minecraft/class_10582;field_55657:I
      official c Lbzk;c:I
    • DEFAULT

      public static final EquipmentDropChances DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/entity/EquipmentDropChances;DEFAULT:Lnet/minecraft/entity/EquipmentDropChances;
      intermediary field_55658 Lnet/minecraft/class_10582;field_55658:Lnet/minecraft/class_10582;
      official d Lbzk;d:Lbzk;
    • CODEC

      public static final com.mojang.serialization.Codec<EquipmentDropChances> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/EquipmentDropChances;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_55659 Lnet/minecraft/class_10582;field_55659:Lcom/mojang/serialization/Codec;
      official e Lbzk;e:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • getWithoutDefaultChances

      private static Map<EquipmentSlot,Float> getWithoutDefaultChances(Map<EquipmentSlot,Float> byEquipment)
      Mappings:
      Namespace Name Mixin selector
      named getWithoutDefaultChances Lnet/minecraft/entity/EquipmentDropChances;getWithoutDefaultChances(Ljava/util/Map;)Ljava/util/Map;
      intermediary method_66238 Lnet/minecraft/class_10582;method_66238(Ljava/util/Map;)Ljava/util/Map;
      official a Lbzk;a(Ljava/util/Map;)Ljava/util/Map;
    • getWithDefaultChances

      private static Map<EquipmentSlot,Float> getWithDefaultChances(Map<EquipmentSlot,Float> byEquipment)
      Mappings:
      Namespace Name Mixin selector
      named getWithDefaultChances Lnet/minecraft/entity/EquipmentDropChances;getWithDefaultChances(Ljava/util/Map;)Ljava/util/Map;
      intermediary method_66241 Lnet/minecraft/class_10582;method_66241(Ljava/util/Map;)Ljava/util/Map;
      official b Lbzk;b(Ljava/util/Map;)Ljava/util/Map;
    • withGuaranteed

      public EquipmentDropChances withGuaranteed(EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      named withGuaranteed Lnet/minecraft/entity/EquipmentDropChances;withGuaranteed(Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/entity/EquipmentDropChances;
      intermediary method_66234 Lnet/minecraft/class_10582;method_66234(Lnet/minecraft/class_1304;)Lnet/minecraft/class_10582;
      official a Lbzk;a(Lbzw;)Lbzk;
    • withChance

      public EquipmentDropChances withChance(EquipmentSlot slot, float chance)
      Mappings:
      Namespace Name Mixin selector
      named withChance Lnet/minecraft/entity/EquipmentDropChances;withChance(Lnet/minecraft/entity/EquipmentSlot;F)Lnet/minecraft/entity/EquipmentDropChances;
      intermediary method_66235 Lnet/minecraft/class_10582;method_66235(Lnet/minecraft/class_1304;F)Lnet/minecraft/class_10582;
      official a Lbzk;a(Lbzw;F)Lbzk;
    • get

      public float get(EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/entity/EquipmentDropChances;get(Lnet/minecraft/entity/EquipmentSlot;)F
      intermediary method_66240 Lnet/minecraft/class_10582;method_66240(Lnet/minecraft/class_1304;)F
      official b Lbzk;b(Lbzw;)F
    • dropsExactly

      public boolean dropsExactly(EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      named dropsExactly Lnet/minecraft/entity/EquipmentDropChances;dropsExactly(Lnet/minecraft/entity/EquipmentSlot;)Z
      intermediary method_66242 Lnet/minecraft/class_10582;method_66242(Lnet/minecraft/class_1304;)Z
      official c Lbzk;c(Lbzw;)Z
    • 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. 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.
    • byEquipment

      public Map<EquipmentSlot,Float> byEquipment()
      Returns the value of the byEquipment record component.
      Returns:
      the value of the byEquipment record component