Package net.minecraft.entity
Record Class EquipmentTable
java.lang.Object
java.lang.Record
net.minecraft.entity.EquipmentTable
- Record Components:
lootTable
-slotDropChances
-
public record EquipmentTable(RegistryKey<LootTable> lootTable, Map<EquipmentSlot,Float> slotDropChances)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/EquipmentTable
intermediary net/minecraft/class_9652
official btf
named lootTable
intermediary comp_2621
official c
named slotDropChances
intermediary comp_2622
official d
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EquipmentTable> private final RegistryKey
<LootTable> The field for thelootTable
record component.static final com.mojang.serialization.Codec
<Map<EquipmentSlot, Float>> private final Map
<EquipmentSlot, Float> The field for theslotDropChances
record component. -
Constructor Summary
ConstructorDescriptionEquipmentTable
(RegistryKey<LootTable> registryKey, Map<EquipmentSlot, Float> map) -
Method Summary
Modifier and TypeMethodDescriptionprivate static Map
<EquipmentSlot, Float> createSlotDropChances
(float dropChance) private static Map
<EquipmentSlot, Float> createSlotDropChances
(List<EquipmentSlot> slots, float dropChance) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelootTable
record component.Returns the value of theslotDropChances
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
lootTable
The field for thelootTable
record component. -
slotDropChances
The field for theslotDropChances
record component. -
SLOT_DROP_CHANCES_CODEC
public static final com.mojang.serialization.Codec<Map<EquipmentSlot,Float>> SLOT_DROP_CHANCES_CODEC- Mappings:
Namespace Name Mixin selector named SLOT_DROP_CHANCES_CODEC
Lnet/minecraft/entity/EquipmentTable;SLOT_DROP_CHANCES_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_51374
Lnet/minecraft/class_9652;field_51374:Lcom/mojang/serialization/Codec;
official a
Lbtf;a:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/entity/EquipmentTable;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_51375
Lnet/minecraft/class_9652;field_51375:Lcom/mojang/serialization/Codec;
official b
Lbtf;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
EquipmentTable
-
-
Method Details
-
createSlotDropChances
- Mappings:
Namespace Name Mixin selector named createSlotDropChances
Lnet/minecraft/entity/EquipmentTable;createSlotDropChances(F)Ljava/util/Map;
intermediary method_59658
Lnet/minecraft/class_9652;method_59658(F)Ljava/util/Map;
official a
Lbtf;a(F)Ljava/util/Map;
-
createSlotDropChances
private static Map<EquipmentSlot,Float> createSlotDropChances(List<EquipmentSlot> slots, float dropChance) - Mappings:
Namespace Name Mixin selector named createSlotDropChances
Lnet/minecraft/entity/EquipmentTable;createSlotDropChances(Ljava/util/List;F)Ljava/util/Map;
intermediary method_59661
Lnet/minecraft/class_9652;method_59661(Ljava/util/List;F)Ljava/util/Map;
official a
Lbtf;a(Ljava/util/List;F)Ljava/util/Map;
-
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)
. -
lootTable
Returns the value of thelootTable
record component.- Returns:
- the value of the
lootTable
record component
-
slotDropChances
Returns the value of theslotDropChances
record component.- Returns:
- the value of the
slotDropChances
record component
-