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 Summary
-
Constructor Summary
Constructors Constructor Description MobSpawnS2CPacket()MobSpawnS2CPacket(LivingEntity entity) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)intgetEntityTypeId()bytegetHeadYaw()intgetId()bytegetPitch()UUIDgetUuid()intgetVelocityX()intgetVelocityY()intgetVelocityZ()doublegetX()doublegetY()bytegetYaw()doublegetZ()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
id
private int id -
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
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getId
@Environment(CLIENT) public int getId() -
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()
-