Class SpawnMobMessage
java.lang.Object
net.glowstone.net.message.play.entity.SpawnMobMessage
- All Implemented Interfaces:
com.flowpowered.network.Message
-
Constructor Summary
ConstructorDescriptionSpawnMobMessage
(int id, UUID uuid, int type, double x, double y, double z, int rotation, int pitch, int headPitch, int velX, int velY, int velZ, List<MetadataMap.Entry> metadata) SpawnMobMessage
(int id, UUID uuid, int type, org.bukkit.Location location, List<MetadataMap.Entry> metadata) Creates an instance based on aLocation
, with headPitch equal to pitch and with zero velocity. -
Method Summary
-
Constructor Details
-
SpawnMobMessage
public SpawnMobMessage(int id, UUID uuid, int type, org.bukkit.Location location, List<MetadataMap.Entry> metadata) Creates an instance based on aLocation
, with headPitch equal to pitch and with zero velocity.- Parameters:
id
- the mob's ID within the worlduuid
- the mob's UUIDtype
- the mob's network type IDlocation
- the mob's position, pitch and yawmetadata
- the mob's metadata
-
SpawnMobMessage
public SpawnMobMessage(int id, UUID uuid, int type, double x, double y, double z, int rotation, int pitch, int headPitch, int velX, int velY, int velZ, List<MetadataMap.Entry> metadata)
-
-
Method Details
-
getId
public int getId() -
getUuid
-
getType
public int getType() -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getRotation
public int getRotation() -
getPitch
public int getPitch() -
getHeadPitch
public int getHeadPitch() -
getVelX
public int getVelX() -
getVelY
public int getVelY() -
getVelZ
public int getVelZ() -
getMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-