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 bxcnamed 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.booleandropsExactly(EquipmentSlot slot) final booleanIndicates whether some other object is "equal to" this one.floatget(EquipmentSlot slot) private static Map<EquipmentSlot, Float> getWithDefaultChances(Map<EquipmentSlot, Float> byEquipment) private static Map<EquipmentSlot, Float> getWithoutDefaultChances(Map<EquipmentSlot, Float> byEquipment) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.withChance(EquipmentSlot slot, float chance) withGuaranteed(EquipmentSlot slot)
-
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 aLbxc;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 bLbxc;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 cLbxc;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 dLbxc;d:Lbxc;
-
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 eLbxc;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 getWithoutDefaultChancesLnet/minecraft/entity/EquipmentDropChances;getWithoutDefaultChances(Ljava/util/Map;)Ljava/util/Map;intermediary method_66238Lnet/minecraft/class_10582;method_66238(Ljava/util/Map;)Ljava/util/Map;official aLbxc;a(Ljava/util/Map;)Ljava/util/Map;
-
getWithDefaultChances
- Mappings:
Namespace Name Mixin selector named getWithDefaultChancesLnet/minecraft/entity/EquipmentDropChances;getWithDefaultChances(Ljava/util/Map;)Ljava/util/Map;intermediary method_66241Lnet/minecraft/class_10582;method_66241(Ljava/util/Map;)Ljava/util/Map;official bLbxc;b(Ljava/util/Map;)Ljava/util/Map;
-
withGuaranteed
- Mappings:
Namespace Name Mixin selector named withGuaranteedLnet/minecraft/entity/EquipmentDropChances;withGuaranteed(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 aLbxc;a(Lbxo;)Lbxc;
-
withChance
- Mappings:
Namespace Name Mixin selector named withChanceLnet/minecraft/entity/EquipmentDropChances;withChance(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 aLbxc;a(Lbxo;F)Lbxc;
-
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 bLbxc;b(Lbxo;)F
-
dropsExactly
- Mappings:
Namespace Name Mixin selector named dropsExactlyLnet/minecraft/entity/EquipmentDropChances;dropsExactly(Lnet/minecraft/entity/EquipmentSlot;)Zintermediary method_66242Lnet/minecraft/class_10582;method_66242(Lnet/minecraft/class_1304;)Zofficial cLbxc;c(Lbxo;)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
-