Class SpawnObjectMessage
java.lang.Object
net.glowstone.net.message.play.entity.SpawnObjectMessage
- All Implemented Interfaces:
com.flowpowered.network.Message
-
Constructor Summary
ConstructorDescriptionSpawnObjectMessage
(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw) SpawnObjectMessage
(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int data) SpawnObjectMessage
(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int data, int velX, int velY, int velZ) SpawnObjectMessage
(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int data, org.bukkit.util.Vector vector) SpawnObjectMessage
(int id, UUID uuid, int type, org.bukkit.Location location) Create an instance based on a location.SpawnObjectMessage
(int id, UUID uuid, int type, org.bukkit.Location location, int data) Create an instance based on a location. -
Method Summary
-
Constructor Details
-
SpawnObjectMessage
public SpawnObjectMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw) -
SpawnObjectMessage
public SpawnObjectMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int data) -
SpawnObjectMessage
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
-
SpawnObjectMessage
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
-
SpawnObjectMessage
public SpawnObjectMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int data, org.bukkit.util.Vector vector) -
SpawnObjectMessage
public SpawnObjectMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, 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() -
getData
public int getData() -
getVelX
public int getVelX() -
getVelY
public int getVelY() -
getVelZ
public int getVelZ() -
equals
-
hashCode
public int hashCode() -
toString
-