Package net.minecraft.data.loot
Record Class LootTableProvider.SubProviderEntry
java.lang.Object
java.lang.Record
net.minecraft.data.loot.LootTableProvider.SubProviderEntry
- Enclosing class:
LootTableProvider
public static record LootTableProvider.SubProviderEntry(Supplier<LootTableSubProvider> provider, LootContextParamSet paramSet)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LootContextParamSetThe field for theparamSetrecord component.private final Supplier<LootTableSubProvider> The field for theproviderrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSubProviderEntry(Supplier<LootTableSubProvider> provider, LootContextParamSet paramSet) Creates an instance of aSubProviderEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.paramSet()Returns the value of theparamSetrecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
provider
The field for theproviderrecord component. -
paramSet
The field for theparamSetrecord component.
-
-
Constructor Details
-
SubProviderEntry
Creates an instance of aSubProviderEntryrecord class.- Parameters:
provider- the value for theproviderrecord componentparamSet- the value for theparamSetrecord component
-
-
Method Details
-
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). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
paramSet
Returns the value of theparamSetrecord component.- Returns:
- the value of the
paramSetrecord component
-