public final class SpawnMobMessage extends Object implements com.flowpowered.network.Message
Constructor and Description |
---|
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) |
SpawnMobMessage(int id,
UUID uuid,
int type,
org.bukkit.Location location,
List<MetadataMap.Entry> metadata)
Creates an instance based on a
Location , with headPitch equal to pitch and with zero
velocity. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getHeadPitch() |
int |
getId() |
List<MetadataMap.Entry> |
getMetadata() |
int |
getPitch() |
int |
getRotation() |
int |
getType() |
UUID |
getUuid() |
int |
getVelX() |
int |
getVelY() |
int |
getVelZ() |
double |
getX() |
double |
getY() |
double |
getZ() |
int |
hashCode() |
String |
toString() |
public SpawnMobMessage(int id, UUID uuid, int type, org.bukkit.Location location, List<MetadataMap.Entry> metadata)
Location
, with headPitch equal to pitch and with zero
velocity.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 metadatapublic 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)
public int getId()
public UUID getUuid()
public int getType()
public double getX()
public double getY()
public double getZ()
public int getRotation()
public int getPitch()
public int getHeadPitch()
public int getVelX()
public int getVelY()
public int getVelZ()
public List<MetadataMap.Entry> getMetadata()
public boolean equals(Object o)
public int hashCode()
Copyright © 2021. All rights reserved.