Record Class WaypointS2CPacket

java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.WaypointS2CPacket
Record Components:
operation -
waypoint -
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public record WaypointS2CPacket(WaypointS2CPacket.Operation operation, TrackedWaypoint waypoint) extends Record implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
named net/minecraft/network/packet/s2c/play/WaypointS2CPacket
intermediary net/minecraft/class_11173
official ahc
named operation
intermediary comp_4022
official b
named waypoint
intermediary comp_4023
official c
  • Field Details

    • operation

      private final WaypointS2CPacket.Operation operation
      The field for the operation record component.
    • waypoint

      private final TrackedWaypoint waypoint
      The field for the waypoint record component.
    • CODEC

      public static final PacketCodec<RegistryByteBuf,WaypointS2CPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_59612 Lnet/minecraft/class_11173;field_59612:Lnet/minecraft/class_9139;
      official a Lahc;a:Lzm;
  • Constructor Details

  • Method Details

    • untrack

      public static WaypointS2CPacket untrack(UUID source)
      Mappings:
      Namespace Name Mixin selector
      named untrack Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;untrack(Ljava/util/UUID;)Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;
      intermediary method_70584 Lnet/minecraft/class_11173;method_70584(Ljava/util/UUID;)Lnet/minecraft/class_11173;
      official a Lahc;a(Ljava/util/UUID;)Lahc;
    • trackPos

      public static WaypointS2CPacket trackPos(UUID source, Waypoint.Config config, Vec3i pos)
      Mappings:
      Namespace Name Mixin selector
      named trackPos Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;trackPos(Ljava/util/UUID;Lnet/minecraft/world/waypoint/Waypoint$Config;Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;
      intermediary method_70587 Lnet/minecraft/class_11173;method_70587(Ljava/util/UUID;Lnet/minecraft/class_11208$class_11209;Lnet/minecraft/class_2382;)Lnet/minecraft/class_11173;
      official a Lahc;a(Ljava/util/UUID;Lfkt$a;Lkg;)Lahc;
    • updatePos

      public static WaypointS2CPacket updatePos(UUID source, Waypoint.Config config, Vec3i pos)
      Mappings:
      Namespace Name Mixin selector
      named updatePos Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;updatePos(Ljava/util/UUID;Lnet/minecraft/world/waypoint/Waypoint$Config;Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;
      intermediary method_70590 Lnet/minecraft/class_11173;method_70590(Ljava/util/UUID;Lnet/minecraft/class_11208$class_11209;Lnet/minecraft/class_2382;)Lnet/minecraft/class_11173;
      official b Lahc;b(Ljava/util/UUID;Lfkt$a;Lkg;)Lahc;
    • trackChunk

      public static WaypointS2CPacket trackChunk(UUID source, Waypoint.Config config, ChunkPos chunkPos)
      Mappings:
      Namespace Name Mixin selector
      named trackChunk Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;trackChunk(Ljava/util/UUID;Lnet/minecraft/world/waypoint/Waypoint$Config;Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;
      intermediary method_70586 Lnet/minecraft/class_11173;method_70586(Ljava/util/UUID;Lnet/minecraft/class_11208$class_11209;Lnet/minecraft/class_1923;)Lnet/minecraft/class_11173;
      official a Lahc;a(Ljava/util/UUID;Lfkt$a;Ldlz;)Lahc;
    • updateChunk

      public static WaypointS2CPacket updateChunk(UUID source, Waypoint.Config config, ChunkPos chunkPos)
      Mappings:
      Namespace Name Mixin selector
      named updateChunk Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;updateChunk(Ljava/util/UUID;Lnet/minecraft/world/waypoint/Waypoint$Config;Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;
      intermediary method_70589 Lnet/minecraft/class_11173;method_70589(Ljava/util/UUID;Lnet/minecraft/class_11208$class_11209;Lnet/minecraft/class_1923;)Lnet/minecraft/class_11173;
      official b Lahc;b(Ljava/util/UUID;Lfkt$a;Ldlz;)Lahc;
    • trackAzimuth

      public static WaypointS2CPacket trackAzimuth(UUID source, Waypoint.Config config, float azimuth)
      Mappings:
      Namespace Name Mixin selector
      named trackAzimuth Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;trackAzimuth(Ljava/util/UUID;Lnet/minecraft/world/waypoint/Waypoint$Config;F)Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;
      intermediary method_70585 Lnet/minecraft/class_11173;method_70585(Ljava/util/UUID;Lnet/minecraft/class_11208$class_11209;F)Lnet/minecraft/class_11173;
      official a Lahc;a(Ljava/util/UUID;Lfkt$a;F)Lahc;
    • updateAzimuth

      public static WaypointS2CPacket updateAzimuth(UUID source, Waypoint.Config config, float azimuth)
      Mappings:
      Namespace Name Mixin selector
      named updateAzimuth Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;updateAzimuth(Ljava/util/UUID;Lnet/minecraft/world/waypoint/Waypoint$Config;F)Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;
      intermediary method_70588 Lnet/minecraft/class_11173;method_70588(Ljava/util/UUID;Lnet/minecraft/class_11208$class_11209;F)Lnet/minecraft/class_11173;
      official b Lahc;b(Ljava/util/UUID;Lfkt$a;F)Lahc;
    • getPacketType

      public PacketType<WaypointS2CPacket> getPacketType()
      Specified by:
      getPacketType in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketType Lnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;
      intermediary method_65080 Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;
      official a Lzw;a()Lzy;
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
      intermediary method_70582 Lnet/minecraft/class_11173;method_70582(Lnet/minecraft/class_2602;)V
      official a Lahc;a(Lacq;)V
    • apply

      public void apply(TrackedWaypointHandler handler)
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/s2c/play/WaypointS2CPacket;apply(Lnet/minecraft/world/waypoint/TrackedWaypointHandler;)V
      intermediary method_70583 Lnet/minecraft/class_11173;method_70583(Lnet/minecraft/class_11207;)V
      official a Lahc;a(Lfks;)V
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • operation

      public WaypointS2CPacket.Operation operation()
      Returns the value of the operation record component.
      Returns:
      the value of the operation record component
    • waypoint

      public TrackedWaypoint waypoint()
      Returns the value of the waypoint record component.
      Returns:
      the value of the waypoint record component