Package com.sk89q.worldguard.bukkit
Class BukkitPlayer
java.lang.Object
com.sk89q.worldedit.extension.platform.AbstractPlayerActor
com.sk89q.worldedit.bukkit.BukkitPlayer
com.sk89q.worldguard.bukkit.BukkitPlayer
- All Implemented Interfaces:
com.sk89q.worldedit.entity.Entity
,com.sk89q.worldedit.entity.Player
,com.sk89q.worldedit.extension.platform.Actor
,com.sk89q.worldedit.extension.platform.Locatable
,com.sk89q.worldedit.session.SessionOwner
,com.sk89q.worldedit.util.auth.Subject
,com.sk89q.worldedit.util.Faceted
,com.sk89q.worldedit.util.Identifiable
,com.sk89q.worldguard.LocalPlayer
,com.sk89q.worldguard.protection.association.RegionAssociable
,Cloneable
public class BukkitPlayer
extends com.sk89q.worldedit.bukkit.BukkitPlayer
implements com.sk89q.worldguard.LocalPlayer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
float
int
double
String[]
double
double
getName()
long
com.sk89q.worldedit.world.weather.WeatherType
double
boolean
boolean
hasPermission
(String perm) boolean
void
void
void
void
void
void
void
setCompassTarget
(com.sk89q.worldedit.util.Location location) void
setExhaustion
(float exhaustion) void
setFireTicks
(int fireTicks) void
setFoodLevel
(double foodLevel) void
setHealth
(double health) void
setPlayerTime
(long time, boolean relative) void
setPlayerWeather
(com.sk89q.worldedit.world.weather.WeatherType weather) void
setSaturation
(double saturation) void
Methods inherited from class com.sk89q.worldedit.bukkit.BukkitPlayer
dispatchCUIEvent, getBlockInHand, getDisplayName, getFacet, getGameMode, getInventoryBlockBag, getItemInHand, getLocale, getLocation, getPlayer, getSessionKey, getState, getUniqueId, getWorld, giveItem, isAllowedToFly, print, print, printDebug, printError, sendAnnouncements, sendFakeBlock, setFlying, setGameMode, setLocation, trySetPosition
Methods inherited from class com.sk89q.worldedit.extension.platform.AbstractPlayerActor
ascendLevel, ascendToCeiling, ascendToCeiling, ascendUpwards, ascendUpwards, canDestroyBedrock, checkPermission, clone, descendLevel, equals, findFreePosition, findFreePosition, floatAt, getBlockOn, getBlockTrace, getBlockTrace, getBlockTrace, getBlockTraceFace, getBlockTraceFace, getCardinalDirection, getCardinalDirection, getExtent, getSolidBlockTrace, hashCode, isHoldingPickAxe, isPlayer, openFileOpenDialog, openFileSaveDialog, passThroughForwardWall, remove, setOnGround, trySetPosition
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.extension.platform.Actor
canDestroyBedrock, dispatchCUIEvent, getDisplayName, getLocale, isPlayer, openFileOpenDialog, openFileSaveDialog, print, print, printDebug, printDebug, printError, printError, printInfo, sendAnnouncements
Methods inherited from interface com.sk89q.worldedit.entity.Entity
getState, remove
Methods inherited from interface com.sk89q.worldedit.util.Faceted
getFacet
Methods inherited from interface com.sk89q.worldedit.util.Identifiable
getUniqueId
Methods inherited from interface com.sk89q.worldguard.LocalPlayer
getAssociation
Methods inherited from interface com.sk89q.worldedit.extension.platform.Locatable
getBlockLocation, getExtent, getLocation, setLocation, setPosition, trySetPosition
Methods inherited from interface com.sk89q.worldedit.entity.Player
ascendLevel, ascendToCeiling, ascendToCeiling, ascendUpwards, ascendUpwards, descendLevel, findFreePosition, findFreePosition, floatAt, getBlockIn, getBlockInHand, getBlockOn, getBlockTrace, getBlockTrace, getBlockTrace, getBlockTraceFace, getBlockTraceFace, getCardinalDirection, getCardinalDirection, getGameMode, getInventoryBlockBag, getItemInHand, getSolidBlockTrace, getWorld, giveItem, isHoldingPickAxe, passThroughForwardWall, sendFakeBlock, setGameMode, setOnGround, setPosition, trySetPosition
Methods inherited from interface com.sk89q.worldedit.session.SessionOwner
getSessionKey
Methods inherited from interface com.sk89q.worldedit.util.auth.Subject
checkPermission
-
Field Details
-
plugin
-
-
Constructor Details
-
BukkitPlayer
-
-
Method Details
-
getName
- Specified by:
getName
in interfacecom.sk89q.worldedit.extension.platform.Actor
- Overrides:
getName
in classcom.sk89q.worldedit.bukkit.BukkitPlayer
-
hasGroup
- Specified by:
hasGroup
in interfacecom.sk89q.worldguard.LocalPlayer
-
kick
- Specified by:
kick
in interfacecom.sk89q.worldguard.LocalPlayer
-
ban
- Specified by:
ban
in interfacecom.sk89q.worldguard.LocalPlayer
-
getHealth
public double getHealth()- Specified by:
getHealth
in interfacecom.sk89q.worldguard.LocalPlayer
-
setHealth
public void setHealth(double health) - Specified by:
setHealth
in interfacecom.sk89q.worldguard.LocalPlayer
-
getMaxHealth
public double getMaxHealth()- Specified by:
getMaxHealth
in interfacecom.sk89q.worldguard.LocalPlayer
-
getFoodLevel
public double getFoodLevel()- Specified by:
getFoodLevel
in interfacecom.sk89q.worldguard.LocalPlayer
-
setFoodLevel
public void setFoodLevel(double foodLevel) - Specified by:
setFoodLevel
in interfacecom.sk89q.worldguard.LocalPlayer
-
getSaturation
public double getSaturation()- Specified by:
getSaturation
in interfacecom.sk89q.worldguard.LocalPlayer
-
setSaturation
public void setSaturation(double saturation) - Specified by:
setSaturation
in interfacecom.sk89q.worldguard.LocalPlayer
-
getExhaustion
public float getExhaustion()- Specified by:
getExhaustion
in interfacecom.sk89q.worldguard.LocalPlayer
-
setExhaustion
public void setExhaustion(float exhaustion) - Specified by:
setExhaustion
in interfacecom.sk89q.worldguard.LocalPlayer
-
getPlayerWeather
public com.sk89q.worldedit.world.weather.WeatherType getPlayerWeather()- Specified by:
getPlayerWeather
in interfacecom.sk89q.worldguard.LocalPlayer
-
setPlayerWeather
public void setPlayerWeather(com.sk89q.worldedit.world.weather.WeatherType weather) - Specified by:
setPlayerWeather
in interfacecom.sk89q.worldguard.LocalPlayer
-
resetPlayerWeather
public void resetPlayerWeather()- Specified by:
resetPlayerWeather
in interfacecom.sk89q.worldguard.LocalPlayer
-
isPlayerTimeRelative
public boolean isPlayerTimeRelative()- Specified by:
isPlayerTimeRelative
in interfacecom.sk89q.worldguard.LocalPlayer
-
getPlayerTimeOffset
public long getPlayerTimeOffset()- Specified by:
getPlayerTimeOffset
in interfacecom.sk89q.worldguard.LocalPlayer
-
setPlayerTime
public void setPlayerTime(long time, boolean relative) - Specified by:
setPlayerTime
in interfacecom.sk89q.worldguard.LocalPlayer
-
resetPlayerTime
public void resetPlayerTime()- Specified by:
resetPlayerTime
in interfacecom.sk89q.worldguard.LocalPlayer
-
getFireTicks
public int getFireTicks()- Specified by:
getFireTicks
in interfacecom.sk89q.worldguard.LocalPlayer
-
setFireTicks
public void setFireTicks(int fireTicks) - Specified by:
setFireTicks
in interfacecom.sk89q.worldguard.LocalPlayer
-
setCompassTarget
public void setCompassTarget(com.sk89q.worldedit.util.Location location) - Specified by:
setCompassTarget
in interfacecom.sk89q.worldguard.LocalPlayer
-
sendTitle
- Specified by:
sendTitle
in interfacecom.sk89q.worldguard.LocalPlayer
-
resetFallDistance
public void resetFallDistance()- Specified by:
resetFallDistance
in interfacecom.sk89q.worldguard.LocalPlayer
-
teleport
public void teleport(com.sk89q.worldedit.util.Location location, String successMessage, String failMessage) - Specified by:
teleport
in interfacecom.sk89q.worldguard.LocalPlayer
-
getGroups
- Specified by:
getGroups
in interfacecom.sk89q.worldedit.util.auth.Subject
- Overrides:
getGroups
in classcom.sk89q.worldedit.bukkit.BukkitPlayer
-
printRaw
- Specified by:
printRaw
in interfacecom.sk89q.worldedit.extension.platform.Actor
- Overrides:
printRaw
in classcom.sk89q.worldedit.bukkit.BukkitPlayer
-
hasPermission
- Specified by:
hasPermission
in interfacecom.sk89q.worldedit.util.auth.Subject
- Overrides:
hasPermission
in classcom.sk89q.worldedit.bukkit.BukkitPlayer
-