Package net.minecraft.data.loottable
Record Class LootTableProvider.LootTypeGenerator
java.lang.Object
java.lang.Record
net.minecraft.data.loottable.LootTableProvider.LootTypeGenerator
- Record Components:
provider-paramSet-
- Enclosing class:
LootTableProvider
public static record LootTableProvider.LootTypeGenerator(Function<RegistryWrapper.WrapperLookup,LootTableGenerator> provider, ContextType paramSet)
extends Record
- Mappings:
Namespace Name named net/minecraft/data/loottable/LootTableProvider$LootTypeGeneratorintermediary net/minecraft/class_2438$class_7790official nf$anamed providerintermediary comp_1068official anamed paramSetintermediary comp_1069official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContextTypeThe field for theparamSetrecord component.private final Function<RegistryWrapper.WrapperLookup, LootTableGenerator> The field for theproviderrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionLootTypeGenerator(Function<RegistryWrapper.WrapperLookup, LootTableGenerator> function, ContextType contextType) -
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
-
Constructor Details
-
LootTypeGenerator
public LootTypeGenerator(Function<RegistryWrapper.WrapperLookup, LootTableGenerator> function, ContextType contextType)
-
-
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
-