Record Class VanillaEquipmentLootTableGenerator
java.lang.Object
java.lang.Record
net.minecraft.data.server.loottable.vanilla.VanillaEquipmentLootTableGenerator
- Record Components:
registries
-
- All Implemented Interfaces:
LootTableGenerator
public record VanillaEquipmentLootTableGenerator(RegistryWrapper.WrapperLookup registries)
extends Record
implements LootTableGenerator
- Mappings:
Namespace Name named net/minecraft/data/server/loottable/vanilla/VanillaEquipmentLootTableGenerator
intermediary net/minecraft/class_9486
official nb
named registries
intermediary comp_2788
official a
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RegistryWrapper.WrapperLookup
The field for theregistries
record component. -
Constructor Summary
ConstructorDescriptionVanillaEquipmentLootTableGenerator
(RegistryWrapper.WrapperLookup wrapperLookup) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(BiConsumer<RegistryKey<LootTable>, LootTable.Builder> lootTableBiConsumer) static LootTable.Builder
createEquipmentTableBuilder
(Item helmet, Item chestplate, ArmorTrim trim, RegistryWrapper.Impl<Enchantment> enchantmentRegistryWrapper) 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 theregistries
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
registries
The field for theregistries
record component.
-
-
Constructor Details
-
VanillaEquipmentLootTableGenerator
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceLootTableGenerator
- Mappings:
Namespace Name Mixin selector named accept
Lnet/minecraft/data/server/loottable/LootTableGenerator;accept(Ljava/util/function/BiConsumer;)V
intermediary method_10399
Lnet/minecraft/class_7791;method_10399(Ljava/util/function/BiConsumer;)V
official generate
Lmt;generate(Ljava/util/function/BiConsumer;)V
-
createEquipmentTableBuilder
public static LootTable.Builder createEquipmentTableBuilder(Item helmet, Item chestplate, ArmorTrim trim, RegistryWrapper.Impl<Enchantment> enchantmentRegistryWrapper) - Mappings:
Namespace Name Mixin selector named createEquipmentTableBuilder
Lnet/minecraft/data/server/loottable/vanilla/VanillaEquipmentLootTableGenerator;createEquipmentTableBuilder(Lnet/minecraft/item/Item;Lnet/minecraft/item/Item;Lnet/minecraft/item/trim/ArmorTrim;Lnet/minecraft/registry/RegistryWrapper$Impl;)Lnet/minecraft/loot/LootTable$Builder;
intermediary method_60419
Lnet/minecraft/class_9486;method_60419(Lnet/minecraft/class_1792;Lnet/minecraft/class_1792;Lnet/minecraft/class_8053;Lnet/minecraft/class_7225$class_7226;)Lnet/minecraft/class_52$class_53;
official a
Lnb;a(Lcty;Lcty;Lcwh;Ljl$b;)Lerb$a;
-
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)
. -
registries
Returns the value of theregistries
record component.- Returns:
- the value of the
registries
record component
-