|
| String | getDisplayName () |
| | Gets the "friendly" name to display of this player.
|
| |
| void | setDisplayName (String name) |
| | Sets the "friendly" name to display of this player.
|
| |
| String | getPlayerListName () |
| | Gets the name that is shown on the player list.
|
| |
| void | setPlayerListName (String name) |
| | Sets the name that is shown on the in-game player list.
|
| |
| void | setCompassTarget (Location loc) |
| | Set the target of the player's compass.
|
| |
| Location | getCompassTarget () |
| | Get the previously set compass target.
|
| |
| InetSocketAddress | getAddress () |
| | Gets the socket address of this player.
|
| |
| void | sendRawMessage (String message) |
| | Sends this sender a message raw.
|
| |
| void | kickPlayer (String message) |
| | Kicks player with custom kick message.
|
| |
| void | chat (String msg) |
| | Says a message (or runs a command).
|
| |
| boolean | performCommand (String command) |
| | Makes the player perform the given command.
|
| |
| boolean | isSneaking () |
| | Returns if the player is in sneak mode.
|
| |
| void | setSneaking (boolean sneak) |
| | Sets the sneak mode the player.
|
| |
| boolean | isSprinting () |
| | Gets whether the player is sprinting or not.
|
| |
| void | setSprinting (boolean sprinting) |
| | Sets whether the player is sprinting or not.
|
| |
| void | saveData () |
| | Saves the players current location, health, inventory, motion, and other information into the username.dat file, in the world/player folder.
|
| |
| void | loadData () |
| | Loads the players current location, health, inventory, motion, and other information from the username.dat file, in the world/player folder.
|
| |
| void | setSleepingIgnored (boolean isSleeping) |
| | Sets whether the player is ignored as not sleeping.
|
| |
| boolean | isSleepingIgnored () |
| | Returns whether the player is sleeping ignored.
|
| |
| void | playNote (Location loc, byte instrument, byte note) |
| | Play a note for a player at a location.
|
| |
| void | playNote (Location loc, Instrument instrument, Note note) |
| | Play a note for a player at a location.
|
| |
| void | playSound (Location location, Sound sound, float volume, float pitch) |
| | Play a sound for a player at the location.
|
| |
| void | playEffect (Location loc, Effect effect, int data) |
| | Plays an effect to just this player.
|
| |
| public< T > void | playEffect (Location loc, Effect effect, T data) |
| | Plays an effect to just this player.
|
| |
| void | sendBlockChange (Location loc, Material material, byte data) |
| | Send a block change.
|
| |
| boolean | sendChunkChange (Location loc, int sx, int sy, int sz, byte[] data) |
| | Send a chunk change.
|
| |
| void | sendBlockChange (Location loc, int material, byte data) |
| | Send a block change.
|
| |
| void | sendMap (MapView map) |
| | Render a map and send it to the player in its entirety.
|
| |
| void | updateInventory () |
| | Forces an update of the player's entire inventory.
|
| |
| void | awardAchievement (Achievement achievement) |
| | Awards this player the given achievement.
|
| |
| void | incrementStatistic (Statistic statistic) |
| | Increments the given statistic for this player.
|
| |
| void | incrementStatistic (Statistic statistic, int amount) |
| | Increments the given statistic for this player.
|
| |
| void | incrementStatistic (Statistic statistic, Material material) |
| | Increments the given statistic for this player for the given material.
|
| |
| void | incrementStatistic (Statistic statistic, Material material, int amount) |
| | Increments the given statistic for this player for the given material.
|
| |
| void | setPlayerTime (long time, boolean relative) |
| | Sets the current time on the player's client.
|
| |
| long | getPlayerTime () |
| | Returns the player's current timestamp.
|
| |
| long | getPlayerTimeOffset () |
| | Returns the player's current time offset relative to server time, or the current player's fixed time if the player's time is absolute.
|
| |
| boolean | isPlayerTimeRelative () |
| | Returns true if the player's time is relative to the server time, otherwise the player's time is absolute and will not change its current time unless done so with setPlayerTime().
|
| |
| void | resetPlayerTime () |
| | Restores the normal condition where the player's time is synchronized with the server time.
|
| |
| void | giveExp (int amount) |
| | Gives the player the amount of experience specified.
|
| |
| void | giveExpLevels (int amount) |
| | Gives the player the amount of experience levels specified.
|
| |
| float | getExp () |
| | Gets the players current experience points towards the next level.
|
| |
| void | setExp (float exp) |
| | Sets the players current experience points towards the next level.
|
| |
| int | getLevel () |
| | Gets the players current experience level.
|
| |
| void | setLevel (int level) |
| | Sets the players current experience level.
|
| |
| int | getTotalExperience () |
| | Gets the players total experience points.
|
| |
| void | setTotalExperience (int exp) |
| | Sets the players current experience level.
|
| |
| float | getExhaustion () |
| | Gets the players current exhaustion level.
|
| |
| void | setExhaustion (float value) |
| | Sets the players current exhaustion level.
|
| |
| float | getSaturation () |
| | Gets the players current saturation level.
|
| |
| void | setSaturation (float value) |
| | Sets the players current saturation level.
|
| |
| int | getFoodLevel () |
| | Gets the players current food level.
|
| |
| void | setFoodLevel (int value) |
| | Sets the players current food level.
|
| |
| Location | getBedSpawnLocation () |
| | Gets the Location where the player will spawn at their bed, null if they have not slept in one or their current bed spawn is invalid.
|
| |
| void | setBedSpawnLocation (Location location) |
| | Sets the Location where the player will spawn at their bed.
|
| |
| void | setBedSpawnLocation (Location location, boolean force) |
| | Sets the Location where the player will spawn at their bed.
|
| |
| boolean | getAllowFlight () |
| | Determines if the Player is allowed to fly via jump key double-tap like in creative mode.
|
| |
| void | setAllowFlight (boolean flight) |
| | Sets if the Player is allowed to fly via jump key double-tap like in creative mode.
|
| |
| void | hidePlayer (Player player) |
| | Hides a player from this player.
|
| |
| void | showPlayer (Player player) |
| | Allows this player to see a player that was previously hidden.
|
| |
| boolean | canSee (Player player) |
| | Checks to see if a player has been hidden from this player.
|
| |
| boolean | isFlying () |
| | Checks to see if this player is currently flying or not.
|
| |
| void | setFlying (boolean value) |
| | Makes this player start or stop flying.
|
| |
| void | setFlySpeed (float value) throws IllegalArgumentException |
| | Sets the speed at which a client will fly.
|
| |
| void | setWalkSpeed (float value) throws IllegalArgumentException |
| | Sets the speed at which a client will walk.
|
| |
| float | getFlySpeed () |
| | Gets the current allowed speed that a client can fly.
|
| |
| float | getWalkSpeed () |
| | Gets the current allowed speed that a client can walk.
|
| |
| void | setTexturePack (String url) |
| | Request that the player's client download and switch texture packs.
|
| |
| String | getName () |
| | Returns the name of this player.
|
| |
| PlayerInventory | getInventory () |
| | Get the player's inventory.
|
| |
| Inventory | getEnderChest () |
| | Get the player's EnderChest inventory.
|
| |
| boolean | setWindowProperty (InventoryView.Property prop, int value) |
| | If the player currently has an inventory window open, this method will set a property of that window, such as the state of a progress bar.
|
| |
| InventoryView | getOpenInventory () |
| | Gets the inventory view the player is currently viewing.
|
| |
| InventoryView | openInventory (Inventory inventory) |
| | Opens an inventory window with the specified inventory on the top and the player's inventory on the bottom.
|
| |
| InventoryView | openWorkbench (Location location, boolean force) |
| | Opens an empty workbench inventory window with the player's inventory on the bottom.
|
| |
| InventoryView | openEnchanting (Location location, boolean force) |
| | Opens an empty enchanting inventory window with the player's inventory on the bottom.
|
| |
| void | openInventory (InventoryView inventory) |
| | Opens an inventory window to the specified inventory view.
|
| |
| void | closeInventory () |
| | Force-closes the currently open inventory view for this player, if any.
|
| |
| ItemStack | getItemInHand () |
| | Returns the ItemStack currently in your hand, can be empty.
|
| |
| void | setItemInHand (ItemStack item) |
| | Sets the item to the given ItemStack, this will replace whatever the user was holding.
|
| |
| ItemStack | getItemOnCursor () |
| | Returns the ItemStack currently on your cursor, can be empty.
|
| |
| void | setItemOnCursor (ItemStack item) |
| | Sets the item to the given ItemStack, this will replace whatever the user was moving.
|
| |
| boolean | isSleeping () |
| | Returns whether this player is slumbering.
|
| |
| int | getSleepTicks () |
| | Get the sleep ticks of the player.
|
| |
| GameMode | getGameMode () |
| | Gets this humans current GameMode.
|
| |
| void | setGameMode (GameMode mode) |
| | Sets this humans current GameMode.
|
| |
| boolean | isBlocking () |
| | Check if the player is currently blocking (ie with a sword).
|
| |
| int | getExpToLevel () |
| | Get the total amount of experience required for the player to level.
|
| |
| double | getEyeHeight () |
| | Gets the height of the entity's head above its Location.
|
| |
| double | getEyeHeight (boolean ignoreSneaking) |
| | Gets the height of the entity's head above its Location.
|
| |
| Location | getEyeLocation () |
| | Get a Location detailing the current eye position of the LivingEntity.
|
| |
| List< Block > | getLineOfSight (HashSet< Byte > transparent, int maxDistance) |
| | Gets all blocks along the player's line of sight List iterates from player's position to target inclusive.
|
| |
| Block | getTargetBlock (HashSet< Byte > transparent, int maxDistance) |
| | Gets the block that the player has targeted.
|
| |
| List< Block > | getLastTwoTargetBlocks (HashSet< Byte > transparent, int maxDistance) |
| | Gets the last two blocks along the player's line of sight.
|
| |
| Egg | throwEgg () |
| | Throws an egg from the entity.
|
| |
| Snowball | throwSnowball () |
| | Throws a snowball from the entity.
|
| |
| Arrow | shootArrow () |
| | Shoots an arrow from the entity.
|
| |
| public< T extends Projectile > T | launchProjectile (Class<?extends T > projectile) |
| | Launches a Projectile from the entity.
|
| |
| int | getRemainingAir () |
| | Returns the amount of air that this entity has remaining, in ticks.
|
| |
| void | setRemainingAir (int ticks) |
| | Sets the amount of air that this entity has remaining, in ticks.
|
| |
| int | getMaximumAir () |
| | Returns the maximum amount of air this entity can have, in ticks.
|
| |
| void | setMaximumAir (int ticks) |
| | Sets the maximum amount of air this entity can have, in ticks.
|
| |
| int | getMaximumNoDamageTicks () |
| | Returns the entities current maximum noDamageTicks This is the time in ticks the entity will become unable to take equal or less damage than the lastDamage.
|
| |
| void | setMaximumNoDamageTicks (int ticks) |
| | Sets the entities current maximum noDamageTicks.
|
| |
| int | getLastDamage () |
| | Returns the entities lastDamage taken in the current noDamageTicks time.
|
| |
| void | setLastDamage (int damage) |
| | Sets the entities current maximum noDamageTicks.
|
| |
| int | getNoDamageTicks () |
| | Returns the entities current noDamageTicks.
|
| |
| void | setNoDamageTicks (int ticks) |
| | Sets the entities current noDamageTicks.
|
| |
| Player | getKiller () |
| | Gets the player identified as the killer of this entity.
|
| |
| boolean | addPotionEffect (PotionEffect effect) |
| | Adds the given PotionEffect to this entity.
|
| |
| boolean | addPotionEffect (PotionEffect effect, boolean force) |
| | Adds the given PotionEffect to this entity.
|
| |
| boolean | addPotionEffects (Collection< PotionEffect > effects) |
| | Attempts to add all of the given PotionEffect to this entity.
|
| |
| boolean | hasPotionEffect (PotionEffectType type) |
| | Returns whether the entity already has an existing effect of the given PotionEffectType applied to it.
|
| |
| void | removePotionEffect (PotionEffectType type) |
| | Removes any effects present of the given PotionEffectType.
|
| |
| Collection< PotionEffect > | getActivePotionEffects () |
| | Returns all currently active PotionEffects on this entity.
|
| |
| boolean | hasLineOfSight (Entity other) |
| | Checks whether the entity has block line of sight to another.
|
| |
| boolean | getRemoveWhenFarAway () |
| | Returns if the entity despawns when away from players or not.
|
| |
| void | setRemoveWhenFarAway (boolean remove) |
| | Sets whether or not the entity despawns when away from players or not.
|
| |
| EntityEquipment | getEquipment () |
| | Gets the inventory with the equipment worn by this entity.
|
| |
| void | setCanPickupItems (boolean pickup) |
| | Sets whether or not the entity can pick up items.
|
| |
| boolean | getCanPickupItems () |
| | Gets if the entity can pick up items.
|
| |
| Location | getLocation () |
| | Gets the entity's current position.
|
| |
| Location | getLocation (Location loc) |
| | Stores the entity's current position in the provided Location object.
|
| |
| void | setVelocity (Vector velocity) |
| | Sets this entity's velocity.
|
| |
| Vector | getVelocity () |
| | Gets this entity's current velocity.
|
| |
| World | getWorld () |
| | Gets the current world this entity resides in.
|
| |
| boolean | teleport (Location location) |
| | Teleports this entity to the given location.
|
| |
| boolean | teleport (Location location, TeleportCause cause) |
| | Teleports this entity to the given location.
|
| |
| boolean | teleport (Entity destination) |
| | Teleports this entity to the target Entity.
|
| |
| boolean | teleport (Entity destination, TeleportCause cause) |
| | Teleports this entity to the target Entity.
|
| |
| List< org.bukkit.entity.Entity > | getNearbyEntities (double x, double y, double z) |
| | Returns a list of entities within a bounding box centered around this entity.
|
| |
| int | getEntityId () |
| | Returns a unique id for this entity.
|
| |
| int | getFireTicks () |
| | Returns the entity's current fire ticks (ticks before the entity stops being on fire).
|
| |
| int | getMaxFireTicks () |
| | Returns the entity's maximum fire ticks.
|
| |
| void | setFireTicks (int ticks) |
| | Sets the entity's current fire ticks (ticks before the entity stops being on fire).
|
| |
| void | remove () |
| | Mark the entity's removal.
|
| |
| boolean | isDead () |
| | Returns true if this entity has been marked for removal.
|
| |
| boolean | isValid () |
| | Returns false if the entity has died or been despawned for some other reason.
|
| |
| Server | getServer () |
| | Gets the Server that contains this Entity.
|
| |
| abstract Entity | getPassenger () |
| | Gets the primary passenger of a vehicle.
|
| |
| abstract boolean | setPassenger (Entity passenger) |
| | Set the passenger of a vehicle.
|
| |
| abstract boolean | isEmpty () |
| | Check if a vehicle has passengers.
|
| |
| abstract boolean | eject () |
| | Eject any passenger.
|
| |
| float | getFallDistance () |
| | Returns the distance this entity has fallen.
|
| |
| void | setFallDistance (float distance) |
| | Sets the fall distance for this entity.
|
| |
| void | setLastDamageCause (EntityDamageEvent event) |
| | Record the last EntityDamageEvent inflicted on this entity.
|
| |
| EntityDamageEvent | getLastDamageCause () |
| | Retrieve the last EntityDamageEvent inflicted on this entity.
|
| |
| UUID | getUniqueId () |
| | Returns a unique and persistent id for this entity.
|
| |
| int | getTicksLived () |
| | Gets the amount of ticks this entity has lived for.
|
| |
| void | setTicksLived (int value) |
| | Sets the amount of ticks this entity has lived for.
|
| |
| void | playEffect (EntityEffect type) |
| | Performs the specified EntityEffect for this entity.
|
| |
| EntityType | getType () |
| | Get the type of the entity.
|
| |
| boolean | isInsideVehicle () |
| | Returns whether this entity is inside a vehicle.
|
| |
| boolean | leaveVehicle () |
| | Leave the current vehicle.
|
| |
| Entity | getVehicle () |
| | Get the vehicle that this player is inside.
|
| |
| void | setMetadata (String metadataKey, MetadataValue newMetadataValue) |
| | Sets a metadata value in the implementing object's metadata store.
|
| |
| List< MetadataValue > | getMetadata (String metadataKey) |
| | Returns a list of previously set metadata values from the implementing object's metadata store.
|
| |
| boolean | hasMetadata (String metadataKey) |
| | Tests to see whether the implementing object contains the given metadata value in its metadata store.
|
| |
| void | removeMetadata (String metadataKey, Plugin owningPlugin) |
| | Removes the given metadata value from the implementing object's metadata store.
|
| |
| void | damage (int amount) |
| | Deals the given amount of damage to this entity.
|
| |
| void | damage (int amount, Entity source) |
| | Deals the given amount of damage to this entity, from a specified entity.
|
| |
| int | getHealth () |
| | Gets the entity's health from 0 to getMaxHealth(), where 0 is dead.
|
| |
| void | setHealth (int health) |
| | Sets the entity's health from 0 to getMaxHealth(), where 0 is dead.
|
| |
| int | getMaxHealth () |
| | Gets the maximum health this entity has.
|
| |
| void | setMaxHealth (int health) |
| | Sets the maximum health this entity can have.
|
| |
| void | resetMaxHealth () |
| | Resets the max health to the original amount.
|
| |
| String | getName () |
| | This is the name of the specified AnimalTamer.
|
| |
| boolean | isPermissionSet (String name) |
| | Checks if this object contains an override for the specified permission, by fully qualified name.
|
| |
| boolean | isPermissionSet (Permission perm) |
| | Checks if this object contains an override for the specified Permission.
|
| |
| boolean | hasPermission (String name) |
| | Gets the value of the specified permission, if set.
|
| |
| boolean | hasPermission (Permission perm) |
| | Gets the value of the specified permission, if set.
|
| |
| PermissionAttachment | addAttachment (Plugin plugin, String name, boolean value) |
| | Adds a new PermissionAttachment with a single permission by name and value.
|
| |
| PermissionAttachment | addAttachment (Plugin plugin) |
| | Adds a new empty PermissionAttachment to this object.
|
| |
| PermissionAttachment | addAttachment (Plugin plugin, String name, boolean value, int ticks) |
| | Temporarily adds a new PermissionAttachment with a single permission by name and value.
|
| |
| PermissionAttachment | addAttachment (Plugin plugin, int ticks) |
| | Temporarily adds a new empty PermissionAttachment to this object.
|
| |
| void | removeAttachment (PermissionAttachment attachment) |
| | Removes the given PermissionAttachment from this object.
|
| |
| void | recalculatePermissions () |
| | Recalculates the permissions for this object, if the attachments have changed values.
|
| |
| Set< PermissionAttachmentInfo > | getEffectivePermissions () |
| | Gets a set containing all of the permissions currently in effect by this object.
|
| |
| boolean | isOp () |
| | Checks if this object is a server operator.
|
| |
| void | setOp (boolean value) |
| | Sets the operator status of this object.
|
| |
| Inventory | getInventory () |
| | Get the object's inventory.
|
| |
| boolean | isConversing () |
| | Tests to see of a Conversable object is actively engaged in a conversation.
|
| |
| void | acceptConversationInput (String input) |
| | Accepts input into the active conversation.
|
| |
| boolean | beginConversation (Conversation conversation) |
| | Enters into a dialog with a Conversation object.
|
| |
| void | abandonConversation (Conversation conversation) |
| | Abandons an active conversation.
|
| |
| void | abandonConversation (Conversation conversation, ConversationAbandonedEvent details) |
| | Abandons an active conversation.
|
| |
| void | sendRawMessage (String message) |
| | Sends this sender a message raw.
|
| |
Public Member Functions inherited from org.bukkit.command.CommandSender |
| void | sendMessage (String message) |
| | Sends this sender a message.
|
| |
| void | sendMessage (String[] messages) |
| | Sends this sender multiple messages.
|
| |
| Server | getServer () |
| | Returns the server instance that this command is running on.
|
| |
| String | getName () |
| | Gets the name of this command sender.
|
| |
| boolean | isOnline () |
| | Checks if this player is currently online.
|
| |
| String | getName () |
| | Returns the name of this player.
|
| |
| boolean | isBanned () |
| | Checks if this player is banned or not.
|
| |
| void | setBanned (boolean banned) |
| | Bans or unbans this player.
|
| |
| boolean | isWhitelisted () |
| | Checks if this player is whitelisted or not.
|
| |
| void | setWhitelisted (boolean value) |
| | Sets if this player is whitelisted or not.
|
| |
| Player | getPlayer () |
| | Gets a Player object that this represents, if there is one.
|
| |
| long | getFirstPlayed () |
| | Gets the first date and time that this player was witnessed on this server.
|
| |
| long | getLastPlayed () |
| | Gets the last date and time that this player was witnessed on this server.
|
| |
| boolean | hasPlayedBefore () |
| | Checks if this player has played on this server before.
|
| |
| Location | getBedSpawnLocation () |
| | Gets the Location where the player will spawn at their bed, null if they have not slept in one or their current bed spawn is invalid.
|
| |
| void | sendPluginMessage (Plugin source, String channel, byte[] message) |
| | Sends this recipient a Plugin Message on the specified outgoing channel.
|
| |
| Set< String > | getListeningPluginChannels () |
| | Gets a set containing all the Plugin Channels that this client is listening on.
|
| |