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/EquipmentDropChancesintermediary net/minecraft/class_10582official bwgnamed byEquipmentintermediary comp_3477official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<EquipmentSlot, Float> The field for thebyEquipmentrecord component.static final com.mojang.serialization.Codec<EquipmentDropChances> static final EquipmentDropChancesstatic final floatstatic final intstatic final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebyEquipmentrecord component.booleandropsUnharmed(EquipmentSlot slot) final booleanIndicates whether some other object is "equal to" this one.private static Map<EquipmentSlot, Float> fillDefaultChances(Map<EquipmentSlot, Float> byEquipment) floatget(EquipmentSlot slot) final inthashCode()Returns a hash code value for this object.private static Map<EquipmentSlot, Float> removeDefaultChances(Map<EquipmentSlot, Float> byEquipment) setChance(EquipmentSlot slot, float chance) setGuaranteed(EquipmentSlot slot) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
byEquipment
The field for thebyEquipmentrecord component. -
DEFAULT_CHANCE
public static final float DEFAULT_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_CHANCELnet/minecraft/entity/EquipmentDropChances;DEFAULT_CHANCE:Fintermediary field_55655Lnet/minecraft/class_10582;field_55655:Fofficial aLbwg;a:F
-
UNHARMED_DROP_THRESHOLD
public static final float UNHARMED_DROP_THRESHOLD- See Also:
- Mappings:
Namespace Name Mixin selector named UNHARMED_DROP_THRESHOLDLnet/minecraft/entity/EquipmentDropChances;UNHARMED_DROP_THRESHOLD:Fintermediary field_55656Lnet/minecraft/class_10582;field_55656:Fofficial bLbwg;b:F
-
GUARANTEED_DROP_CHANCE
public static final int GUARANTEED_DROP_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector named GUARANTEED_DROP_CHANCELnet/minecraft/entity/EquipmentDropChances;GUARANTEED_DROP_CHANCE:Iintermediary field_55657Lnet/minecraft/class_10582;field_55657:Iofficial cLbwg;c:I
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/entity/EquipmentDropChances;DEFAULT:Lnet/minecraft/entity/EquipmentDropChances;intermediary field_55658Lnet/minecraft/class_10582;field_55658:Lnet/minecraft/class_10582;official dLbwg;d:Lbwg;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/EquipmentDropChances;CODEC:Lcom/mojang/serialization/Codec;intermediary field_55659Lnet/minecraft/class_10582;field_55659:Lcom/mojang/serialization/Codec;official eLbwg;e:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
EquipmentDropChances
-
-
Method Details
-
removeDefaultChances
- Mappings:
Namespace Name Mixin selector named removeDefaultChancesLnet/minecraft/entity/EquipmentDropChances;removeDefaultChances(Ljava/util/Map;)Ljava/util/Map;intermediary method_66238Lnet/minecraft/class_10582;method_66238(Ljava/util/Map;)Ljava/util/Map;official aLbwg;a(Ljava/util/Map;)Ljava/util/Map;
-
fillDefaultChances
- Mappings:
Namespace Name Mixin selector named fillDefaultChancesLnet/minecraft/entity/EquipmentDropChances;fillDefaultChances(Ljava/util/Map;)Ljava/util/Map;intermediary method_66241Lnet/minecraft/class_10582;method_66241(Ljava/util/Map;)Ljava/util/Map;official bLbwg;b(Ljava/util/Map;)Ljava/util/Map;
-
setGuaranteed
- Mappings:
Namespace Name Mixin selector named setGuaranteedLnet/minecraft/entity/EquipmentDropChances;setGuaranteed(Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/entity/EquipmentDropChances;intermediary method_66234Lnet/minecraft/class_10582;method_66234(Lnet/minecraft/class_1304;)Lnet/minecraft/class_10582;official aLbwg;a(Lbws;)Lbwg;
-
setChance
- Mappings:
Namespace Name Mixin selector named setChanceLnet/minecraft/entity/EquipmentDropChances;setChance(Lnet/minecraft/entity/EquipmentSlot;F)Lnet/minecraft/entity/EquipmentDropChances;intermediary method_66235Lnet/minecraft/class_10582;method_66235(Lnet/minecraft/class_1304;F)Lnet/minecraft/class_10582;official aLbwg;a(Lbws;F)Lbwg;
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/entity/EquipmentDropChances;get(Lnet/minecraft/entity/EquipmentSlot;)Fintermediary method_66240Lnet/minecraft/class_10582;method_66240(Lnet/minecraft/class_1304;)Fofficial bLbwg;b(Lbws;)F
-
dropsUnharmed
- Mappings:
Namespace Name Mixin selector named dropsUnharmedLnet/minecraft/entity/EquipmentDropChances;dropsUnharmed(Lnet/minecraft/entity/EquipmentSlot;)Zintermediary method_66242Lnet/minecraft/class_10582;method_66242(Lnet/minecraft/class_1304;)Zofficial cLbwg;c(Lbws;)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 thebyEquipmentrecord component.- Returns:
- the value of the
byEquipmentrecord component
-