Class ClientboundAddMobPacket

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

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

    • id

      private final int id
    • uuid

      private final UUID uuid
    • type

      private final int type
    • x

      private final double x
    • y

      private final double y
    • z

      private final double z
    • xd

      private final int xd
    • yd

      private final int yd
    • zd

      private final int zd
    • yRot

      private final byte yRot
    • xRot

      private final byte xRot
    • yHeadRot

      private final byte yHeadRot
  • Constructor Details

    • ClientboundAddMobPacket

      public ClientboundAddMobPacket(LivingEntity p_131545_)
    • ClientboundAddMobPacket

      public ClientboundAddMobPacket(FriendlyByteBuf p_178566_)
  • Method Details

    • write

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

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

      public int getId()
    • getUUID

      public UUID getUUID()
    • getType

      public int getType()
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • getXd

      public int getXd()
    • getYd

      public int getYd()
    • getZd

      public int getZd()
    • getyRot

      public byte getyRot()
    • getxRot

      public byte getxRot()
    • getyHeadRot

      public byte getyHeadRot()