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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getType, sendMessage
applyTheoricVelocity, getTargetBlock, getVelocity, isSameId, isSameId
public SpigotFakePlayer(Location loc, String name)
loc
- the fake player's locationname
- the fake player namepublic void show(Player pl)
show
in interface FakePlayer
public void hide(Player pl)
hide
in interface FakePlayer
public String getEntityId()
getEntityId
in interface Entity
public Object getEntityPlayer()
public Location getLocation()
getLocation
in interface Entity
public Object getGameProfile()
public UUID getUUID()
getUUID
in interface FakePlayer
public static void loadClass()
public boolean isOnGround()
isOnGround
in interface Entity
public double getEyeHeight()
getEyeHeight
in interface Entity
public Location getEyeLocation()
getEyeLocation
in interface Entity
public Vector getRotation()
getRotation
in interface Entity
public Vector getTheoricVelocity()
getTheoricVelocity
in interface Entity
public void setVelocity(Vector vel)
setVelocity
in interface Entity
public String getName()
getName
in interface CommandSender
public Object getDefault()
getDefault
in interface NegativityObject
public BoundingBox getBoundingBox()
getBoundingBox
in interface Entity