public class SPacketSpawnObject extends java.lang.Object implements Packet<INetHandlerPlayClient>
Modifier and Type | Field and Description |
---|---|
private int |
data |
private int |
entityId |
private int |
pitch |
private int |
speedX |
private int |
speedY |
private int |
speedZ |
private int |
type |
private java.util.UUID |
uniqueId |
private double |
x |
private double |
y |
private int |
yaw |
private double |
z |
Constructor and Description |
---|
SPacketSpawnObject() |
SPacketSpawnObject(Entity entityIn,
int typeIn) |
SPacketSpawnObject(Entity entityIn,
int typeIn,
int dataIn) |
SPacketSpawnObject(Entity entityIn,
int typeIn,
int dataIn,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
int |
getData() |
int |
getEntityID() |
int |
getPitch() |
int |
getSpeedX() |
int |
getSpeedY() |
int |
getSpeedZ() |
int |
getType() |
java.util.UUID |
getUniqueId() |
double |
getX() |
double |
getY() |
int |
getYaw() |
double |
getZ() |
void |
processPacket(INetHandlerPlayClient handler) |
void |
readPacketData(PacketBuffer buf) |
void |
setData(int dataIn) |
void |
setSpeedX(int newSpeedX) |
void |
setSpeedY(int newSpeedY) |
void |
setSpeedZ(int newSpeedZ) |
void |
writePacketData(PacketBuffer buf) |
private int entityId
private java.util.UUID uniqueId
private double x
private double y
private double z
private int speedX
private int speedY
private int speedZ
private int pitch
private int yaw
private int type
private int data
public SPacketSpawnObject()
public SPacketSpawnObject(Entity entityIn, int typeIn)
public SPacketSpawnObject(Entity entityIn, int typeIn, int dataIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>
public int getEntityID()
public void setSpeedX(int newSpeedX)
public java.util.UUID getUniqueId()
public void setSpeedY(int newSpeedY)
public double getX()
public void setSpeedZ(int newSpeedZ)
public double getY()
public double getZ()
public int getSpeedX()
public int getSpeedY()
public int getSpeedZ()
public int getPitch()
public int getYaw()
public int getType()
public int getData()
public void setData(int dataIn)