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$SpawnPoint
intermediary net/minecraft/class_5217$class_12064
official fid$a
named globalPos
intermediary comp_4915
official e
named yaw
intermediary comp_4916
official f
named pitch
intermediary comp_4917
official g
  • Field Details

    • globalPos

      private final GlobalPos globalPos
      The field for the globalPos record component.
    • yaw

      private final float yaw
      The field for the yaw record component.
    • pitch

      private final float pitch
      The field for the pitch record component.
    • DEFAULT

      public static final WorldProperties.SpawnPoint DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/world/WorldProperties$SpawnPoint;DEFAULT:Lnet/minecraft/world/WorldProperties$SpawnPoint;
      intermediary field_63048 Lnet/minecraft/class_5217$class_12064;field_63048:Lnet/minecraft/class_5217$class_12064;
      official a Lfid$a;a:Lfid$a;
    • MAP_CODEC

      public static final com.mojang.serialization.MapCodec<WorldProperties.SpawnPoint> MAP_CODEC
      Mappings:
      Namespace Name Mixin selector
      named MAP_CODEC Lnet/minecraft/world/WorldProperties$SpawnPoint;MAP_CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_63049 Lnet/minecraft/class_5217$class_12064;field_63049:Lcom/mojang/serialization/MapCodec;
      official b Lfid$a;b:Lcom/mojang/serialization/MapCodec;
    • CODEC

      public static final com.mojang.serialization.Codec<WorldProperties.SpawnPoint> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/WorldProperties$SpawnPoint;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_63050 Lnet/minecraft/class_5217$class_12064;field_63050:Lcom/mojang/serialization/Codec;
      official c Lfid$a;c:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,WorldProperties.SpawnPoint> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/world/WorldProperties$SpawnPoint;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_63051 Lnet/minecraft/class_5217$class_12064;field_63051:Lnet/minecraft/class_9139;
      official d Lfid$a;d:Laae;
  • Constructor Details

    • SpawnPoint

      public SpawnPoint(GlobalPos globalPos, float float2, float float3)
  • Method Details

    • create

      public static WorldProperties.SpawnPoint create(RegistryKey<World> dimension, BlockPos pos, float yaw, float pitch)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/world/WorldProperties$SpawnPoint;create(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/util/math/BlockPos;FF)Lnet/minecraft/world/WorldProperties$SpawnPoint;
      intermediary method_74895 Lnet/minecraft/class_5217$class_12064;method_74895(Lnet/minecraft/class_5321;Lnet/minecraft/class_2338;FF)Lnet/minecraft/class_5217$class_12064;
      official a Lfid$a;a(Lami;Lja;FF)Lfid$a;
    • getDimension

      public RegistryKey<World> getDimension()
      Mappings:
      Namespace Name Mixin selector
      named getDimension Lnet/minecraft/world/WorldProperties$SpawnPoint;getDimension()Lnet/minecraft/registry/RegistryKey;
      intermediary method_74894 Lnet/minecraft/class_5217$class_12064;method_74894()Lnet/minecraft/class_5321;
      official a Lfid$a;a()Lami;
    • getPos

      public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      named getPos Lnet/minecraft/world/WorldProperties$SpawnPoint;getPos()Lnet/minecraft/util/math/BlockPos;
      intermediary method_74897 Lnet/minecraft/class_5217$class_12064;method_74897()Lnet/minecraft/class_2338;
      official b Lfid$a;b()Lja;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • globalPos

      public GlobalPos globalPos()
      Returns the value of the globalPos record component.
      Returns:
      the value of the globalPos record component
    • yaw

      public float yaw()
      Returns the value of the yaw record component.
      Returns:
      the value of the yaw record component
    • pitch

      public float pitch()
      Returns the value of the pitch record component.
      Returns:
      the value of the pitch record component