public class NPacketPlayOutSpawnEntity extends Object implements NPacketPlayOut
| Modifier and Type | Field and Description |
|---|---|
int |
entityId |
UUID |
entityUUID
This field appear in 1.9
For 1.8, a random one is generated to prevent NPE |
double |
modX |
double |
modY |
double |
modZ |
float |
pitch |
EntityType |
type |
double |
x |
double |
y |
float |
yaw |
double |
z |
| Constructor and Description |
|---|
NPacketPlayOutSpawnEntity() |
| Modifier and Type | Method and Description |
|---|---|
PacketType |
getPacketType()
Get type of packet
|
void |
read(PacketSerializer serializer,
Version version)
Read packet from given serializer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, getPacketName, writepublic int entityId
public UUID entityUUID
public EntityType type
public double x
public double y
public double z
public double modX
public double modY
public double modZ
public float yaw
public float pitch
public void read(PacketSerializer serializer, Version version)
NPacketpublic PacketType getPacketType()
NPacketgetPacketType in interface NPacket