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 SummaryFieldsModifier and TypeFieldDescriptionprivate final LootContextParamSetThe field for theparamSetrecord component.private final Supplier<LootTableSubProvider>The field for theproviderrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionSubProviderEntry(Supplier<LootTableSubProvider> provider, LootContextParamSet paramSet) Creates an instance of aSubProviderEntryrecord class.
- 
Method SummaryModifier 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- 
providerThe field for theproviderrecord component.
- 
paramSetThe field for theparamSetrecord component.
 
- 
- 
Constructor Details- 
SubProviderEntryCreates an instance of aSubProviderEntryrecord class.- Parameters:
- provider- the value for the- providerrecord component
- paramSet- the value for the- paramSetrecord component
 
 
- 
- 
Method Details- 
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).
- 
providerReturns the value of theproviderrecord component.- Returns:
- the value of the providerrecord component
 
- 
paramSetReturns the value of theparamSetrecord component.- Returns:
- the value of the paramSetrecord component
 
 
-