public class BukkitPlayer extends BukkitEntity implements AbstractPlayer
Constructor and Description |
---|
BukkitPlayer(org.bukkit.entity.Player p) |
Modifier and Type | Method and Description |
---|---|
boolean |
canSee(AbstractPlayer target) |
boolean |
getAllowFlight() |
float |
getExperience() |
int |
getFoodLevel() |
float |
getFoodSaturation() |
int |
getLevel() |
boolean |
hasPermission(String perm) |
void |
hidePlayer(AbstractPlayer target) |
boolean |
isInCreativeMode() |
boolean |
isInSpectatorMode() |
boolean |
isOnline() |
void |
resetPersonalTime() |
void |
resetPersonalWeather() |
void |
sendActionBarMessage(String message) |
void |
sendMessage(String message) |
void |
setAllowFlight(boolean b) |
void |
setExperience(float exp) |
void |
setFlying(boolean b) |
void |
setFlyingSpeed(float f) |
void |
setFoodLevel(int amount) |
void |
setFoodSaturation(float amount) |
void |
setGameMode(AbstractGameMode mode) |
void |
setHealthScale(double scale) |
void |
setHealthScaled(boolean scale) |
void |
setLevel(int level) |
void |
setPersonalTime(long time,
boolean relative) |
void |
setPersonalWeather(String type) |
void |
setWalkSpeed(float f) |
void |
showPlayer(AbstractPlayer target) |
addPotionEffect, addScoreboardTag, asPlayer, damage, eject, equals, equipItemChest, equipItemFeet, equipItemHead, equipItemLegs, equipItemMainHand, equipItemOffHand, getBukkitEntity, getCustomName, getDamage, getEnchantmentLevel, getEnchantmentLevelHeld, getEntityAsPlayer, getEyeHeight, getEyeLocation, getHealth, getLocation, getLuck, getMaxHealth, getMetadata, getName, getPassenger, getTarget, getUniqueId, getVehicle, getVelocity, getWorld, hasAI, hasGravity, hashCode, hasLineOfSight, hasMetadata, hasPotionEffect, hasPotionEffect, hasPotionEffect, hasScoreboardTag, isAnimal, isCitizensNPC, isCreature, isDead, isFlyingMob, isGliding, isLiving, isLoaded, isMonster, isOnGround, isPlayer, isValid, isWaterMob, remove, removeMetadata, removeScoreboardTag, setAI, setAttackSpeed, setDamage, setFireTicks, setGravity, setHealth, setMaxHealth, setMetadata, setMovementSpeed, setNoDamageTicks, setPassenger, setPassenger, setVelocity, teleport
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addPotionEffect, addScoreboardTag, asPlayer, damage, eject, equipItemChest, equipItemFeet, equipItemHead, equipItemLegs, equipItemMainHand, equipItemOffHand, getBukkitEntity, getCustomName, getEnchantmentLevel, getEnchantmentLevelHeld, getEyeHeight, getEyeLocation, getHealth, getLocation, getLuck, getMaxHealth, getMetadata, getName, getPassenger, getTarget, getUniqueId, getVehicle, getVelocity, getWorld, hasAI, hasGravity, hasLineOfSight, hasMetadata, hasPotionEffect, hasPotionEffect, hasPotionEffect, hasScoreboardTag, isAnimal, isCitizensNPC, isCreature, isDead, isFlyingMob, isGliding, isLiving, isLoaded, isMonster, isOnGround, isPlayer, isValid, isWaterMob, remove, removeMetadata, removeScoreboardTag, setAI, setAttackSpeed, setDamage, setFireTicks, setGravity, setHealth, setMaxHealth, setMetadata, setMovementSpeed, setNoDamageTicks, setPassenger, setPassenger, setVelocity, teleport
public boolean isInCreativeMode()
isInCreativeMode
in interface AbstractPlayer
public boolean isInSpectatorMode()
isInSpectatorMode
in interface AbstractPlayer
public void sendMessage(String message)
sendMessage
in interface AbstractPlayer
public void sendActionBarMessage(String message)
sendActionBarMessage
in interface AbstractPlayer
public boolean hasPermission(String perm)
hasPermission
in interface AbstractPlayer
public float getExperience()
getExperience
in interface AbstractPlayer
public void setExperience(float exp)
setExperience
in interface AbstractPlayer
public void hidePlayer(AbstractPlayer target)
hidePlayer
in interface AbstractPlayer
public void showPlayer(AbstractPlayer target)
showPlayer
in interface AbstractPlayer
public boolean canSee(AbstractPlayer target)
canSee
in interface AbstractPlayer
public boolean isOnline()
isOnline
in interface AbstractPlayer
public int getLevel()
getLevel
in interface AbstractPlayer
public void setLevel(int level)
setLevel
in interface AbstractPlayer
public void setHealthScale(double scale)
setHealthScale
in interface AbstractPlayer
public void setHealthScaled(boolean scale)
setHealthScaled
in interface AbstractPlayer
public void setPersonalTime(long time, boolean relative)
setPersonalTime
in interface AbstractPlayer
public void resetPersonalTime()
resetPersonalTime
in interface AbstractPlayer
public void setPersonalWeather(String type)
setPersonalWeather
in interface AbstractPlayer
public void resetPersonalWeather()
resetPersonalWeather
in interface AbstractPlayer
public void setAllowFlight(boolean b)
setAllowFlight
in interface AbstractPlayer
public boolean getAllowFlight()
getAllowFlight
in interface AbstractPlayer
public void setFlying(boolean b)
setFlying
in interface AbstractPlayer
public void setFlyingSpeed(float f)
setFlyingSpeed
in interface AbstractPlayer
public void setWalkSpeed(float f)
setWalkSpeed
in interface AbstractPlayer
public int getFoodLevel()
getFoodLevel
in interface AbstractPlayer
public void setFoodLevel(int amount)
setFoodLevel
in interface AbstractPlayer
public float getFoodSaturation()
getFoodSaturation
in interface AbstractPlayer
public void setFoodSaturation(float amount)
setFoodSaturation
in interface AbstractPlayer
public void setGameMode(AbstractGameMode mode)
setGameMode
in interface AbstractPlayer
Copyright © 2020. All rights reserved.