Class ClientboundAddEntityPacket

java.lang.Object
net.minecraft.network.protocol.game.ClientboundAddEntityPacket
All Implemented Interfaces:
Packet<ClientGamePacketListener>

public class ClientboundAddEntityPacket extends Object implements Packet<ClientGamePacketListener>
  • Field Details

    • MAGICAL_QUANTIZATION

      public static final double MAGICAL_QUANTIZATION
      See Also:
      Constant Field Values
    • id

      private final int id
    • uuid

      private final UUID uuid
    • x

      private final double x
    • y

      private final double y
    • z

      private final double z
    • xa

      private final int xa
    • ya

      private final int ya
    • za

      private final int za
    • xRot

      private final int xRot
    • yRot

      private final int yRot
    • type

      private final EntityType<?> type
    • data

      private final int data
    • LIMIT

      public static final double LIMIT
      See Also:
      Constant Field Values
  • Constructor Details

    • ClientboundAddEntityPacket

      public ClientboundAddEntityPacket(int p_131470_, UUID p_131471_, double p_131472_, double p_131473_, double p_131474_, float p_131475_, float p_131476_, EntityType<?> p_131477_, int p_131478_, Vec3 p_131479_)
    • ClientboundAddEntityPacket

      public ClientboundAddEntityPacket(Entity p_131481_)
    • ClientboundAddEntityPacket

      public ClientboundAddEntityPacket(Entity p_131483_, int p_131484_)
    • ClientboundAddEntityPacket

      public ClientboundAddEntityPacket(Entity p_131486_, EntityType<?> p_131487_, int p_131488_, BlockPos p_131489_)
    • ClientboundAddEntityPacket

      public ClientboundAddEntityPacket(FriendlyByteBuf p_178562_)
  • Method Details

    • write

      public void write(FriendlyByteBuf p_131498_)
      Specified by:
      write in interface Packet<ClientGamePacketListener>
    • handle

      public void handle(ClientGamePacketListener p_131495_)
      Specified by:
      handle in interface Packet<ClientGamePacketListener>
    • getId

      public int getId()
    • getUUID

      public UUID getUUID()
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • getXa

      public double getXa()
    • getYa

      public double getYa()
    • getZa

      public double getZa()
    • getxRot

      public int getxRot()
    • getyRot

      public int getyRot()
    • getType

      public EntityType<?> getType()
    • getData

      public int getData()