Package net.minecraft.data.loot.packs
Record Class VanillaChargedCreeperExplosionLoot
java.lang.Object
java.lang.Record
net.minecraft.data.loot.packs.VanillaChargedCreeperExplosionLoot
- All Implemented Interfaces:
LootTableSubProvider,LootTableSubProviderExtension
public record VanillaChargedCreeperExplosionLoot(HolderLookup.Provider registries)
extends Record
implements LootTableSubProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final List<VanillaChargedCreeperExplosionLoot.Entry> private final HolderLookup.ProviderThe field for theregistriesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aVanillaChargedCreeperExplosionLootrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidgenerate(BiConsumer<ResourceKey<LootTable>, LootTable.Builder> p_433530_) 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.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.LootTableSubProviderExtension
withConditions
-
Field Details
-
registries
The field for theregistriesrecord component. -
ENTRIES
-
-
Constructor Details
-
VanillaChargedCreeperExplosionLoot
Creates an instance of aVanillaChargedCreeperExplosionLootrecord class.- Parameters:
registries- the value for theregistriesrecord component
-
-
Method Details
-
generate
- Specified by:
generatein interfaceLootTableSubProvider
-
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 theregistriesrecord component.- Returns:
- the value of the
registriesrecord component
-