Package net.minecraft
Record Class class_8589
java.lang.Object
java.lang.Record
net.minecraft.class_8589
- Record Components:
dimensionType-dimension-seed-gameType-previousGameType-isDebug-isFlat-lastDeathLocation-portalCooldown-
public record class_8589(RegistryKey<DimensionType> dimensionType, RegistryKey<World> dimension, long seed, GameMode gameType, @Nullable GameMode previousGameType, boolean isDebug, boolean isFlat, Optional<GlobalPos> lastDeathLocation, int portalCooldown)
extends Record
- Mappings:
Namespace Name official aasintermediary net/minecraft/class_8589named net/minecraft/class_8589official aintermediary comp_1553named dimensionTypeofficial bintermediary comp_1554named dimensionofficial cintermediary comp_1555named seedofficial dintermediary comp_1556named gameTypeofficial eintermediary comp_1557named previousGameTypeofficial fintermediary comp_1558named isDebugofficial gintermediary comp_1559named isFlatofficial hintermediary comp_1560named lastDeathLocationofficial iintermediary comp_1561named portalCooldown
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryKey<World>The field for thedimensionrecord component.private final RegistryKey<DimensionType>The field for thedimensionTyperecord component.private final GameModeThe field for thegameTyperecord component.private final booleanThe field for theisDebugrecord component.private final booleanThe field for theisFlatrecord component.The field for thelastDeathLocationrecord component.private final intThe field for theportalCooldownrecord component.The field for thepreviousGameTyperecord component.private final longThe field for theseedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_8589(PacketByteBuf packetByteBuf) class_8589(RegistryKey<DimensionType> registryKey, RegistryKey<World> registryKey2, long long2, GameMode gameMode, @Nullable GameMode gameMode2, boolean bool, boolean bool2, Optional<GlobalPos> optional, int int2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimensionrecord component.Returns the value of thedimensionTyperecord component.final booleanIndicates whether some other object is "equal to" this one.gameType()Returns the value of thegameTyperecord component.final inthashCode()Returns a hash code value for this object.booleanisDebug()Returns the value of theisDebugrecord component.booleanisFlat()Returns the value of theisFlatrecord component.Returns the value of thelastDeathLocationrecord component.voidmethod_52274(PacketByteBuf packetByteBuf) intReturns the value of theportalCooldownrecord component.Returns the value of thepreviousGameTyperecord component.longseed()Returns the value of theseedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
dimensionType
The field for thedimensionTyperecord component. -
dimension
The field for thedimensionrecord component. -
seed
private final long seedThe field for theseedrecord component. -
gameType
The field for thegameTyperecord component. -
previousGameType
The field for thepreviousGameTyperecord component. -
isDebug
private final boolean isDebugThe field for theisDebugrecord component. -
isFlat
private final boolean isFlatThe field for theisFlatrecord component. -
lastDeathLocation
The field for thelastDeathLocationrecord component. -
portalCooldown
private final int portalCooldownThe field for theportalCooldownrecord component.
-
-
Constructor Details
-
class_8589
-
class_8589
public class_8589(RegistryKey<DimensionType> registryKey, RegistryKey<World> registryKey2, long long2, GameMode gameMode, @Nullable @Nullable GameMode gameMode2, boolean bool, boolean bool2, Optional<GlobalPos> optional, int int2)
-
-
Method Details
-
method_52274
- Mappings:
Namespace Name Mixin selector official aLaas;a(Lsh;)Vintermediary method_52274Lnet/minecraft/class_8589;method_52274(Lnet/minecraft/class_2540;)Vnamed method_52274Lnet/minecraft/class_8589;method_52274(Lnet/minecraft/network/PacketByteBuf;)V
-
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 '=='. -
dimensionType
Returns the value of thedimensionTyperecord component.- Returns:
- the value of the
dimensionTyperecord component
-
dimension
Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
seed
public long seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
gameType
Returns the value of thegameTyperecord component.- Returns:
- the value of the
gameTyperecord component
-
previousGameType
Returns the value of thepreviousGameTyperecord component.- Returns:
- the value of the
previousGameTyperecord component
-
isDebug
public boolean isDebug()Returns the value of theisDebugrecord component.- Returns:
- the value of the
isDebugrecord component
-
isFlat
public boolean isFlat()Returns the value of theisFlatrecord component.- Returns:
- the value of the
isFlatrecord component
-
lastDeathLocation
Returns the value of thelastDeathLocationrecord component.- Returns:
- the value of the
lastDeathLocationrecord component
-
portalCooldown
public int portalCooldown()Returns the value of theportalCooldownrecord component.- Returns:
- the value of the
portalCooldownrecord component
-