Package net.minecraft.entity
Record Class EquipmentDropChances
java.lang.Object
java.lang.Record
net.minecraft.entity.EquipmentDropChances
- Record Components:
byEquipment
-
- Mappings:
Namespace Name named net/minecraft/entity/EquipmentDropChances
intermediary net/minecraft/class_10582
official bzk
named byEquipment
intermediary comp_3477
official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<EquipmentSlot, Float> The field for thebyEquipment
record component.static final com.mojang.serialization.Codec
<EquipmentDropChances> static final EquipmentDropChances
static final float
static final int
static final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebyEquipment
record component.boolean
dropsExactly
(EquipmentSlot slot) final boolean
Indicates whether some other object is "equal to" this one.float
get
(EquipmentSlot slot) private static Map
<EquipmentSlot, Float> getWithDefaultChances
(Map<EquipmentSlot, Float> byEquipment) private static Map
<EquipmentSlot, Float> getWithoutDefaultChances
(Map<EquipmentSlot, Float> byEquipment) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.withChance
(EquipmentSlot slot, float chance) withGuaranteed
(EquipmentSlot slot)
-
Field Details
-
byEquipment
The field for thebyEquipment
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
- 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
- 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
-
EquipmentDropChances
-
-
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
- 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
- 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
- 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
- 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
- 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
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
byEquipment
Returns the value of thebyEquipment
record component.- Returns:
- the value of the
byEquipment
record component
-