Package net.minecraft.world
Record Class WorldProperties.SpawnPoint
java.lang.Object
java.lang.Record
net.minecraft.world.WorldProperties.SpawnPoint
- Record Components:
globalPos-yaw-pitch-
- Enclosing interface:
WorldProperties
public static record WorldProperties.SpawnPoint(GlobalPos globalPos, float yaw, float pitch)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/WorldProperties$SpawnPointintermediary net/minecraft/class_5217$class_12064official fid$anamed globalPosintermediary comp_4915official enamed yawintermediary comp_4916official fnamed pitchintermediary comp_4917official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WorldProperties.SpawnPoint> static final WorldProperties.SpawnPointprivate final GlobalPosThe field for theglobalPosrecord component.static final com.mojang.serialization.MapCodec<WorldProperties.SpawnPoint> static final PacketCodec<ByteBuf, WorldProperties.SpawnPoint> private final floatThe field for thepitchrecord component.private final floatThe field for theyawrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WorldProperties.SpawnPointcreate(RegistryKey<World> dimension, BlockPos pos, float yaw, float pitch) final booleanIndicates whether some other object is "equal to" this one.getPos()Returns the value of theglobalPosrecord component.final inthashCode()Returns a hash code value for this object.floatpitch()Returns the value of thepitchrecord component.final StringtoString()Returns a string representation of this record class.floatyaw()Returns the value of theyawrecord component.
-
Field Details
-
globalPos
The field for theglobalPosrecord component. -
yaw
private final float yawThe field for theyawrecord component. -
pitch
private final float pitchThe field for thepitchrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/world/WorldProperties$SpawnPoint;DEFAULT:Lnet/minecraft/world/WorldProperties$SpawnPoint;intermediary field_63048Lnet/minecraft/class_5217$class_12064;field_63048:Lnet/minecraft/class_5217$class_12064;official aLfid$a;a:Lfid$a;
-
MAP_CODEC
- Mappings:
Namespace Name Mixin selector named MAP_CODECLnet/minecraft/world/WorldProperties$SpawnPoint;MAP_CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_63049Lnet/minecraft/class_5217$class_12064;field_63049:Lcom/mojang/serialization/MapCodec;official bLfid$a;b:Lcom/mojang/serialization/MapCodec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/WorldProperties$SpawnPoint;CODEC:Lcom/mojang/serialization/Codec;intermediary field_63050Lnet/minecraft/class_5217$class_12064;field_63050:Lcom/mojang/serialization/Codec;official cLfid$a;c:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/world/WorldProperties$SpawnPoint;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_63051Lnet/minecraft/class_5217$class_12064;field_63051:Lnet/minecraft/class_9139;official dLfid$a;d:Laae;
-
-
Constructor Details
-
SpawnPoint
-
-
Method Details
-
create
public static WorldProperties.SpawnPoint create(RegistryKey<World> dimension, BlockPos pos, float yaw, float pitch) - Mappings:
Namespace Name Mixin selector named createLnet/minecraft/world/WorldProperties$SpawnPoint;create(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/util/math/BlockPos;FF)Lnet/minecraft/world/WorldProperties$SpawnPoint;intermediary method_74895Lnet/minecraft/class_5217$class_12064;method_74895(Lnet/minecraft/class_5321;Lnet/minecraft/class_2338;FF)Lnet/minecraft/class_5217$class_12064;official aLfid$a;a(Lami;Lja;FF)Lfid$a;
-
getDimension
- Mappings:
Namespace Name Mixin selector named getDimensionLnet/minecraft/world/WorldProperties$SpawnPoint;getDimension()Lnet/minecraft/registry/RegistryKey;intermediary method_74894Lnet/minecraft/class_5217$class_12064;method_74894()Lnet/minecraft/class_5321;official aLfid$a;a()Lami;
-
getPos
- Mappings:
Namespace Name Mixin selector named getPosLnet/minecraft/world/WorldProperties$SpawnPoint;getPos()Lnet/minecraft/util/math/BlockPos;intermediary method_74897Lnet/minecraft/class_5217$class_12064;method_74897()Lnet/minecraft/class_2338;official bLfid$a;b()Lja;
-
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 '=='. -
globalPos
Returns the value of theglobalPosrecord component.- Returns:
- the value of the
globalPosrecord component
-
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
pitch
public float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-