Class MobSpawnS2CPacket

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

public class MobSpawnS2CPacket
extends Object
implements Packet<ClientPlayPacketListener>
  • Field Details

    • id

      private int id
    • uuid

      private UUID uuid
    • entityTypeId

      private int entityTypeId
    • x

      private double x
    • y

      private double y
    • z

      private double z
    • velocityX

      private int velocityX
    • velocityY

      private int velocityY
    • velocityZ

      private int velocityZ
    • yaw

      private byte yaw
    • pitch

      private byte pitch
    • headYaw

      private byte headYaw
  • Constructor Details

    • MobSpawnS2CPacket

      public MobSpawnS2CPacket()
    • MobSpawnS2CPacket

      public MobSpawnS2CPacket​(LivingEntity entity)
  • Method Details

    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
    • apply

      public void apply​(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
    • getId

      @Environment(CLIENT) public int getId()
    • getUuid

      @Environment(CLIENT) public UUID getUuid()
    • getEntityTypeId

      @Environment(CLIENT) public int getEntityTypeId()
    • getX

      @Environment(CLIENT) public double getX()
    • getY

      @Environment(CLIENT) public double getY()
    • getZ

      @Environment(CLIENT) public double getZ()
    • getVelocityX

      @Environment(CLIENT) public int getVelocityX()
    • getVelocityY

      @Environment(CLIENT) public int getVelocityY()
    • getVelocityZ

      @Environment(CLIENT) public int getVelocityZ()
    • getYaw

      @Environment(CLIENT) public byte getYaw()
    • getPitch

      @Environment(CLIENT) public byte getPitch()
    • getHeadYaw

      @Environment(CLIENT) public byte getHeadYaw()