Package net.minecraft.world
Record Class PersistentState.Type<T extends PersistentState>
java.lang.Object
java.lang.Record
net.minecraft.world.PersistentState.Type<T>
- Record Components:
- constructor-
- deserializer-
- type-
- Enclosing class:
- PersistentState
public static record PersistentState.Type<T extends PersistentState>(Supplier<T extends PersistentState> constructor, BiFunction<NbtCompound,RegistryWrapper.WrapperLookup,T extends PersistentState> deserializer, DataFixTypes type)
extends Record  
- Mappings:
- Namespace - Name - named - net/minecraft/world/PersistentState$Type- intermediary - net/minecraft/class_18$class_8645- official - eum$a- named - constructor- intermediary - comp_1590- official - a- named - deserializer- intermediary - comp_1591- official - b- named - type- intermediary - comp_1592- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe field for theconstructorrecord component.private final BiFunction<NbtCompound, RegistryWrapper.WrapperLookup, T> The field for thedeserializerrecord component.private final DataFixTypesThe field for thetyperecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionType(Supplier<T> supplier, BiFunction<NbtCompound, RegistryWrapper.WrapperLookup, T> biFunction, DataFixTypes dataFixTypes) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theconstructorrecord component.Returns the value of thedeserializerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
- 
Field Details- 
constructorThe field for theconstructorrecord component.
- 
deserializerprivate final BiFunction<NbtCompound,RegistryWrapper.WrapperLookup, deserializerT extends PersistentState> The field for thedeserializerrecord component.
- 
typeThe field for thetyperecord component.
 
- 
- 
Constructor Details- 
Typepublic Type(Supplier<T> supplier, BiFunction<NbtCompound, RegistryWrapper.WrapperLookup, T> biFunction, DataFixTypes dataFixTypes) 
 
- 
- 
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).
- 
constructorReturns the value of theconstructorrecord component.- Returns:
- the value of the constructorrecord component
 
- 
deserializerReturns the value of thedeserializerrecord component.- Returns:
- the value of the deserializerrecord component
 
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
 
-