Record Class RegionStorageInfo
java.lang.Object
java.lang.Record
net.minecraft.world.level.chunk.storage.RegionStorageInfo
public record RegionStorageInfo(String level, ResourceKey<Level> dimension, String type)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRegionStorageInfo(String level, ResourceKey<Level> dimension, String type) Creates an instance of aRegionStorageInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.withTypeSuffix(String p_334043_)
-
Field Details
-
level
The field for thelevelrecord component. -
dimension
The field for thedimensionrecord component. -
type
The field for thetyperecord component.
-
-
Constructor Details
-
RegionStorageInfo
Creates an instance of aRegionStorageInforecord class.- Parameters:
level- the value for thelevelrecord componentdimension- the value for thedimensionrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
withTypeSuffix
-
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). -
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
dimension
Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-