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/EquipmentTableintermediary net/minecraft/class_9652official buwnamed lootTableintermediary comp_2621official cnamed slotDropChancesintermediary comp_2622official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EquipmentTable> private final RegistryKey<LootTable> The field for thelootTablerecord component.static final com.mojang.serialization.Codec<Map<EquipmentSlot, Float>> private final Map<EquipmentSlot, Float> The field for theslotDropChancesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEquipmentTable(RegistryKey<LootTable> lootTable, float slotDropChances) EquipmentTable(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 booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelootTablerecord component.Returns the value of theslotDropChancesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
lootTable
The field for thelootTablerecord component. -
slotDropChances
The field for theslotDropChancesrecord 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_CODECLnet/minecraft/entity/EquipmentTable;SLOT_DROP_CHANCES_CODEC:Lcom/mojang/serialization/Codec;intermediary field_51374Lnet/minecraft/class_9652;field_51374:Lcom/mojang/serialization/Codec;official aLbuw;a:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/EquipmentTable;CODEC:Lcom/mojang/serialization/Codec;intermediary field_51375Lnet/minecraft/class_9652;field_51375:Lcom/mojang/serialization/Codec;official bLbuw;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
EquipmentTable
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/EquipmentTable;<init>(Lnet/minecraft/registry/RegistryKey;F)Vintermediary <init>Lnet/minecraft/class_9652;<init>(Lnet/minecraft/class_5321;F)Vofficial <init>Lbuw;<init>(Laku;F)V
-
EquipmentTable
-
-
Method Details
-
createSlotDropChances
- Mappings:
Namespace Name Mixin selector named createSlotDropChancesLnet/minecraft/entity/EquipmentTable;createSlotDropChances(F)Ljava/util/Map;intermediary method_59658Lnet/minecraft/class_9652;method_59658(F)Ljava/util/Map;official aLbuw;a(F)Ljava/util/Map;
-
createSlotDropChances
private static Map<EquipmentSlot,Float> createSlotDropChances(List<EquipmentSlot> slots, float dropChance) - Mappings:
Namespace Name Mixin selector named createSlotDropChancesLnet/minecraft/entity/EquipmentTable;createSlotDropChances(Ljava/util/List;F)Ljava/util/Map;intermediary method_59661Lnet/minecraft/class_9652;method_59661(Ljava/util/List;F)Ljava/util/Map;official aLbuw;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 thelootTablerecord component.- Returns:
- the value of the
lootTablerecord component
-
slotDropChances
Returns the value of theslotDropChancesrecord component.- Returns:
- the value of the
slotDropChancesrecord component
-