Class VirtualPlayer

java.lang.Object
io.github.toberocat.guiengine.utils.VirtualPlayer
All Implemented Interfaces:
org.bukkit.attribute.Attributable, org.bukkit.command.CommandSender, org.bukkit.configuration.serialization.ConfigurationSerializable, org.bukkit.conversations.Conversable, org.bukkit.entity.AnimalTamer, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.HumanEntity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Player, org.bukkit.inventory.InventoryHolder, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.OfflinePlayer, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder, org.bukkit.plugin.messaging.PluginMessageRecipient, org.bukkit.projectiles.ProjectileSource

public class VirtualPlayer extends Object implements org.bukkit.entity.Player
Created: 06.04.2023
Author:
Tobias Madlberger (Tobias)
  • Constructor Details

    • VirtualPlayer

      public VirtualPlayer()
  • Method Details

    • getDisplayName

      @NotNull public @NotNull String getDisplayName()
      Specified by:
      getDisplayName in interface org.bukkit.entity.Player
    • setDisplayName

      public void setDisplayName(@Nullable @Nullable String name)
      Specified by:
      setDisplayName in interface org.bukkit.entity.Player
    • getPlayerListName

      @NotNull public @NotNull String getPlayerListName()
      Specified by:
      getPlayerListName in interface org.bukkit.entity.Player
    • setPlayerListName

      public void setPlayerListName(@Nullable @Nullable String name)
      Specified by:
      setPlayerListName in interface org.bukkit.entity.Player
    • getPlayerListHeader

      @Nullable public @Nullable String getPlayerListHeader()
      Specified by:
      getPlayerListHeader in interface org.bukkit.entity.Player
    • getPlayerListFooter

      @Nullable public @Nullable String getPlayerListFooter()
      Specified by:
      getPlayerListFooter in interface org.bukkit.entity.Player
    • setPlayerListHeader

      public void setPlayerListHeader(@Nullable @Nullable String header)
      Specified by:
      setPlayerListHeader in interface org.bukkit.entity.Player
    • setPlayerListFooter

      public void setPlayerListFooter(@Nullable @Nullable String footer)
      Specified by:
      setPlayerListFooter in interface org.bukkit.entity.Player
    • setPlayerListHeaderFooter

      public void setPlayerListHeaderFooter(@Nullable @Nullable String header, @Nullable @Nullable String footer)
      Specified by:
      setPlayerListHeaderFooter in interface org.bukkit.entity.Player
    • setCompassTarget

      public void setCompassTarget(@NotNull @NotNull org.bukkit.Location loc)
      Specified by:
      setCompassTarget in interface org.bukkit.entity.Player
    • getCompassTarget

      @NotNull public @NotNull org.bukkit.Location getCompassTarget()
      Specified by:
      getCompassTarget in interface org.bukkit.entity.Player
    • getAddress

      @Nullable public @Nullable InetSocketAddress getAddress()
      Specified by:
      getAddress in interface org.bukkit.entity.Player
    • isConversing

      public boolean isConversing()
      Specified by:
      isConversing in interface org.bukkit.conversations.Conversable
    • acceptConversationInput

      public void acceptConversationInput(@NotNull @NotNull String input)
      Specified by:
      acceptConversationInput in interface org.bukkit.conversations.Conversable
    • beginConversation

      public boolean beginConversation(@NotNull @NotNull org.bukkit.conversations.Conversation conversation)
      Specified by:
      beginConversation in interface org.bukkit.conversations.Conversable
    • abandonConversation

      public void abandonConversation(@NotNull @NotNull org.bukkit.conversations.Conversation conversation)
      Specified by:
      abandonConversation in interface org.bukkit.conversations.Conversable
    • abandonConversation

      public void abandonConversation(@NotNull @NotNull org.bukkit.conversations.Conversation conversation, @NotNull @NotNull org.bukkit.conversations.ConversationAbandonedEvent details)
      Specified by:
      abandonConversation in interface org.bukkit.conversations.Conversable
    • sendRawMessage

      public void sendRawMessage(@NotNull @NotNull String message)
      Specified by:
      sendRawMessage in interface org.bukkit.conversations.Conversable
      Specified by:
      sendRawMessage in interface org.bukkit.entity.Player
    • sendRawMessage

      public void sendRawMessage(@Nullable @Nullable UUID uuid, @NotNull @NotNull String s)
      Specified by:
      sendRawMessage in interface org.bukkit.conversations.Conversable
    • kickPlayer

      public void kickPlayer(@Nullable @Nullable String message)
      Specified by:
      kickPlayer in interface org.bukkit.entity.Player
    • chat

      public void chat(@NotNull @NotNull String msg)
      Specified by:
      chat in interface org.bukkit.entity.Player
    • performCommand

      public boolean performCommand(@NotNull @NotNull String command)
      Specified by:
      performCommand in interface org.bukkit.entity.Player
    • getLocation

      @NotNull public @NotNull org.bukkit.Location getLocation()
      Specified by:
      getLocation in interface org.bukkit.entity.Entity
    • getLocation

      @Nullable public @Nullable org.bukkit.Location getLocation(@Nullable @Nullable org.bukkit.Location loc)
      Specified by:
      getLocation in interface org.bukkit.entity.Entity
    • setVelocity

      public void setVelocity(@NotNull @NotNull org.bukkit.util.Vector velocity)
      Specified by:
      setVelocity in interface org.bukkit.entity.Entity
    • getVelocity

      @NotNull public @NotNull org.bukkit.util.Vector getVelocity()
      Specified by:
      getVelocity in interface org.bukkit.entity.Entity
    • getHeight

      public double getHeight()
      Specified by:
      getHeight in interface org.bukkit.entity.Entity
    • getWidth

      public double getWidth()
      Specified by:
      getWidth in interface org.bukkit.entity.Entity
    • getBoundingBox

      @NotNull public @NotNull org.bukkit.util.BoundingBox getBoundingBox()
      Specified by:
      getBoundingBox in interface org.bukkit.entity.Entity
    • isOnGround

      public boolean isOnGround()
      Specified by:
      isOnGround in interface org.bukkit.entity.Entity
      Specified by:
      isOnGround in interface org.bukkit.entity.Player
    • isInWater

      public boolean isInWater()
      Specified by:
      isInWater in interface org.bukkit.entity.Entity
    • getWorld

      @NotNull public @NotNull org.bukkit.World getWorld()
      Specified by:
      getWorld in interface org.bukkit.entity.Entity
    • setRotation

      public void setRotation(float yaw, float pitch)
      Specified by:
      setRotation in interface org.bukkit.entity.Entity
    • teleport

      public boolean teleport(@NotNull @NotNull org.bukkit.Location location)
      Specified by:
      teleport in interface org.bukkit.entity.Entity
    • teleport

      public boolean teleport(@NotNull @NotNull org.bukkit.Location location, @NotNull org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause)
      Specified by:
      teleport in interface org.bukkit.entity.Entity
    • teleport

      public boolean teleport(@NotNull @NotNull org.bukkit.entity.Entity destination)
      Specified by:
      teleport in interface org.bukkit.entity.Entity
    • teleport

      public boolean teleport(@NotNull @NotNull org.bukkit.entity.Entity destination, @NotNull org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause)
      Specified by:
      teleport in interface org.bukkit.entity.Entity
    • getNearbyEntities

      @NotNull public @NotNull List<org.bukkit.entity.Entity> getNearbyEntities(double x, double y, double z)
      Specified by:
      getNearbyEntities in interface org.bukkit.entity.Entity
    • getEntityId

      public int getEntityId()
      Specified by:
      getEntityId in interface org.bukkit.entity.Entity
    • getFireTicks

      public int getFireTicks()
      Specified by:
      getFireTicks in interface org.bukkit.entity.Entity
    • getMaxFireTicks

      public int getMaxFireTicks()
      Specified by:
      getMaxFireTicks in interface org.bukkit.entity.Entity
    • setFireTicks

      public void setFireTicks(int ticks)
      Specified by:
      setFireTicks in interface org.bukkit.entity.Entity
    • setVisualFire

      public void setVisualFire(boolean b)
      Specified by:
      setVisualFire in interface org.bukkit.entity.Entity
    • isVisualFire

      public boolean isVisualFire()
      Specified by:
      isVisualFire in interface org.bukkit.entity.Entity
    • getFreezeTicks

      public int getFreezeTicks()
      Specified by:
      getFreezeTicks in interface org.bukkit.entity.Entity
    • getMaxFreezeTicks

      public int getMaxFreezeTicks()
      Specified by:
      getMaxFreezeTicks in interface org.bukkit.entity.Entity
    • setFreezeTicks

      public void setFreezeTicks(int i)
      Specified by:
      setFreezeTicks in interface org.bukkit.entity.Entity
    • isFrozen

      public boolean isFrozen()
      Specified by:
      isFrozen in interface org.bukkit.entity.Entity
    • remove

      public void remove()
      Specified by:
      remove in interface org.bukkit.entity.Entity
    • isDead

      public boolean isDead()
      Specified by:
      isDead in interface org.bukkit.entity.Entity
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface org.bukkit.entity.Entity
    • sendMessage

      public void sendMessage(@NotNull @NotNull String message)
      Specified by:
      sendMessage in interface org.bukkit.command.CommandSender
    • sendMessage

      public void sendMessage(@NotNull @NotNull String[] messages)
      Specified by:
      sendMessage in interface org.bukkit.command.CommandSender
    • sendMessage

      public void sendMessage(@Nullable @Nullable UUID uuid, @NotNull @NotNull String s)
      Specified by:
      sendMessage in interface org.bukkit.command.CommandSender
    • sendMessage

      public void sendMessage(@Nullable @Nullable UUID uuid, @NotNull @NotNull String... strings)
      Specified by:
      sendMessage in interface org.bukkit.command.CommandSender
    • getServer

      @NotNull public @NotNull org.bukkit.Server getServer()
      Specified by:
      getServer in interface org.bukkit.command.CommandSender
      Specified by:
      getServer in interface org.bukkit.entity.Entity
    • isPersistent

      public boolean isPersistent()
      Specified by:
      isPersistent in interface org.bukkit.entity.Entity
    • setPersistent

      public void setPersistent(boolean persistent)
      Specified by:
      setPersistent in interface org.bukkit.entity.Entity
    • getPassenger

      @Nullable public @Nullable org.bukkit.entity.Entity getPassenger()
      Specified by:
      getPassenger in interface org.bukkit.entity.Entity
    • setPassenger

      public boolean setPassenger(@NotNull @NotNull org.bukkit.entity.Entity passenger)
      Specified by:
      setPassenger in interface org.bukkit.entity.Entity
    • getPassengers

      @NotNull public @NotNull List<org.bukkit.entity.Entity> getPassengers()
      Specified by:
      getPassengers in interface org.bukkit.entity.Entity
    • addPassenger

      public boolean addPassenger(@NotNull @NotNull org.bukkit.entity.Entity passenger)
      Specified by:
      addPassenger in interface org.bukkit.entity.Entity
    • removePassenger

      public boolean removePassenger(@NotNull @NotNull org.bukkit.entity.Entity passenger)
      Specified by:
      removePassenger in interface org.bukkit.entity.Entity
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.bukkit.entity.Entity
    • eject

      public boolean eject()
      Specified by:
      eject in interface org.bukkit.entity.Entity
    • getFallDistance

      public float getFallDistance()
      Specified by:
      getFallDistance in interface org.bukkit.entity.Entity
    • setFallDistance

      public void setFallDistance(float distance)
      Specified by:
      setFallDistance in interface org.bukkit.entity.Entity
    • setLastDamageCause

      public void setLastDamageCause(@Nullable @Nullable org.bukkit.event.entity.EntityDamageEvent event)
      Specified by:
      setLastDamageCause in interface org.bukkit.entity.Entity
    • getLastDamageCause

      @Nullable public @Nullable org.bukkit.event.entity.EntityDamageEvent getLastDamageCause()
      Specified by:
      getLastDamageCause in interface org.bukkit.entity.Entity
    • getUniqueId

      @NotNull public @NotNull UUID getUniqueId()
      Specified by:
      getUniqueId in interface org.bukkit.entity.AnimalTamer
      Specified by:
      getUniqueId in interface org.bukkit.entity.Entity
      Specified by:
      getUniqueId in interface org.bukkit.OfflinePlayer
    • getPlayerProfile

      @NotNull public @NotNull org.bukkit.profile.PlayerProfile getPlayerProfile()
      Specified by:
      getPlayerProfile in interface org.bukkit.OfflinePlayer
    • getTicksLived

      public int getTicksLived()
      Specified by:
      getTicksLived in interface org.bukkit.entity.Entity
    • setTicksLived

      public void setTicksLived(int value)
      Specified by:
      setTicksLived in interface org.bukkit.entity.Entity
    • playEffect

      public void playEffect(@NotNull @NotNull org.bukkit.EntityEffect type)
      Specified by:
      playEffect in interface org.bukkit.entity.Entity
    • getType

      @NotNull public @NotNull org.bukkit.entity.EntityType getType()
      Specified by:
      getType in interface org.bukkit.entity.Entity
    • isInsideVehicle

      public boolean isInsideVehicle()
      Specified by:
      isInsideVehicle in interface org.bukkit.entity.Entity
    • leaveVehicle

      public boolean leaveVehicle()
      Specified by:
      leaveVehicle in interface org.bukkit.entity.Entity
    • getVehicle

      @Nullable public @Nullable org.bukkit.entity.Entity getVehicle()
      Specified by:
      getVehicle in interface org.bukkit.entity.Entity
    • setCustomNameVisible

      public void setCustomNameVisible(boolean flag)
      Specified by:
      setCustomNameVisible in interface org.bukkit.entity.Entity
    • isCustomNameVisible

      public boolean isCustomNameVisible()
      Specified by:
      isCustomNameVisible in interface org.bukkit.entity.Entity
    • setGlowing

      public void setGlowing(boolean flag)
      Specified by:
      setGlowing in interface org.bukkit.entity.Entity
    • isGlowing

      public boolean isGlowing()
      Specified by:
      isGlowing in interface org.bukkit.entity.Entity
    • setInvulnerable

      public void setInvulnerable(boolean flag)
      Specified by:
      setInvulnerable in interface org.bukkit.entity.Entity
    • isInvulnerable

      public boolean isInvulnerable()
      Specified by:
      isInvulnerable in interface org.bukkit.entity.Entity
    • isSilent

      public boolean isSilent()
      Specified by:
      isSilent in interface org.bukkit.entity.Entity
    • setSilent

      public void setSilent(boolean flag)
      Specified by:
      setSilent in interface org.bukkit.entity.Entity
    • hasGravity

      public boolean hasGravity()
      Specified by:
      hasGravity in interface org.bukkit.entity.Entity
    • setGravity

      public void setGravity(boolean gravity)
      Specified by:
      setGravity in interface org.bukkit.entity.Entity
    • getPortalCooldown

      public int getPortalCooldown()
      Specified by:
      getPortalCooldown in interface org.bukkit.entity.Entity
    • setPortalCooldown

      public void setPortalCooldown(int cooldown)
      Specified by:
      setPortalCooldown in interface org.bukkit.entity.Entity
    • getScoreboardTags

      @NotNull public @NotNull Set<String> getScoreboardTags()
      Specified by:
      getScoreboardTags in interface org.bukkit.entity.Entity
    • addScoreboardTag

      public boolean addScoreboardTag(@NotNull @NotNull String tag)
      Specified by:
      addScoreboardTag in interface org.bukkit.entity.Entity
    • removeScoreboardTag

      public boolean removeScoreboardTag(@NotNull @NotNull String tag)
      Specified by:
      removeScoreboardTag in interface org.bukkit.entity.Entity
    • getPistonMoveReaction

      @NotNull public @NotNull org.bukkit.block.PistonMoveReaction getPistonMoveReaction()
      Specified by:
      getPistonMoveReaction in interface org.bukkit.entity.Entity
    • getFacing

      @NotNull public @NotNull org.bukkit.block.BlockFace getFacing()
      Specified by:
      getFacing in interface org.bukkit.entity.Entity
    • getPose

      @NotNull public @NotNull org.bukkit.entity.Pose getPose()
      Specified by:
      getPose in interface org.bukkit.entity.Entity
    • getSpawnCategory

      @NotNull public @NotNull org.bukkit.entity.SpawnCategory getSpawnCategory()
      Specified by:
      getSpawnCategory in interface org.bukkit.entity.Entity
    • isSneaking

      public boolean isSneaking()
      Specified by:
      isSneaking in interface org.bukkit.entity.Player
    • setSneaking

      public void setSneaking(boolean sneak)
      Specified by:
      setSneaking in interface org.bukkit.entity.Player
    • isSprinting

      public boolean isSprinting()
      Specified by:
      isSprinting in interface org.bukkit.entity.Player
    • setSprinting

      public void setSprinting(boolean sprinting)
      Specified by:
      setSprinting in interface org.bukkit.entity.Player
    • saveData

      public void saveData()
      Specified by:
      saveData in interface org.bukkit.entity.Player
    • loadData

      public void loadData()
      Specified by:
      loadData in interface org.bukkit.entity.Player
    • setSleepingIgnored

      public void setSleepingIgnored(boolean isSleeping)
      Specified by:
      setSleepingIgnored in interface org.bukkit.entity.Player
    • isSleepingIgnored

      public boolean isSleepingIgnored()
      Specified by:
      isSleepingIgnored in interface org.bukkit.entity.Player
    • isOnline

      public boolean isOnline()
      Specified by:
      isOnline in interface org.bukkit.OfflinePlayer
    • isBanned

      public boolean isBanned()
      Specified by:
      isBanned in interface org.bukkit.OfflinePlayer
    • isWhitelisted

      public boolean isWhitelisted()
      Specified by:
      isWhitelisted in interface org.bukkit.OfflinePlayer
    • setWhitelisted

      public void setWhitelisted(boolean value)
      Specified by:
      setWhitelisted in interface org.bukkit.OfflinePlayer
    • getPlayer

      @Nullable public @Nullable org.bukkit.entity.Player getPlayer()
      Specified by:
      getPlayer in interface org.bukkit.OfflinePlayer
    • getFirstPlayed

      public long getFirstPlayed()
      Specified by:
      getFirstPlayed in interface org.bukkit.OfflinePlayer
    • getLastPlayed

      public long getLastPlayed()
      Specified by:
      getLastPlayed in interface org.bukkit.OfflinePlayer
    • hasPlayedBefore

      public boolean hasPlayedBefore()
      Specified by:
      hasPlayedBefore in interface org.bukkit.OfflinePlayer
    • getBedSpawnLocation

      @Nullable public @Nullable org.bukkit.Location getBedSpawnLocation()
      Specified by:
      getBedSpawnLocation in interface org.bukkit.OfflinePlayer
      Specified by:
      getBedSpawnLocation in interface org.bukkit.entity.Player
    • incrementStatistic

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) throws IllegalArgumentException
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • decrementStatistic

      public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) throws IllegalArgumentException
      Specified by:
      decrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • incrementStatistic

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int amount) throws IllegalArgumentException
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • decrementStatistic

      public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int amount) throws IllegalArgumentException
      Specified by:
      decrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • setStatistic

      public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int newValue) throws IllegalArgumentException
      Specified by:
      setStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • getStatistic

      public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) throws IllegalArgumentException
      Specified by:
      getStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • incrementStatistic

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) throws IllegalArgumentException
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • decrementStatistic

      public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) throws IllegalArgumentException
      Specified by:
      decrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • getStatistic

      public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) throws IllegalArgumentException
      Specified by:
      getStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • incrementStatistic

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material, int amount) throws IllegalArgumentException
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • decrementStatistic

      public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material, int amount) throws IllegalArgumentException
      Specified by:
      decrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • setStatistic

      public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material, int newValue) throws IllegalArgumentException
      Specified by:
      setStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • incrementStatistic

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType) throws IllegalArgumentException
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • decrementStatistic

      public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType) throws IllegalArgumentException
      Specified by:
      decrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • getStatistic

      public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType) throws IllegalArgumentException
      Specified by:
      getStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • incrementStatistic

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int amount) throws IllegalArgumentException
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
      Throws:
      IllegalArgumentException
    • decrementStatistic

      public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int amount)
      Specified by:
      decrementStatistic in interface org.bukkit.OfflinePlayer
    • setStatistic

      public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int newValue)
      Specified by:
      setStatistic in interface org.bukkit.OfflinePlayer
    • setBedSpawnLocation

      public void setBedSpawnLocation(@Nullable @Nullable org.bukkit.Location location)
      Specified by:
      setBedSpawnLocation in interface org.bukkit.entity.Player
    • setBedSpawnLocation

      public void setBedSpawnLocation(@Nullable @Nullable org.bukkit.Location location, boolean force)
      Specified by:
      setBedSpawnLocation in interface org.bukkit.entity.Player
    • playNote

      public void playNote(@NotNull @NotNull org.bukkit.Location loc, byte instrument, byte note)
      Specified by:
      playNote in interface org.bukkit.entity.Player
    • playNote

      public void playNote(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.Instrument instrument, @NotNull @NotNull org.bukkit.Note note)
      Specified by:
      playNote in interface org.bukkit.entity.Player
    • playSound

      public void playSound(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.Sound sound, float volume, float pitch)
      Specified by:
      playSound in interface org.bukkit.entity.Player
    • playSound

      public void playSound(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull String sound, float volume, float pitch)
      Specified by:
      playSound in interface org.bukkit.entity.Player
    • playSound

      public void playSound(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.Sound sound, @NotNull @NotNull org.bukkit.SoundCategory category, float volume, float pitch)
      Specified by:
      playSound in interface org.bukkit.entity.Player
    • playSound

      public void playSound(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull String sound, @NotNull @NotNull org.bukkit.SoundCategory category, float volume, float pitch)
      Specified by:
      playSound in interface org.bukkit.entity.Player
    • playSound

      public void playSound(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.Sound sound, float v, float v1)
      Specified by:
      playSound in interface org.bukkit.entity.Player
    • playSound

      public void playSound(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.Sound sound, @NotNull @NotNull org.bukkit.SoundCategory soundCategory, float v, float v1)
      Specified by:
      playSound in interface org.bukkit.entity.Player
    • stopSound

      public void stopSound(@NotNull @NotNull org.bukkit.Sound sound)
      Specified by:
      stopSound in interface org.bukkit.entity.Player
    • stopSound

      public void stopSound(@NotNull @NotNull String sound)
      Specified by:
      stopSound in interface org.bukkit.entity.Player
    • stopSound

      public void stopSound(@NotNull @NotNull org.bukkit.Sound sound, @Nullable @Nullable org.bukkit.SoundCategory category)
      Specified by:
      stopSound in interface org.bukkit.entity.Player
    • stopSound

      public void stopSound(@NotNull @NotNull String sound, @Nullable @Nullable org.bukkit.SoundCategory category)
      Specified by:
      stopSound in interface org.bukkit.entity.Player
    • stopAllSounds

      public void stopAllSounds()
      Specified by:
      stopAllSounds in interface org.bukkit.entity.Player
    • playEffect

      public void playEffect(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.Effect effect, int data)
      Specified by:
      playEffect in interface org.bukkit.entity.Player
    • playEffect

      public <T> void playEffect(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.Effect effect, @Nullable T data)
      Specified by:
      playEffect in interface org.bukkit.entity.Player
    • breakBlock

      public boolean breakBlock(@NotNull @NotNull org.bukkit.block.Block block)
      Specified by:
      breakBlock in interface org.bukkit.entity.Player
    • sendBlockChange

      public void sendBlockChange(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.Material material, byte data)
      Specified by:
      sendBlockChange in interface org.bukkit.entity.Player
    • sendBlockChange

      public void sendBlockChange(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.block.data.BlockData block)
      Specified by:
      sendBlockChange in interface org.bukkit.entity.Player
    • sendBlockDamage

      public void sendBlockDamage(@NotNull @NotNull org.bukkit.Location location, float v)
      Specified by:
      sendBlockDamage in interface org.bukkit.entity.Player
    • sendEquipmentChange

      public void sendEquipmentChange(@NotNull @NotNull org.bukkit.entity.LivingEntity livingEntity, @NotNull @NotNull org.bukkit.inventory.EquipmentSlot equipmentSlot, @NotNull @NotNull org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      sendEquipmentChange in interface org.bukkit.entity.Player
    • sendSignChange

      public void sendSignChange(@NotNull @NotNull org.bukkit.Location loc, @Nullable @Nullable String[] lines) throws IllegalArgumentException
      Specified by:
      sendSignChange in interface org.bukkit.entity.Player
      Throws:
      IllegalArgumentException
    • sendSignChange

      public void sendSignChange(@NotNull @NotNull org.bukkit.Location loc, @Nullable @Nullable String[] lines, @NotNull @NotNull org.bukkit.DyeColor dyeColor) throws IllegalArgumentException
      Specified by:
      sendSignChange in interface org.bukkit.entity.Player
      Throws:
      IllegalArgumentException
    • sendSignChange

      public void sendSignChange(@NotNull @NotNull org.bukkit.Location location, @Nullable @Nullable String[] strings, @NotNull @NotNull org.bukkit.DyeColor dyeColor, boolean b) throws IllegalArgumentException
      Specified by:
      sendSignChange in interface org.bukkit.entity.Player
      Throws:
      IllegalArgumentException
    • sendMap

      public void sendMap(@NotNull @NotNull org.bukkit.map.MapView map)
      Specified by:
      sendMap in interface org.bukkit.entity.Player
    • updateInventory

      public void updateInventory()
      Specified by:
      updateInventory in interface org.bukkit.entity.Player
    • getPreviousGameMode

      @Nullable public @Nullable org.bukkit.GameMode getPreviousGameMode()
      Specified by:
      getPreviousGameMode in interface org.bukkit.entity.Player
    • setPlayerTime

      public void setPlayerTime(long time, boolean relative)
      Specified by:
      setPlayerTime in interface org.bukkit.entity.Player
    • getPlayerTime

      public long getPlayerTime()
      Specified by:
      getPlayerTime in interface org.bukkit.entity.Player
    • getPlayerTimeOffset

      public long getPlayerTimeOffset()
      Specified by:
      getPlayerTimeOffset in interface org.bukkit.entity.Player
    • isPlayerTimeRelative

      public boolean isPlayerTimeRelative()
      Specified by:
      isPlayerTimeRelative in interface org.bukkit.entity.Player
    • resetPlayerTime

      public void resetPlayerTime()
      Specified by:
      resetPlayerTime in interface org.bukkit.entity.Player
    • setPlayerWeather

      public void setPlayerWeather(@NotNull @NotNull org.bukkit.WeatherType type)
      Specified by:
      setPlayerWeather in interface org.bukkit.entity.Player
    • getPlayerWeather

      @Nullable public @Nullable org.bukkit.WeatherType getPlayerWeather()
      Specified by:
      getPlayerWeather in interface org.bukkit.entity.Player
    • resetPlayerWeather

      public void resetPlayerWeather()
      Specified by:
      resetPlayerWeather in interface org.bukkit.entity.Player
    • giveExp

      public void giveExp(int amount)
      Specified by:
      giveExp in interface org.bukkit.entity.Player
    • giveExpLevels

      public void giveExpLevels(int amount)
      Specified by:
      giveExpLevels in interface org.bukkit.entity.Player
    • getExp

      public float getExp()
      Specified by:
      getExp in interface org.bukkit.entity.Player
    • setExp

      public void setExp(float exp)
      Specified by:
      setExp in interface org.bukkit.entity.Player
    • getLevel

      public int getLevel()
      Specified by:
      getLevel in interface org.bukkit.entity.Player
    • setLevel

      public void setLevel(int level)
      Specified by:
      setLevel in interface org.bukkit.entity.Player
    • getTotalExperience

      public int getTotalExperience()
      Specified by:
      getTotalExperience in interface org.bukkit.entity.Player
    • setTotalExperience

      public void setTotalExperience(int exp)
      Specified by:
      setTotalExperience in interface org.bukkit.entity.Player
    • sendExperienceChange

      public void sendExperienceChange(float progress)
      Specified by:
      sendExperienceChange in interface org.bukkit.entity.Player
    • sendExperienceChange

      public void sendExperienceChange(float progress, int level)
      Specified by:
      sendExperienceChange in interface org.bukkit.entity.Player
    • getExhaustion

      public float getExhaustion()
      Specified by:
      getExhaustion in interface org.bukkit.entity.HumanEntity
    • setExhaustion

      public void setExhaustion(float value)
      Specified by:
      setExhaustion in interface org.bukkit.entity.HumanEntity
    • getSaturation

      public float getSaturation()
      Specified by:
      getSaturation in interface org.bukkit.entity.HumanEntity
    • setSaturation

      public void setSaturation(float value)
      Specified by:
      setSaturation in interface org.bukkit.entity.HumanEntity
    • getFoodLevel

      public int getFoodLevel()
      Specified by:
      getFoodLevel in interface org.bukkit.entity.HumanEntity
    • setFoodLevel

      public void setFoodLevel(int value)
      Specified by:
      setFoodLevel in interface org.bukkit.entity.HumanEntity
    • getSaturatedRegenRate

      public int getSaturatedRegenRate()
      Specified by:
      getSaturatedRegenRate in interface org.bukkit.entity.HumanEntity
    • setSaturatedRegenRate

      public void setSaturatedRegenRate(int i)
      Specified by:
      setSaturatedRegenRate in interface org.bukkit.entity.HumanEntity
    • getUnsaturatedRegenRate

      public int getUnsaturatedRegenRate()
      Specified by:
      getUnsaturatedRegenRate in interface org.bukkit.entity.HumanEntity
    • setUnsaturatedRegenRate

      public void setUnsaturatedRegenRate(int i)
      Specified by:
      setUnsaturatedRegenRate in interface org.bukkit.entity.HumanEntity
    • getStarvationRate

      public int getStarvationRate()
      Specified by:
      getStarvationRate in interface org.bukkit.entity.HumanEntity
    • setStarvationRate

      public void setStarvationRate(int i)
      Specified by:
      setStarvationRate in interface org.bukkit.entity.HumanEntity
    • getAllowFlight

      public boolean getAllowFlight()
      Specified by:
      getAllowFlight in interface org.bukkit.entity.Player
    • setAllowFlight

      public void setAllowFlight(boolean flight)
      Specified by:
      setAllowFlight in interface org.bukkit.entity.Player
    • hidePlayer

      public void hidePlayer(@NotNull @NotNull org.bukkit.entity.Player player)
      Specified by:
      hidePlayer in interface org.bukkit.entity.Player
    • hidePlayer

      public void hidePlayer(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull org.bukkit.entity.Player player)
      Specified by:
      hidePlayer in interface org.bukkit.entity.Player
    • showPlayer

      public void showPlayer(@NotNull @NotNull org.bukkit.entity.Player player)
      Specified by:
      showPlayer in interface org.bukkit.entity.Player
    • showPlayer

      public void showPlayer(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull org.bukkit.entity.Player player)
      Specified by:
      showPlayer in interface org.bukkit.entity.Player
    • canSee

      public boolean canSee(@NotNull @NotNull org.bukkit.entity.Player player)
      Specified by:
      canSee in interface org.bukkit.entity.Player
    • hideEntity

      public void hideEntity(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull org.bukkit.entity.Entity entity)
      Specified by:
      hideEntity in interface org.bukkit.entity.Player
    • showEntity

      public void showEntity(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull org.bukkit.entity.Entity entity)
      Specified by:
      showEntity in interface org.bukkit.entity.Player
    • canSee

      public boolean canSee(@NotNull @NotNull org.bukkit.entity.Entity entity)
      Specified by:
      canSee in interface org.bukkit.entity.Player
    • isFlying

      public boolean isFlying()
      Specified by:
      isFlying in interface org.bukkit.entity.Player
    • setFlying

      public void setFlying(boolean value)
      Specified by:
      setFlying in interface org.bukkit.entity.Player
    • setFlySpeed

      public void setFlySpeed(float value) throws IllegalArgumentException
      Specified by:
      setFlySpeed in interface org.bukkit.entity.Player
      Throws:
      IllegalArgumentException
    • setWalkSpeed

      public void setWalkSpeed(float value) throws IllegalArgumentException
      Specified by:
      setWalkSpeed in interface org.bukkit.entity.Player
      Throws:
      IllegalArgumentException
    • getFlySpeed

      public float getFlySpeed()
      Specified by:
      getFlySpeed in interface org.bukkit.entity.Player
    • getWalkSpeed

      public float getWalkSpeed()
      Specified by:
      getWalkSpeed in interface org.bukkit.entity.Player
    • setTexturePack

      public void setTexturePack(@NotNull @NotNull String url)
      Specified by:
      setTexturePack in interface org.bukkit.entity.Player
    • setResourcePack

      public void setResourcePack(@NotNull @NotNull String url)
      Specified by:
      setResourcePack in interface org.bukkit.entity.Player
    • setResourcePack

      public void setResourcePack(@NotNull @NotNull String url, @NotNull @org.jetbrains.annotations.NotNull byte[] hash)
      Specified by:
      setResourcePack in interface org.bukkit.entity.Player
    • setResourcePack

      public void setResourcePack(@NotNull @NotNull String s, @Nullable @org.jetbrains.annotations.Nullable byte[] bytes, @Nullable @Nullable String s1)
      Specified by:
      setResourcePack in interface org.bukkit.entity.Player
    • setResourcePack

      public void setResourcePack(@NotNull @NotNull String s, @Nullable @org.jetbrains.annotations.Nullable byte[] bytes, boolean b)
      Specified by:
      setResourcePack in interface org.bukkit.entity.Player
    • setResourcePack

      public void setResourcePack(@NotNull @NotNull String s, @Nullable @org.jetbrains.annotations.Nullable byte[] bytes, @Nullable @Nullable String s1, boolean b)
      Specified by:
      setResourcePack in interface org.bukkit.entity.Player
    • getScoreboard

      @NotNull public @NotNull org.bukkit.scoreboard.Scoreboard getScoreboard()
      Specified by:
      getScoreboard in interface org.bukkit.entity.Player
    • setScoreboard

      public void setScoreboard(@NotNull @NotNull org.bukkit.scoreboard.Scoreboard scoreboard) throws IllegalArgumentException, IllegalStateException
      Specified by:
      setScoreboard in interface org.bukkit.entity.Player
      Throws:
      IllegalArgumentException
      IllegalStateException
    • isHealthScaled

      public boolean isHealthScaled()
      Specified by:
      isHealthScaled in interface org.bukkit.entity.Player
    • setHealthScaled

      public void setHealthScaled(boolean scale)
      Specified by:
      setHealthScaled in interface org.bukkit.entity.Player
    • setHealthScale

      public void setHealthScale(double scale) throws IllegalArgumentException
      Specified by:
      setHealthScale in interface org.bukkit.entity.Player
      Throws:
      IllegalArgumentException
    • getHealthScale

      public double getHealthScale()
      Specified by:
      getHealthScale in interface org.bukkit.entity.Player
    • getSpectatorTarget

      @Nullable public @Nullable org.bukkit.entity.Entity getSpectatorTarget()
      Specified by:
      getSpectatorTarget in interface org.bukkit.entity.Player
    • setSpectatorTarget

      public void setSpectatorTarget(@Nullable @Nullable org.bukkit.entity.Entity entity)
      Specified by:
      setSpectatorTarget in interface org.bukkit.entity.Player
    • sendTitle

      public void sendTitle(@Nullable @Nullable String title, @Nullable @Nullable String subtitle)
      Specified by:
      sendTitle in interface org.bukkit.entity.Player
    • sendTitle

      public void sendTitle(@Nullable @Nullable String title, @Nullable @Nullable String subtitle, int fadeIn, int stay, int fadeOut)
      Specified by:
      sendTitle in interface org.bukkit.entity.Player
    • resetTitle

      public void resetTitle()
      Specified by:
      resetTitle in interface org.bukkit.entity.Player
    • spawnParticle

      public void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @NotNull @NotNull org.bukkit.Location location, int count)
      Specified by:
      spawnParticle in interface org.bukkit.entity.Player
    • spawnParticle

      public void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, double x, double y, double z, int count)
      Specified by:
      spawnParticle in interface org.bukkit.entity.Player
    • spawnParticle

      public <T> void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @NotNull @NotNull org.bukkit.Location location, int count, @Nullable T data)
      Specified by:
      spawnParticle in interface org.bukkit.entity.Player
    • spawnParticle

      public <T> void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, double x, double y, double z, int count, @Nullable T data)
      Specified by:
      spawnParticle in interface org.bukkit.entity.Player
    • spawnParticle

      public void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @NotNull @NotNull org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ)
      Specified by:
      spawnParticle in interface org.bukkit.entity.Player
    • spawnParticle

      public void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ)
      Specified by:
      spawnParticle in interface org.bukkit.entity.Player
    • spawnParticle

      public <T> void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @NotNull @NotNull org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, @Nullable T data)
      Specified by:
      spawnParticle in interface org.bukkit.entity.Player
    • spawnParticle

      public <T> void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, @Nullable T data)
      Specified by:
      spawnParticle in interface org.bukkit.entity.Player
    • spawnParticle

      public void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @NotNull @NotNull org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, double extra)
      Specified by:
      spawnParticle in interface org.bukkit.entity.Player
    • spawnParticle

      public void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra)
      Specified by:
      spawnParticle in interface org.bukkit.entity.Player
    • spawnParticle

      public <T> void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @NotNull @NotNull org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data)
      Specified by:
      spawnParticle in interface org.bukkit.entity.Player
    • spawnParticle

      public <T> void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data)
      Specified by:
      spawnParticle in interface org.bukkit.entity.Player
    • getAdvancementProgress

      @NotNull public @NotNull org.bukkit.advancement.AdvancementProgress getAdvancementProgress(@NotNull @NotNull org.bukkit.advancement.Advancement advancement)
      Specified by:
      getAdvancementProgress in interface org.bukkit.entity.Player
    • getClientViewDistance

      public int getClientViewDistance()
      Specified by:
      getClientViewDistance in interface org.bukkit.entity.Player
    • getPing

      public int getPing()
      Specified by:
      getPing in interface org.bukkit.entity.Player
    • getLocale

      @NotNull public @NotNull String getLocale()
      Specified by:
      getLocale in interface org.bukkit.entity.Player
    • updateCommands

      public void updateCommands()
      Specified by:
      updateCommands in interface org.bukkit.entity.Player
    • openBook

      public void openBook(@NotNull @NotNull org.bukkit.inventory.ItemStack book)
      Specified by:
      openBook in interface org.bukkit.entity.Player
    • openSign

      public void openSign(@NotNull @NotNull org.bukkit.block.Sign sign)
      Specified by:
      openSign in interface org.bukkit.entity.Player
    • showDemoScreen

      public void showDemoScreen()
      Specified by:
      showDemoScreen in interface org.bukkit.entity.Player
    • isAllowingServerListings

      public boolean isAllowingServerListings()
      Specified by:
      isAllowingServerListings in interface org.bukkit.entity.Player
    • spigot

      @NotNull public @NotNull org.bukkit.entity.Player.Spigot spigot()
      Specified by:
      spigot in interface org.bukkit.command.CommandSender
      Specified by:
      spigot in interface org.bukkit.entity.Entity
      Specified by:
      spigot in interface org.bukkit.entity.Player
    • serialize

      @NotNull public @NotNull Map<String,Object> serialize()
      Specified by:
      serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializable
    • getName

      @NotNull public @NotNull String getName()
      Specified by:
      getName in interface org.bukkit.entity.AnimalTamer
      Specified by:
      getName in interface org.bukkit.command.CommandSender
      Specified by:
      getName in interface org.bukkit.entity.HumanEntity
      Specified by:
      getName in interface org.bukkit.OfflinePlayer
    • getInventory

      @NotNull public @NotNull org.bukkit.inventory.PlayerInventory getInventory()
      Specified by:
      getInventory in interface org.bukkit.entity.HumanEntity
      Specified by:
      getInventory in interface org.bukkit.inventory.InventoryHolder
    • getEnderChest

      @NotNull public @NotNull org.bukkit.inventory.Inventory getEnderChest()
      Specified by:
      getEnderChest in interface org.bukkit.entity.HumanEntity
    • getMainHand

      @NotNull public @NotNull org.bukkit.inventory.MainHand getMainHand()
      Specified by:
      getMainHand in interface org.bukkit.entity.HumanEntity
    • setWindowProperty

      public boolean setWindowProperty(@NotNull org.bukkit.inventory.InventoryView.Property prop, int value)
      Specified by:
      setWindowProperty in interface org.bukkit.entity.HumanEntity
    • getOpenInventory

      @NotNull public @NotNull org.bukkit.inventory.InventoryView getOpenInventory()
      Specified by:
      getOpenInventory in interface org.bukkit.entity.HumanEntity
    • openInventory

      @Nullable public @Nullable org.bukkit.inventory.InventoryView openInventory(@NotNull @NotNull org.bukkit.inventory.Inventory inventory)
      Specified by:
      openInventory in interface org.bukkit.entity.HumanEntity
    • openWorkbench

      @Nullable public @Nullable org.bukkit.inventory.InventoryView openWorkbench(@Nullable @Nullable org.bukkit.Location location, boolean force)
      Specified by:
      openWorkbench in interface org.bukkit.entity.HumanEntity
    • openEnchanting

      @Nullable public @Nullable org.bukkit.inventory.InventoryView openEnchanting(@Nullable @Nullable org.bukkit.Location location, boolean force)
      Specified by:
      openEnchanting in interface org.bukkit.entity.HumanEntity
    • openInventory

      public void openInventory(@NotNull @NotNull org.bukkit.inventory.InventoryView inventory)
      Specified by:
      openInventory in interface org.bukkit.entity.HumanEntity
    • openMerchant

      @Nullable public @Nullable org.bukkit.inventory.InventoryView openMerchant(@NotNull @NotNull org.bukkit.entity.Villager trader, boolean force)
      Specified by:
      openMerchant in interface org.bukkit.entity.HumanEntity
    • openMerchant

      @Nullable public @Nullable org.bukkit.inventory.InventoryView openMerchant(@NotNull @NotNull org.bukkit.inventory.Merchant merchant, boolean force)
      Specified by:
      openMerchant in interface org.bukkit.entity.HumanEntity
    • closeInventory

      public void closeInventory()
      Specified by:
      closeInventory in interface org.bukkit.entity.HumanEntity
    • getItemInHand

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getItemInHand()
      Specified by:
      getItemInHand in interface org.bukkit.entity.HumanEntity
    • setItemInHand

      public void setItemInHand(@Nullable @Nullable org.bukkit.inventory.ItemStack item)
      Specified by:
      setItemInHand in interface org.bukkit.entity.HumanEntity
    • getItemOnCursor

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getItemOnCursor()
      Specified by:
      getItemOnCursor in interface org.bukkit.entity.HumanEntity
    • setItemOnCursor

      public void setItemOnCursor(@Nullable @Nullable org.bukkit.inventory.ItemStack item)
      Specified by:
      setItemOnCursor in interface org.bukkit.entity.HumanEntity
    • hasCooldown

      public boolean hasCooldown(@NotNull @NotNull org.bukkit.Material material)
      Specified by:
      hasCooldown in interface org.bukkit.entity.HumanEntity
    • getCooldown

      public int getCooldown(@NotNull @NotNull org.bukkit.Material material)
      Specified by:
      getCooldown in interface org.bukkit.entity.HumanEntity
    • setCooldown

      public void setCooldown(@NotNull @NotNull org.bukkit.Material material, int ticks)
      Specified by:
      setCooldown in interface org.bukkit.entity.HumanEntity
    • getSleepTicks

      public int getSleepTicks()
      Specified by:
      getSleepTicks in interface org.bukkit.entity.HumanEntity
    • sleep

      public boolean sleep(@NotNull @NotNull org.bukkit.Location location, boolean force)
      Specified by:
      sleep in interface org.bukkit.entity.HumanEntity
    • wakeup

      public void wakeup(boolean setSpawnLocation)
      Specified by:
      wakeup in interface org.bukkit.entity.HumanEntity
    • getBedLocation

      @NotNull public @NotNull org.bukkit.Location getBedLocation()
      Specified by:
      getBedLocation in interface org.bukkit.entity.HumanEntity
    • getGameMode

      @NotNull public @NotNull org.bukkit.GameMode getGameMode()
      Specified by:
      getGameMode in interface org.bukkit.entity.HumanEntity
    • setGameMode

      public void setGameMode(@NotNull @NotNull org.bukkit.GameMode mode)
      Specified by:
      setGameMode in interface org.bukkit.entity.HumanEntity
    • isBlocking

      public boolean isBlocking()
      Specified by:
      isBlocking in interface org.bukkit.entity.HumanEntity
    • isHandRaised

      public boolean isHandRaised()
      Specified by:
      isHandRaised in interface org.bukkit.entity.HumanEntity
    • getItemInUse

      @Nullable public @Nullable org.bukkit.inventory.ItemStack getItemInUse()
      Specified by:
      getItemInUse in interface org.bukkit.entity.HumanEntity
    • getExpToLevel

      public int getExpToLevel()
      Specified by:
      getExpToLevel in interface org.bukkit.entity.HumanEntity
    • getAttackCooldown

      public float getAttackCooldown()
      Specified by:
      getAttackCooldown in interface org.bukkit.entity.HumanEntity
    • discoverRecipe

      public boolean discoverRecipe(@NotNull @NotNull org.bukkit.NamespacedKey recipe)
      Specified by:
      discoverRecipe in interface org.bukkit.entity.HumanEntity
    • discoverRecipes

      public int discoverRecipes(@NotNull @NotNull Collection<org.bukkit.NamespacedKey> recipes)
      Specified by:
      discoverRecipes in interface org.bukkit.entity.HumanEntity
    • undiscoverRecipe

      public boolean undiscoverRecipe(@NotNull @NotNull org.bukkit.NamespacedKey recipe)
      Specified by:
      undiscoverRecipe in interface org.bukkit.entity.HumanEntity
    • undiscoverRecipes

      public int undiscoverRecipes(@NotNull @NotNull Collection<org.bukkit.NamespacedKey> recipes)
      Specified by:
      undiscoverRecipes in interface org.bukkit.entity.HumanEntity
    • hasDiscoveredRecipe

      public boolean hasDiscoveredRecipe(@NotNull @NotNull org.bukkit.NamespacedKey recipe)
      Specified by:
      hasDiscoveredRecipe in interface org.bukkit.entity.HumanEntity
    • getDiscoveredRecipes

      @NotNull public @NotNull Set<org.bukkit.NamespacedKey> getDiscoveredRecipes()
      Specified by:
      getDiscoveredRecipes in interface org.bukkit.entity.HumanEntity
    • getShoulderEntityLeft

      @Nullable public @Nullable org.bukkit.entity.Entity getShoulderEntityLeft()
      Specified by:
      getShoulderEntityLeft in interface org.bukkit.entity.HumanEntity
    • setShoulderEntityLeft

      public void setShoulderEntityLeft(@Nullable @Nullable org.bukkit.entity.Entity entity)
      Specified by:
      setShoulderEntityLeft in interface org.bukkit.entity.HumanEntity
    • getShoulderEntityRight

      @Nullable public @Nullable org.bukkit.entity.Entity getShoulderEntityRight()
      Specified by:
      getShoulderEntityRight in interface org.bukkit.entity.HumanEntity
    • setShoulderEntityRight

      public void setShoulderEntityRight(@Nullable @Nullable org.bukkit.entity.Entity entity)
      Specified by:
      setShoulderEntityRight in interface org.bukkit.entity.HumanEntity
    • dropItem

      public boolean dropItem(boolean b)
      Specified by:
      dropItem in interface org.bukkit.entity.HumanEntity
    • getEyeHeight

      public double getEyeHeight()
      Specified by:
      getEyeHeight in interface org.bukkit.entity.LivingEntity
    • getEyeHeight

      public double getEyeHeight(boolean ignorePose)
      Specified by:
      getEyeHeight in interface org.bukkit.entity.LivingEntity
    • getEyeLocation

      @NotNull public @NotNull org.bukkit.Location getEyeLocation()
      Specified by:
      getEyeLocation in interface org.bukkit.entity.LivingEntity
    • getLineOfSight

      @NotNull public @NotNull List<org.bukkit.block.Block> getLineOfSight(@Nullable @Nullable Set<org.bukkit.Material> transparent, int maxDistance)
      Specified by:
      getLineOfSight in interface org.bukkit.entity.LivingEntity
    • getTargetBlock

      @NotNull public @NotNull org.bukkit.block.Block getTargetBlock(@Nullable @Nullable Set<org.bukkit.Material> transparent, int maxDistance)
      Specified by:
      getTargetBlock in interface org.bukkit.entity.LivingEntity
    • getLastTwoTargetBlocks

      @NotNull public @NotNull List<org.bukkit.block.Block> getLastTwoTargetBlocks(@Nullable @Nullable Set<org.bukkit.Material> transparent, int maxDistance)
      Specified by:
      getLastTwoTargetBlocks in interface org.bukkit.entity.LivingEntity
    • getTargetBlockExact

      @Nullable public @Nullable org.bukkit.block.Block getTargetBlockExact(int maxDistance)
      Specified by:
      getTargetBlockExact in interface org.bukkit.entity.LivingEntity
    • getTargetBlockExact

      @Nullable public @Nullable org.bukkit.block.Block getTargetBlockExact(int maxDistance, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode)
      Specified by:
      getTargetBlockExact in interface org.bukkit.entity.LivingEntity
    • rayTraceBlocks

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceBlocks(double maxDistance)
      Specified by:
      rayTraceBlocks in interface org.bukkit.entity.LivingEntity
    • rayTraceBlocks

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceBlocks(double maxDistance, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode)
      Specified by:
      rayTraceBlocks in interface org.bukkit.entity.LivingEntity
    • getRemainingAir

      public int getRemainingAir()
      Specified by:
      getRemainingAir in interface org.bukkit.entity.LivingEntity
    • setRemainingAir

      public void setRemainingAir(int ticks)
      Specified by:
      setRemainingAir in interface org.bukkit.entity.LivingEntity
    • getMaximumAir

      public int getMaximumAir()
      Specified by:
      getMaximumAir in interface org.bukkit.entity.LivingEntity
    • setMaximumAir

      public void setMaximumAir(int ticks)
      Specified by:
      setMaximumAir in interface org.bukkit.entity.LivingEntity
    • getArrowCooldown

      public int getArrowCooldown()
      Specified by:
      getArrowCooldown in interface org.bukkit.entity.LivingEntity
    • setArrowCooldown

      public void setArrowCooldown(int i)
      Specified by:
      setArrowCooldown in interface org.bukkit.entity.LivingEntity
    • getArrowsInBody

      public int getArrowsInBody()
      Specified by:
      getArrowsInBody in interface org.bukkit.entity.LivingEntity
    • setArrowsInBody

      public void setArrowsInBody(int i)
      Specified by:
      setArrowsInBody in interface org.bukkit.entity.LivingEntity
    • getMaximumNoDamageTicks

      public int getMaximumNoDamageTicks()
      Specified by:
      getMaximumNoDamageTicks in interface org.bukkit.entity.LivingEntity
    • setMaximumNoDamageTicks

      public void setMaximumNoDamageTicks(int ticks)
      Specified by:
      setMaximumNoDamageTicks in interface org.bukkit.entity.LivingEntity
    • getLastDamage

      public double getLastDamage()
      Specified by:
      getLastDamage in interface org.bukkit.entity.LivingEntity
    • setLastDamage

      public void setLastDamage(double damage)
      Specified by:
      setLastDamage in interface org.bukkit.entity.LivingEntity
    • getNoDamageTicks

      public int getNoDamageTicks()
      Specified by:
      getNoDamageTicks in interface org.bukkit.entity.LivingEntity
    • setNoDamageTicks

      public void setNoDamageTicks(int ticks)
      Specified by:
      setNoDamageTicks in interface org.bukkit.entity.LivingEntity
    • getKiller

      @Nullable public @Nullable org.bukkit.entity.Player getKiller()
      Specified by:
      getKiller in interface org.bukkit.entity.LivingEntity
    • addPotionEffect

      public boolean addPotionEffect(@NotNull @NotNull org.bukkit.potion.PotionEffect effect)
      Specified by:
      addPotionEffect in interface org.bukkit.entity.LivingEntity
    • addPotionEffect

      public boolean addPotionEffect(@NotNull @NotNull org.bukkit.potion.PotionEffect effect, boolean force)
      Specified by:
      addPotionEffect in interface org.bukkit.entity.LivingEntity
    • addPotionEffects

      public boolean addPotionEffects(@NotNull @NotNull Collection<org.bukkit.potion.PotionEffect> effects)
      Specified by:
      addPotionEffects in interface org.bukkit.entity.LivingEntity
    • hasPotionEffect

      public boolean hasPotionEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type)
      Specified by:
      hasPotionEffect in interface org.bukkit.entity.LivingEntity
    • getPotionEffect

      @Nullable public @Nullable org.bukkit.potion.PotionEffect getPotionEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type)
      Specified by:
      getPotionEffect in interface org.bukkit.entity.LivingEntity
    • removePotionEffect

      public void removePotionEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type)
      Specified by:
      removePotionEffect in interface org.bukkit.entity.LivingEntity
    • getActivePotionEffects

      @NotNull public @NotNull Collection<org.bukkit.potion.PotionEffect> getActivePotionEffects()
      Specified by:
      getActivePotionEffects in interface org.bukkit.entity.LivingEntity
    • hasLineOfSight

      public boolean hasLineOfSight(@NotNull @NotNull org.bukkit.entity.Entity other)
      Specified by:
      hasLineOfSight in interface org.bukkit.entity.LivingEntity
    • getRemoveWhenFarAway

      public boolean getRemoveWhenFarAway()
      Specified by:
      getRemoveWhenFarAway in interface org.bukkit.entity.LivingEntity
    • setRemoveWhenFarAway

      public void setRemoveWhenFarAway(boolean remove)
      Specified by:
      setRemoveWhenFarAway in interface org.bukkit.entity.LivingEntity
    • getEquipment

      @Nullable public @Nullable org.bukkit.inventory.EntityEquipment getEquipment()
      Specified by:
      getEquipment in interface org.bukkit.entity.LivingEntity
    • setCanPickupItems

      public void setCanPickupItems(boolean pickup)
      Specified by:
      setCanPickupItems in interface org.bukkit.entity.LivingEntity
    • getCanPickupItems

      public boolean getCanPickupItems()
      Specified by:
      getCanPickupItems in interface org.bukkit.entity.LivingEntity
    • isLeashed

      public boolean isLeashed()
      Specified by:
      isLeashed in interface org.bukkit.entity.LivingEntity
    • getLeashHolder

      @NotNull public @NotNull org.bukkit.entity.Entity getLeashHolder() throws IllegalStateException
      Specified by:
      getLeashHolder in interface org.bukkit.entity.LivingEntity
      Throws:
      IllegalStateException
    • setLeashHolder

      public boolean setLeashHolder(@Nullable @Nullable org.bukkit.entity.Entity holder)
      Specified by:
      setLeashHolder in interface org.bukkit.entity.LivingEntity
    • isGliding

      public boolean isGliding()
      Specified by:
      isGliding in interface org.bukkit.entity.LivingEntity
    • setGliding

      public void setGliding(boolean gliding)
      Specified by:
      setGliding in interface org.bukkit.entity.LivingEntity
    • isSwimming

      public boolean isSwimming()
      Specified by:
      isSwimming in interface org.bukkit.entity.LivingEntity
    • setSwimming

      public void setSwimming(boolean swimming)
      Specified by:
      setSwimming in interface org.bukkit.entity.LivingEntity
    • isRiptiding

      public boolean isRiptiding()
      Specified by:
      isRiptiding in interface org.bukkit.entity.LivingEntity
    • isSleeping

      public boolean isSleeping()
      Specified by:
      isSleeping in interface org.bukkit.entity.LivingEntity
    • isClimbing

      public boolean isClimbing()
      Specified by:
      isClimbing in interface org.bukkit.entity.LivingEntity
    • setAI

      public void setAI(boolean ai)
      Specified by:
      setAI in interface org.bukkit.entity.LivingEntity
    • hasAI

      public boolean hasAI()
      Specified by:
      hasAI in interface org.bukkit.entity.LivingEntity
    • attack

      public void attack(@NotNull @NotNull org.bukkit.entity.Entity target)
      Specified by:
      attack in interface org.bukkit.entity.LivingEntity
    • swingMainHand

      public void swingMainHand()
      Specified by:
      swingMainHand in interface org.bukkit.entity.LivingEntity
    • swingOffHand

      public void swingOffHand()
      Specified by:
      swingOffHand in interface org.bukkit.entity.LivingEntity
    • setCollidable

      public void setCollidable(boolean collidable)
      Specified by:
      setCollidable in interface org.bukkit.entity.LivingEntity
    • isCollidable

      public boolean isCollidable()
      Specified by:
      isCollidable in interface org.bukkit.entity.LivingEntity
    • getCollidableExemptions

      @NotNull public @NotNull Set<UUID> getCollidableExemptions()
      Specified by:
      getCollidableExemptions in interface org.bukkit.entity.LivingEntity
    • getMemory

      @Nullable public <T> T getMemory(@NotNull @NotNull org.bukkit.entity.memory.MemoryKey<T> memoryKey)
      Specified by:
      getMemory in interface org.bukkit.entity.LivingEntity
    • setMemory

      public <T> void setMemory(@NotNull @NotNull org.bukkit.entity.memory.MemoryKey<T> memoryKey, @Nullable T memoryValue)
      Specified by:
      setMemory in interface org.bukkit.entity.LivingEntity
    • getCategory

      @NotNull public @NotNull org.bukkit.entity.EntityCategory getCategory()
      Specified by:
      getCategory in interface org.bukkit.entity.LivingEntity
    • setInvisible

      public void setInvisible(boolean b)
      Specified by:
      setInvisible in interface org.bukkit.entity.LivingEntity
    • isInvisible

      public boolean isInvisible()
      Specified by:
      isInvisible in interface org.bukkit.entity.LivingEntity
    • getAttribute

      @Nullable public @Nullable org.bukkit.attribute.AttributeInstance getAttribute(@NotNull @NotNull org.bukkit.attribute.Attribute attribute)
      Specified by:
      getAttribute in interface org.bukkit.attribute.Attributable
    • damage

      public void damage(double amount)
      Specified by:
      damage in interface org.bukkit.entity.Damageable
    • damage

      public void damage(double amount, @Nullable @Nullable org.bukkit.entity.Entity source)
      Specified by:
      damage in interface org.bukkit.entity.Damageable
    • getHealth

      public double getHealth()
      Specified by:
      getHealth in interface org.bukkit.entity.Damageable
    • setHealth

      public void setHealth(double health)
      Specified by:
      setHealth in interface org.bukkit.entity.Damageable
    • getAbsorptionAmount

      public double getAbsorptionAmount()
      Specified by:
      getAbsorptionAmount in interface org.bukkit.entity.Damageable
    • setAbsorptionAmount

      public void setAbsorptionAmount(double amount)
      Specified by:
      setAbsorptionAmount in interface org.bukkit.entity.Damageable
    • getMaxHealth

      public double getMaxHealth()
      Specified by:
      getMaxHealth in interface org.bukkit.entity.Damageable
    • setMaxHealth

      public void setMaxHealth(double health)
      Specified by:
      setMaxHealth in interface org.bukkit.entity.Damageable
    • resetMaxHealth

      public void resetMaxHealth()
      Specified by:
      resetMaxHealth in interface org.bukkit.entity.Damageable
    • getCustomName

      @Nullable public @Nullable String getCustomName()
      Specified by:
      getCustomName in interface org.bukkit.Nameable
    • setCustomName

      public void setCustomName(@Nullable @Nullable String name)
      Specified by:
      setCustomName in interface org.bukkit.Nameable
    • setMetadata

      public void setMetadata(@NotNull @NotNull String metadataKey, @NotNull @NotNull org.bukkit.metadata.MetadataValue newMetadataValue)
      Specified by:
      setMetadata in interface org.bukkit.metadata.Metadatable
    • getMetadata

      @NotNull public @NotNull List<org.bukkit.metadata.MetadataValue> getMetadata(@NotNull @NotNull String metadataKey)
      Specified by:
      getMetadata in interface org.bukkit.metadata.Metadatable
    • hasMetadata

      public boolean hasMetadata(@NotNull @NotNull String metadataKey)
      Specified by:
      hasMetadata in interface org.bukkit.metadata.Metadatable
    • removeMetadata

      public void removeMetadata(@NotNull @NotNull String metadataKey, @NotNull @NotNull org.bukkit.plugin.Plugin owningPlugin)
      Specified by:
      removeMetadata in interface org.bukkit.metadata.Metadatable
    • isPermissionSet

      public boolean isPermissionSet(@NotNull @NotNull String name)
      Specified by:
      isPermissionSet in interface org.bukkit.permissions.Permissible
    • isPermissionSet

      public boolean isPermissionSet(@NotNull @NotNull org.bukkit.permissions.Permission perm)
      Specified by:
      isPermissionSet in interface org.bukkit.permissions.Permissible
    • hasPermission

      public boolean hasPermission(@NotNull @NotNull String name)
      Specified by:
      hasPermission in interface org.bukkit.permissions.Permissible
    • hasPermission

      public boolean hasPermission(@NotNull @NotNull org.bukkit.permissions.Permission perm)
      Specified by:
      hasPermission in interface org.bukkit.permissions.Permissible
    • addAttachment

      @NotNull public @NotNull org.bukkit.permissions.PermissionAttachment addAttachment(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull String name, boolean value)
      Specified by:
      addAttachment in interface org.bukkit.permissions.Permissible
    • addAttachment

      @NotNull public @NotNull org.bukkit.permissions.PermissionAttachment addAttachment(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
      Specified by:
      addAttachment in interface org.bukkit.permissions.Permissible
    • addAttachment

      @Nullable public @Nullable org.bukkit.permissions.PermissionAttachment addAttachment(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull String name, boolean value, int ticks)
      Specified by:
      addAttachment in interface org.bukkit.permissions.Permissible
    • addAttachment

      @Nullable public @Nullable org.bukkit.permissions.PermissionAttachment addAttachment(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, int ticks)
      Specified by:
      addAttachment in interface org.bukkit.permissions.Permissible
    • removeAttachment

      public void removeAttachment(@NotNull @NotNull org.bukkit.permissions.PermissionAttachment attachment)
      Specified by:
      removeAttachment in interface org.bukkit.permissions.Permissible
    • recalculatePermissions

      public void recalculatePermissions()
      Specified by:
      recalculatePermissions in interface org.bukkit.permissions.Permissible
    • getEffectivePermissions

      @NotNull public @NotNull Set<org.bukkit.permissions.PermissionAttachmentInfo> getEffectivePermissions()
      Specified by:
      getEffectivePermissions in interface org.bukkit.permissions.Permissible
    • isOp

      public boolean isOp()
      Specified by:
      isOp in interface org.bukkit.permissions.ServerOperator
    • setOp

      public void setOp(boolean value)
      Specified by:
      setOp in interface org.bukkit.permissions.ServerOperator
    • getPersistentDataContainer

      @NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()
      Specified by:
      getPersistentDataContainer in interface org.bukkit.persistence.PersistentDataHolder
    • sendPluginMessage

      public void sendPluginMessage(@NotNull @NotNull org.bukkit.plugin.Plugin source, @NotNull @NotNull String channel, @NotNull @org.jetbrains.annotations.NotNull byte[] message)
      Specified by:
      sendPluginMessage in interface org.bukkit.plugin.messaging.PluginMessageRecipient
    • getListeningPluginChannels

      @NotNull public @NotNull Set<String> getListeningPluginChannels()
      Specified by:
      getListeningPluginChannels in interface org.bukkit.plugin.messaging.PluginMessageRecipient
    • launchProjectile

      @NotNull public <T extends org.bukkit.entity.Projectile> T launchProjectile(@NotNull @NotNull Class<? extends T> projectile)
      Specified by:
      launchProjectile in interface org.bukkit.projectiles.ProjectileSource
    • launchProjectile

      @NotNull public <T extends org.bukkit.entity.Projectile> T launchProjectile(@NotNull @NotNull Class<? extends T> projectile, @Nullable @Nullable org.bukkit.util.Vector velocity)
      Specified by:
      launchProjectile in interface org.bukkit.projectiles.ProjectileSource