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
-
Constructor Summary
ConstructorDescriptionRegionStorageInfo
(String level, ResourceKey<Level> dimension, String type) Creates an instance of aRegionStorageInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimension
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.level()
Returns the value of thelevel
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.withTypeSuffix
(String p_334043_)
-
Field Details
-
level
The field for thelevel
record component. -
dimension
The field for thedimension
record component. -
type
The field for thetype
record component.
-
-
Constructor Details
-
RegionStorageInfo
Creates an instance of aRegionStorageInfo
record class.- Parameters:
level
- the value for thelevel
record componentdimension
- the value for thedimension
record componenttype
- the value for thetype
record 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 thelevel
record component.- Returns:
- the value of the
level
record component
-
dimension
Returns the value of thedimension
record component.- Returns:
- the value of the
dimension
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-