Class LookAtS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.LookAtS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class LookAtS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
named net/minecraft/network/packet/s2c/play/LookAtS2CPacket
intermediary net/minecraft/class_2707
official afa
  • Field Details

    • CODEC

      public static final PacketCodec<PacketByteBuf,LookAtS2CPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_47956 Lnet/minecraft/class_2707;field_47956:Lnet/minecraft/class_9139;
      official a Lafa;a:Lzt;
    • targetX

      private final double targetX
      Mappings:
      Namespace Name Mixin selector
      named targetX Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;targetX:D
      intermediary field_12386 Lnet/minecraft/class_2707;field_12386:D
      official b Lafa;b:D
    • targetY

      private final double targetY
      Mappings:
      Namespace Name Mixin selector
      named targetY Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;targetY:D
      intermediary field_12384 Lnet/minecraft/class_2707;field_12384:D
      official c Lafa;c:D
    • targetZ

      private final double targetZ
      Mappings:
      Namespace Name Mixin selector
      named targetZ Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;targetZ:D
      intermediary field_12383 Lnet/minecraft/class_2707;field_12383:D
      official d Lafa;d:D
    • entityId

      private final int entityId
      Mappings:
      Namespace Name Mixin selector
      named entityId Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;entityId:I
      intermediary field_12388 Lnet/minecraft/class_2707;field_12388:I
      official e Lafa;e:I
    • selfAnchor

      private final EntityAnchorArgumentType.EntityAnchor selfAnchor
      Mappings:
      Namespace Name Mixin selector
      named selfAnchor Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;selfAnchor:Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
      intermediary field_12385 Lnet/minecraft/class_2707;field_12385:Lnet/minecraft/class_2183$class_2184;
      official f Lafa;f:Lfi$a;
    • targetAnchor

      private final EntityAnchorArgumentType.EntityAnchor targetAnchor
      Mappings:
      Namespace Name Mixin selector
      named targetAnchor Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;targetAnchor:Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
      intermediary field_12389 Lnet/minecraft/class_2707;field_12389:Lnet/minecraft/class_2183$class_2184;
      official g Lafa;g:Lfi$a;
    • lookAtEntity

      private final boolean lookAtEntity
      Mappings:
      Namespace Name Mixin selector
      named lookAtEntity Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;lookAtEntity:Z
      intermediary field_12387 Lnet/minecraft/class_2707;field_12387:Z
      official h Lafa;h:Z
  • Constructor Details

    • LookAtS2CPacket

      public LookAtS2CPacket(EntityAnchorArgumentType.EntityAnchor selfAnchor, double targetX, double targetY, double targetZ)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;<init>(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;DDD)V
      intermediary <init> Lnet/minecraft/class_2707;<init>(Lnet/minecraft/class_2183$class_2184;DDD)V
      official <init> Lafa;<init>(Lfi$a;DDD)V
    • LookAtS2CPacket

      public LookAtS2CPacket(EntityAnchorArgumentType.EntityAnchor selfAnchor, Entity entity, EntityAnchorArgumentType.EntityAnchor targetAnchor)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;<init>(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/entity/Entity;Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;)V
      intermediary <init> Lnet/minecraft/class_2707;<init>(Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_1297;Lnet/minecraft/class_2183$class_2184;)V
      official <init> Lafa;<init>(Lfi$a;Lbvj;Lfi$a;)V
    • LookAtS2CPacket

      private LookAtS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary <init> Lnet/minecraft/class_2707;<init>(Lnet/minecraft/class_2540;)V
      official <init> Lafa;<init>(Lws;)V
  • Method Details

    • write

      private void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_55903 Lnet/minecraft/class_2707;method_55903(Lnet/minecraft/class_2540;)V
      official a Lafa;a(Lws;)V
    • getPacketId

      public PacketType<LookAtS2CPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Laac;a()Laae;
    • 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/LookAtS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
      intermediary method_11731 Lnet/minecraft/class_2707;method_11731(Lnet/minecraft/class_2602;)V
      official a Lafa;a(Lacr;)V
    • getSelfAnchor

      public EntityAnchorArgumentType.EntityAnchor getSelfAnchor()
      Mappings:
      Namespace Name Mixin selector
      named getSelfAnchor Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;getSelfAnchor()Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
      intermediary method_11730 Lnet/minecraft/class_2707;method_11730()Lnet/minecraft/class_2183$class_2184;
      official b Lafa;b()Lfi$a;
    • getTargetPosition

      @Nullable public @Nullable Vec3d getTargetPosition(World world)
      Mappings:
      Namespace Name Mixin selector
      named getTargetPosition Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;getTargetPosition(Lnet/minecraft/world/World;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_11732 Lnet/minecraft/class_2707;method_11732(Lnet/minecraft/class_1937;)Lnet/minecraft/class_243;
      official a Lafa;a(Ldhh;)Lfbx;