Package net.minecraft.world.storage
Record Class StorageKey
java.lang.Object
java.lang.Record
net.minecraft.world.storage.StorageKey
- Record Components:
level-dimension-type-
- Mappings:
Namespace Name named net/minecraft/world/storage/StorageKeyintermediary net/minecraft/class_9240official dwsnamed levelintermediary comp_2345official anamed dimensionintermediary comp_2346official bnamed typeintermediary comp_2347official c
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.withSuffix(String suffix)
-
Field Details
-
Constructor Details
-
StorageKey
-
-
Method Details
-
withSuffix
- Mappings:
Namespace Name Mixin selector named withSuffixLnet/minecraft/world/storage/StorageKey;withSuffix(Ljava/lang/String;)Lnet/minecraft/world/storage/StorageKey;intermediary method_57013Lnet/minecraft/class_9240;method_57013(Ljava/lang/String;)Lnet/minecraft/class_9240;official aLdws;a(Ljava/lang/String;)Ldws;
-
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
-