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
official wo
intermediary net/minecraft/class_2707
named net/minecraft/network/packet/s2c/play/LookAtS2CPacket
  • Field Details

    • targetX

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

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

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

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

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

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

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

    • LookAtS2CPacket

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

      public LookAtS2CPacket(EntityAnchorArgumentType.EntityAnchor selfAnchor, Entity entity, EntityAnchorArgumentType.EntityAnchor targetAnchor)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lwo;<init>(Ldx$a;Lbdr;Ldx$a;)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
      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
    • LookAtS2CPacket

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

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Luh;a(Lsd;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lwo;a(Luk;)V
      intermediary method_11731 Lnet/minecraft/class_2707;method_11731(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getSelfAnchor

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

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