Record Class VanillaBarterLootTableGenerator
java.lang.Object
java.lang.Record
net.minecraft.data.loottable.vanilla.VanillaBarterLootTableGenerator
- Record Components:
- registries-
- All Implemented Interfaces:
- LootTableGenerator
public record VanillaBarterLootTableGenerator(RegistryWrapper.WrapperLookup registries)
extends Record
implements LootTableGenerator
- Mappings:
- Namespace - Name - named - net/minecraft/data/loottable/vanilla/VanillaBarterLootTableGenerator- intermediary - net/minecraft/class_4845- official - nt- named - registries- intermediary - comp_2791- official - a
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final RegistryWrapper.WrapperLookupThe field for theregistriesrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionVanillaBarterLootTableGenerator(RegistryWrapper.WrapperLookup wrapperLookup) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaccept(BiConsumer<RegistryKey<LootTable>, LootTable.Builder> lootTableBiConsumer) 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 theregistriesrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
registriesThe field for theregistriesrecord component.
 
- 
- 
Constructor Details- 
VanillaBarterLootTableGenerator
 
- 
- 
Method Details- 
accept- Specified by:
- acceptin interface- LootTableGenerator
- Mappings:
- Namespace - Name - Mixin selector - named - accept- Lnet/minecraft/data/loottable/LootTableGenerator;accept(Ljava/util/function/BiConsumer;)V- intermediary - method_10399- Lnet/minecraft/class_7791;method_10399(Ljava/util/function/BiConsumer;)V- official - generate- Lng;generate(Ljava/util/function/BiConsumer;)V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
registriesReturns the value of theregistriesrecord component.- Returns:
- the value of the registriesrecord component
 
 
-