public class SpigotFakePlayer extends AbstractEntity implements FakePlayer
| Constructor and Description |
|---|
SpigotFakePlayer(Location loc,
String name)
Create a new fake player
|
SpigotFakePlayer(Location loc,
String name,
UUID uuid)
Create a new fake player
|
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
getBoundingBox() |
Object |
getDefault() |
String |
getEntityId() |
Object |
getEntityPlayer()
Get the NMS entity player, but as object for compatibility
|
double |
getEyeHeight() |
Location |
getEyeLocation() |
Object |
getGameProfile()
Get the NMS game profile as object for compatibility
|
Location |
getLocation() |
String |
getName() |
Vector |
getRotation() |
Vector |
getTheoricVelocity() |
UUID |
getUUID() |
World |
getWorld() |
void |
hide(Player pl) |
boolean |
isDead() |
boolean |
isOnGround() |
boolean |
isOp() |
static void |
loadClass()
Called at startup.
|
void |
setVelocity(Vector vel) |
void |
show(Player pl) |
applyTheoricVelocity, getTargetBlock, getVelocity, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetType, sendMessageapplyTheoricVelocity, getTargetBlock, getVelocity, isSameId, isSameIdpublic SpigotFakePlayer(Location loc, String name)
loc - the fake player's locationname - the fake player namepublic void show(Player pl)
show in interface FakePlayerpublic void hide(Player pl)
hide in interface FakePlayerpublic String getEntityId()
getEntityId in interface Entitypublic Object getEntityPlayer()
public Location getLocation()
getLocation in interface Entitypublic Object getGameProfile()
public UUID getUUID()
getUUID in interface FakePlayerpublic static void loadClass()
public boolean isOnGround()
isOnGround in interface Entitypublic double getEyeHeight()
getEyeHeight in interface Entitypublic Location getEyeLocation()
getEyeLocation in interface Entitypublic Vector getRotation()
getRotation in interface Entitypublic Vector getTheoricVelocity()
getTheoricVelocity in interface Entitypublic void setVelocity(Vector vel)
setVelocity in interface Entitypublic String getName()
getName in interface CommandSenderpublic Object getDefault()
getDefault in interface NegativityObjectpublic BoundingBox getBoundingBox()
getBoundingBox in interface Entity