public class SpigotPlayer extends AbstractPlayer implements Player
location, playerVersion, protocolVersion, velocity, world
Constructor and Description |
---|
SpigotPlayer(org.bukkit.entity.Player p) |
applyTheoricVelocity, equals, getLocation, getPlayerVersion, getProtocolVersion, getTargetBlock, getVelocity, getWorld, init, setInternalWorld, setLocation, setPlayerVersion, setProtocolVersion
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPotionEffect, applyTheoricVelocity, getPlayerVersion, getProtocolVersion, getTargetBlock, getVelocity, getWorld, hasPlayedBefore, hasThorns, isInBoat, isSamePlayer, queuePacket, sendPacket, sendPluginMessage, setInternalWorld, setLocation, setPlayerVersion, setProtocolVersion, setSleeping
getEntityId, getLocation
getEyeLocation, getRotation, isSameId, isSameId, isSameId
public UUID getUniqueId()
getUniqueId
in interface OfflinePlayer
public boolean isOnGround()
isOnGround
in interface Entity
isOnGround
in interface OfflinePlayer
public boolean hasLineOfSight(Entity entity)
hasLineOfSight
in interface Player
public float getWalkSpeed()
getWalkSpeed
in interface Player
public double getMaxHealth()
getMaxHealth
in interface Player
public float getFallDistance()
getFallDistance
in interface Player
public GameMode getGameMode()
getGameMode
in interface Player
public void setGameMode(GameMode gameMode)
setGameMode
in interface Player
public boolean hasPermission(String perm)
hasPermission
in interface Player
public int getFoodLevel()
getFoodLevel
in interface Player
public void setFoodLevel(int foodlevel)
setFoodLevel
in interface Player
public boolean getAllowFlight()
getAllowFlight
in interface Player
public Entity getVehicle()
getVehicle
in interface Player
public ItemStack getItemInHand()
getItemInHand
in interface Player
public void sendPluginMessage(String channelId, byte[] writeMessage)
sendPluginMessage
in interface Player
public boolean isSleeping()
isSleeping
in interface Player
public boolean isSneaking()
isSneaking
in interface Player
public boolean isUsingRiptide()
isUsingRiptide
in interface Player
public double getEyeHeight()
getEyeHeight
in interface Entity
getEyeHeight
in interface OfflinePlayer
public boolean hasPotionEffect(PotionEffectType type)
hasPotionEffect
in interface Player
public List<PotionEffect> getActivePotionEffect()
getActivePotionEffect
in interface Player
public Optional<PotionEffect> getPotionEffect(PotionEffectType type)
getPotionEffect
in interface Player
public void removePotionEffect(PotionEffectType type)
removePotionEffect
in interface Player
public boolean isOnline()
isOnline
in interface OfflinePlayer
public void setSneaking(boolean b)
setSneaking
in interface Player
public void addPotionEffect(PotionEffectType type, int duration, int amplifier)
addPotionEffect
in interface Player
public EntityType getType()
getType
in interface Entity
getType
in interface OfflinePlayer
public boolean isSprinting()
isSprinting
in interface Player
public boolean isInsideVehicle()
isInsideVehicle
in interface Player
public float getFlySpeed()
getFlySpeed
in interface Player
public void setSprinting(boolean b)
setSprinting
in interface Player
public List<Entity> getNearbyEntities(double x, double y, double z)
getNearbyEntities
in interface Player
public boolean isSwimming()
isSwimming
in interface Player
public ItemStack getItemInOffHand()
getItemInOffHand
in interface Player
public boolean isDead()
public PlayerInventory getInventory()
getInventory
in interface Player
public boolean hasOpenInventory()
hasOpenInventory
in interface Player
public Inventory getOpenInventory()
getOpenInventory
in interface Player
public void openInventory(Inventory inv)
openInventory
in interface Player
public void closeInventory()
closeInventory
in interface Player
public void updateInventory()
updateInventory
in interface Player
public void setAllowFlight(boolean b)
setAllowFlight
in interface Player
public void setVanished(boolean vanished)
setVanished
in interface Player
public InetSocketAddress getAddress()
getAddress
in interface Player
public BoundingBox getBoundingBox()
getBoundingBox
in interface Entity
getBoundingBox
in interface OfflinePlayer
public void sendToServer(String serverName)
sendToServer
in interface Player
public String getServerName()
getServerName
in interface Player
public String getName()
getName
in interface CommandSender
public Object getDefault()
getDefault
in interface NegativityObject
public Vector getTheoricVelocity()
getTheoricVelocity
in interface Player
public void setVelocity(Vector vel)
setVelocity
in interface Player
public void sendMessage(String msg)
sendMessage
in interface CommandSender
sendMessage
in interface OfflinePlayer