Package net.minecraft.world
Record Class PersistentState.Context
java.lang.Object
java.lang.Record
net.minecraft.world.PersistentState.Context
- Record Components:
world-worldSeed-
- Enclosing class:
PersistentState
public static record PersistentState.Context(@Nullable ServerWorld world, long worldSeed)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/PersistentState$Contextintermediary net/minecraft/class_18$class_10740official ezm$anamed worldintermediary comp_3639official anamed worldSeedintermediary comp_3640official b
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContext(@Nullable ServerWorld serverWorld, long long2) Context(ServerWorld world) -
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.final StringtoString()Returns a string representation of this record class.world()Returns the value of theworldrecord component.longReturns the value of theworldSeedrecord component.
-
Field Details
-
Constructor Details
-
Context
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/PersistentState$Context;<init>(Lnet/minecraft/server/world/ServerWorld;)Vintermediary <init>Lnet/minecraft/class_18$class_10740;<init>(Lnet/minecraft/class_3218;)Vofficial <init>Lezm$a;<init>(Lasb;)V
-
Context
-
-
Method Details
-
getWorldOrThrow
- Mappings:
Namespace Name Mixin selector named getWorldOrThrowLnet/minecraft/world/PersistentState$Context;getWorldOrThrow()Lnet/minecraft/server/world/ServerWorld;intermediary method_67417Lnet/minecraft/class_18$class_10740;method_67417()Lnet/minecraft/class_3218;official aLezm$a;a()Lasb;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
worldSeed
public long worldSeed()Returns the value of theworldSeedrecord component.- Returns:
- the value of the
worldSeedrecord component
-