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, setProtocolVersionclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPotionEffect, applyTheoricVelocity, getPlayerVersion, getProtocolVersion, getTargetBlock, getVelocity, getWorld, hasPlayedBefore, hasThorns, isInBoat, isSamePlayer, queuePacket, sendPacket, sendPluginMessage, setInternalWorld, setLocation, setPlayerVersion, setProtocolVersion, setSleepinggetEntityId, getLocationgetEyeLocation, getRotation, isSameId, isSameId, isSameIdpublic UUID getUniqueId()
getUniqueId in interface OfflinePlayerpublic boolean isOnGround()
isOnGround in interface EntityisOnGround in interface OfflinePlayerpublic boolean hasLineOfSight(Entity entity)
hasLineOfSight in interface Playerpublic float getWalkSpeed()
getWalkSpeed in interface Playerpublic double getMaxHealth()
getMaxHealth in interface Playerpublic float getFallDistance()
getFallDistance in interface Playerpublic GameMode getGameMode()
getGameMode in interface Playerpublic void setGameMode(GameMode gameMode)
setGameMode in interface Playerpublic boolean hasPermission(String perm)
hasPermission in interface Playerpublic int getFoodLevel()
getFoodLevel in interface Playerpublic void setFoodLevel(int foodlevel)
setFoodLevel in interface Playerpublic boolean getAllowFlight()
getAllowFlight in interface Playerpublic Entity getVehicle()
getVehicle in interface Playerpublic ItemStack getItemInHand()
getItemInHand in interface Playerpublic void sendPluginMessage(String channelId, byte[] writeMessage)
sendPluginMessage in interface Playerpublic boolean isSleeping()
isSleeping in interface Playerpublic boolean isSneaking()
isSneaking in interface Playerpublic boolean isUsingRiptide()
isUsingRiptide in interface Playerpublic double getEyeHeight()
getEyeHeight in interface EntitygetEyeHeight in interface OfflinePlayerpublic boolean hasPotionEffect(PotionEffectType type)
hasPotionEffect in interface Playerpublic List<PotionEffect> getActivePotionEffect()
getActivePotionEffect in interface Playerpublic Optional<PotionEffect> getPotionEffect(PotionEffectType type)
getPotionEffect in interface Playerpublic void removePotionEffect(PotionEffectType type)
removePotionEffect in interface Playerpublic boolean isOnline()
isOnline in interface OfflinePlayerpublic void setSneaking(boolean b)
setSneaking in interface Playerpublic void addPotionEffect(PotionEffectType type, int duration, int amplifier)
addPotionEffect in interface Playerpublic EntityType getType()
getType in interface EntitygetType in interface OfflinePlayerpublic boolean isSprinting()
isSprinting in interface Playerpublic boolean isInsideVehicle()
isInsideVehicle in interface Playerpublic float getFlySpeed()
getFlySpeed in interface Playerpublic void setSprinting(boolean b)
setSprinting in interface Playerpublic List<Entity> getNearbyEntities(double x, double y, double z)
getNearbyEntities in interface Playerpublic boolean isSwimming()
isSwimming in interface Playerpublic ItemStack getItemInOffHand()
getItemInOffHand in interface Playerpublic boolean isDead()
public PlayerInventory getInventory()
getInventory in interface Playerpublic boolean hasOpenInventory()
hasOpenInventory in interface Playerpublic Inventory getOpenInventory()
getOpenInventory in interface Playerpublic void openInventory(Inventory inv)
openInventory in interface Playerpublic void closeInventory()
closeInventory in interface Playerpublic void updateInventory()
updateInventory in interface Playerpublic void setAllowFlight(boolean b)
setAllowFlight in interface Playerpublic void setVanished(boolean vanished)
setVanished in interface Playerpublic InetSocketAddress getAddress()
getAddress in interface Playerpublic BoundingBox getBoundingBox()
getBoundingBox in interface EntitygetBoundingBox in interface OfflinePlayerpublic void sendToServer(String serverName)
sendToServer in interface Playerpublic String getServerName()
getServerName in interface Playerpublic String getName()
getName in interface CommandSenderpublic Object getDefault()
getDefault in interface NegativityObjectpublic Vector getTheoricVelocity()
getTheoricVelocity in interface Playerpublic void setVelocity(Vector vel)
setVelocity in interface Playerpublic void sendMessage(String msg)
sendMessage in interface CommandSendersendMessage in interface OfflinePlayer