Class SpawnEntityMessage
java.lang.Object
net.glowstone.net.message.play.entity.SpawnEntityMessage
- All Implemented Interfaces:
com.flowpowered.network.Message
-
Constructor Summary
ConstructorDescriptionSpawnEntityMessage
(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw) SpawnEntityMessage
(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int headYaw) SpawnEntityMessage
(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int data, int headYaw) SpawnEntityMessage
(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int headYaw, int data, int velX, int velY, int velZ) SpawnEntityMessage
(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int headYaw, int data, org.bukkit.util.Vector vector) SpawnEntityMessage
(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int data, org.bukkit.util.Vector vector) SpawnEntityMessage
(int id, UUID uuid, int type, org.bukkit.Location location) Create an instance based on a location.SpawnEntityMessage
(int id, UUID uuid, int type, org.bukkit.Location location, int data) Create an instance based on a location. -
Method Summary
-
Constructor Details
-
SpawnEntityMessage
public SpawnEntityMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int headYaw) -
SpawnEntityMessage
public SpawnEntityMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw) -
SpawnEntityMessage
public SpawnEntityMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int data, int headYaw) -
SpawnEntityMessage
Create an instance based on a location.- Parameters:
id
- the entity iduuid
- the entity UUIDtype
- the network ID of the entity typelocation
- The location whose x, y, z, pitch and yaw will be used
-
SpawnEntityMessage
Create an instance based on a location.- Parameters:
id
- the entity iduuid
- the entity UUIDtype
- the network ID of the entity typelocation
- the location whose x, y, z, pitch and yaw will be useddata
- as defined by the entity type
-
SpawnEntityMessage
public SpawnEntityMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int data, org.bukkit.util.Vector vector) -
SpawnEntityMessage
public SpawnEntityMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int headYaw, int data, org.bukkit.util.Vector vector) -
SpawnEntityMessage
public SpawnEntityMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int headYaw, int data, int velX, int velY, int velZ)
-
-
Method Details
-
hasData
public boolean hasData() -
getId
public int getId() -
getUuid
-
getType
public int getType() -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getPitch
public int getPitch() -
getYaw
public int getYaw() -
getHeadYaw
public int getHeadYaw() -
getData
public int getData() -
getVelX
public int getVelX() -
getVelY
public int getVelY() -
getVelZ
public int getVelZ() -
equals
-
hashCode
public int hashCode() -
toString
-