Record Class LootTableProvider.SubProviderEntry
java.lang.Object
java.lang.Record
net.minecraft.data.loot.LootTableProvider.SubProviderEntry
- Enclosing class:
LootTableProvider
public static record LootTableProvider.SubProviderEntry(LootTableSubProvider.Factory bootstrap, ContextKeySet paramSet)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LootTableSubProvider.FactoryThe field for thebootstraprecord component.private final ContextKeySetThe field for theparamSetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSubProviderEntry(LootTableSubProvider.Factory bootstrap, ContextKeySet paramSet) Creates an instance of aSubProviderEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebootstraprecord component.final 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.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
bootstrap
The field for thebootstraprecord component. -
paramSet
The field for theparamSetrecord component.
-
-
Constructor Details
-
SubProviderEntry
Creates an instance of aSubProviderEntryrecord class.- Parameters:
bootstrap- the value for thebootstraprecord componentparamSet- the value for theparamSetrecord component
-
-
Method Details
-
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). -
bootstrap
Returns the value of thebootstraprecord component.- Returns:
- the value of the
bootstraprecord component
-
paramSet
Returns the value of theparamSetrecord component.- Returns:
- the value of the
paramSetrecord component
-