Record Class LootDescriptionAdapter
java.lang.Object
java.lang.Record
net.darkhax.bookshelf.common.impl.registry.adapter.LootDescriptionAdapter
public record LootDescriptionAdapter(BiConsumer<net.minecraft.resources.Identifier, LootPoolEntryDescriber> registryFunc)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLootDescriptionAdapter(BiConsumer<net.minecraft.resources.Identifier, LootPoolEntryDescriber> registryFunc) Creates an instance of aLootDescriptionAdapterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(String name, LootPoolEntryDescriber describer) voidadd(net.minecraft.resources.Identifier id, LootPoolEntryDescriber describer) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.BiConsumer<net.minecraft.resources.Identifier, LootPoolEntryDescriber> Returns the value of theregistryFuncrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LootDescriptionAdapter
public LootDescriptionAdapter(BiConsumer<net.minecraft.resources.Identifier, LootPoolEntryDescriber> registryFunc) Creates an instance of aLootDescriptionAdapterrecord class.- Parameters:
registryFunc- the value for theregistryFuncrecord component
-
-
Method Details
-
add
-
add
-
toString
-
hashCode
-
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). -
registryFunc
Returns the value of theregistryFuncrecord component.- Returns:
- the value of the
registryFuncrecord component
-