Record Class DDFossilLoot
java.lang.Object
java.lang.Record
com.blamejared.dustydiscoveries.neoforge.data.loot.DDFossilLoot
- All Implemented Interfaces:
net.minecraft.data.loot.LootTableSubProvider, net.neoforged.neoforge.common.extensions.LootTableSubProviderExtension
public record DDFossilLoot(net.minecraft.core.HolderLookup.Provider registries)
extends Record
implements net.minecraft.data.loot.LootTableSubProvider
-
Constructor Summary
ConstructorsConstructorDescriptionDDFossilLoot(net.minecraft.core.HolderLookup.Provider registries) Creates an instance of aDDFossilLootrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidgenerate(BiConsumer<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>, net.minecraft.world.level.storage.loot.LootTable.Builder> output) final inthashCode()Returns a hash code value for this object.net.minecraft.core.HolderLookup.ProviderReturns the value of theregistriesrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface net.neoforged.neoforge.common.extensions.LootTableSubProviderExtension
withConditions
-
Constructor Details
-
DDFossilLoot
public DDFossilLoot(net.minecraft.core.HolderLookup.Provider registries) Creates an instance of aDDFossilLootrecord class.- Parameters:
registries- the value for theregistriesrecord component
-
-
Method Details
-
generate
public void generate(BiConsumer<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>, net.minecraft.world.level.storage.loot.LootTable.Builder> output) - Specified by:
generatein interfacenet.minecraft.data.loot.LootTableSubProvider
-
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). -
registries
public net.minecraft.core.HolderLookup.Provider registries()Returns the value of theregistriesrecord component.- Returns:
- the value of the
registriesrecord component
-