Class PlayerMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
All Implemented Interfaces:
MessageTarget, SoundReceiver, com.destroystokyo.paper.network.NetworkClient, net.kyori.adventure.audience.Audience, net.kyori.adventure.identity.Identified, net.kyori.adventure.pointer.Pointered, net.kyori.adventure.sound.Sound.Emitter, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, 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 PlayerMock extends HumanEntityMock implements org.bukkit.entity.Player, SoundReceiver
  • Constructor Details

  • Method Details

    • disconnect

      public boolean disconnect()
      Simulates a disconnection from the server.
      Returns:
      True if the player was disconnected, false if they were already offline.
    • reconnect

      public boolean reconnect()
      Simulates a connection to the server.
      Returns:
      True if the player was connected, false if they were already online.
    • getType

      @NotNull public @NotNull org.bukkit.entity.EntityType getType()
      Specified by:
      getType in interface org.bukkit.entity.Entity
      Overrides:
      getType in class EntityMock
    • assertGameMode

      public void assertGameMode(org.bukkit.GameMode expectedGamemode)
      Assert that the player is in a specific gamemode.
      Parameters:
      expectedGamemode - The gamemode the player should be in.
    • simulateBlockDamagePure

      protected org.bukkit.event.block.BlockDamageEvent simulateBlockDamagePure(org.bukkit.block.Block block)
      Simulates the player damaging a block just like simulateBlockDamage(Block). However, if InstaBreak is enabled, it will not automatically fire a BlockBreakEvent. It will also still fire a BlockDamageEvent even if the player is not in survival mode.
      Parameters:
      block - The block to damage.
      Returns:
      The event that has been fired.
    • simulateBlockDamage

      @Nullable public @Nullable org.bukkit.event.block.BlockDamageEvent simulateBlockDamage(org.bukkit.block.Block block)
      Simulates the player damaging a block. Note that this method does not anything unless the player is in survival mode. If InstaBreak is set to true by an event handler, a BlockBreakEvent is immediately fired. The result will then still be whether or not the BlockDamageEvent was cancelled or not, not the later BlockBreakEvent.
      Parameters:
      block - The block to damage.
      Returns:
      the event that was fired, null if the player was not in survival gamemode.
    • simulateBlockBreak

      @Nullable public @Nullable org.bukkit.event.block.BlockBreakEvent simulateBlockBreak(org.bukkit.block.Block block)
      Simulates the player breaking a block. This method will not break the block if the player is in adventure or spectator mode. If the player is in survival mode, the player will first damage the block.
      Parameters:
      block - The block to break.
      Returns:
      The event that was fired, null if it wasn't or if the player was in adventure mode or in spectator mode.
    • simulateBlockPlace

      @Nullable public @Nullable org.bukkit.event.block.BlockPlaceEvent simulateBlockPlace(org.bukkit.Material material, org.bukkit.Location location)
      Simulates the player placing a block. This method will not place the block if the player is in adventure or spectator mode.
      Parameters:
      material - The material of the location to set to
      location - The location of the material to set to
      Returns:
      The event that was fired. null if it wasn't or the player was in adventure mode.
    • simulateInventoryClick

      public org.bukkit.event.inventory.InventoryClickEvent simulateInventoryClick(int slot)
      Simulates the player clicking an Inventory.
      Parameters:
      slot - The slot in the player's open inventory
      Returns:
      The event that was fired.
    • simulateInventoryClick

      public org.bukkit.event.inventory.InventoryClickEvent simulateInventoryClick(org.bukkit.inventory.InventoryView inventoryView, int slot)
      Simulates the player clicking an Inventory.
      Parameters:
      inventoryView - The inventory view we want to click
      slot - The slot in the provided Inventory
      Returns:
      The event that was fired.
    • simulateInventoryClick

      public org.bukkit.event.inventory.InventoryClickEvent simulateInventoryClick(org.bukkit.inventory.InventoryView inventoryView, org.bukkit.event.inventory.ClickType clickType, int slot)
      Simulates the player clicking an Inventory.
      Parameters:
      inventoryView - The inventory view we want to click
      clickType - The click type we want to fire
      slot - The slot in the provided Inventory
      Returns:
      The event that was fired.
    • respawn

      public void respawn()
      This method simulates the Player respawning and also calls a PlayerRespawnEvent. Should the Player not be dead (when LivingEntityMock.isDead() returns false) then this will throw an UnsupportedOperationException. Otherwise, the Location will be set to Player.getBedSpawnLocation() or World.getSpawnLocation(). Lastly the health of this Player will be restored and set to the max health.
    • simulatePlayerMove

      @NotNull public @NotNull org.bukkit.event.player.PlayerMoveEvent simulatePlayerMove(@NotNull @NotNull org.bukkit.Location moveLocation)
      This method moves player instantly with respect to PlayerMoveEvent
      Parameters:
      moveLocation - Location to move player to
      Returns:
      The event that is fired
    • 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
    • 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
    • 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

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

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

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

      @NotNull public @NotNull org.bukkit.inventory.InventoryView getOpenInventory()
      Specified by:
      getOpenInventory 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
    • openInventory

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

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

      public void closeInventory(@NotNull org.bukkit.event.inventory.InventoryCloseEvent.Reason reason)
      Specified by:
      closeInventory in interface org.bukkit.entity.HumanEntity
    • assertInventoryView

      public void assertInventoryView(String message, org.bukkit.event.inventory.InventoryType type, Predicate<org.bukkit.inventory.Inventory> predicate)
      This method is an assertion for the currently open InventoryView for this Player. The Predicate refers to the top inventory, not the PlayerInventory. It uses the method InventoryView.getTopInventory().
      Parameters:
      message - The message to display upon failure
      type - The InventoryType you are expecting
      predicate - A custom Predicate to check the opened Inventory.
    • assertInventoryView

      public void assertInventoryView(org.bukkit.event.inventory.InventoryType type, Predicate<org.bukkit.inventory.Inventory> predicate)
      This method is an assertion for the currently open InventoryView for this Player. The Predicate refers to the top inventory, not the PlayerInventory. It uses the method InventoryView.getTopInventory().
      Parameters:
      type - The InventoryType you are expecting
      predicate - A custom Predicate to check the opened Inventory.
    • assertInventoryView

      public void assertInventoryView(org.bukkit.event.inventory.InventoryType type)
      This method is an assertion for the currently open InventoryView for this Player.
      Parameters:
      type - The InventoryType you are expecting
    • assertInventoryView

      public void assertInventoryView(String message, org.bukkit.event.inventory.InventoryType type)
      This method is an assertion for the currently open InventoryView for this Player.
      Parameters:
      message - The message to display upon failure
      type - The InventoryType you are expecting
    • updateInventory

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

      public boolean performCommand(@NotNull @NotNull String command)
      Specified by:
      performCommand in interface org.bukkit.entity.Player
    • 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 @NotNull org.bukkit.inventory.InventoryView.Property prop, int value)
      Specified by:
      setWindowProperty in interface org.bukkit.entity.HumanEntity
    • openWorkbench

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

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

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

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

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

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

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

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

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

      @Nullable public @Nullable org.bukkit.inventory.InventoryView openStonecutter(@Nullable @Nullable org.bukkit.Location location, boolean force)
      Specified by:
      openStonecutter 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(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(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
    • isDeeplySleeping

      public boolean isDeeplySleeping()
      Specified by:
      isDeeplySleeping in interface org.bukkit.entity.HumanEntity
    • isSleeping

      public boolean isSleeping()
      Specified by:
      isSleeping in interface org.bukkit.entity.LivingEntity
      Overrides:
      isSleeping in class LivingEntityMock
    • getSleepTicks

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

      @Nullable public @Nullable org.bukkit.Location getPotentialBedLocation()
      Specified by:
      getPotentialBedLocation 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
      Specified by:
      isHandRaised in interface org.bukkit.entity.LivingEntity
      Overrides:
      isHandRaised in class LivingEntityMock
    • getHandRaised

      @NotNull public @NotNull org.bukkit.inventory.EquipmentSlot getHandRaised()
      Specified by:
      getHandRaised in interface org.bukkit.entity.LivingEntity
      Overrides:
      getHandRaised in class LivingEntityMock
    • isJumping

      public boolean isJumping()
      Specified by:
      isJumping in interface org.bukkit.entity.LivingEntity
      Overrides:
      isJumping in class LivingEntityMock
    • setJumping

      public void setJumping(boolean jumping)
      Specified by:
      setJumping in interface org.bukkit.entity.LivingEntity
      Overrides:
      setJumping in class LivingEntityMock
    • playPickupItemAnimation

      public void playPickupItemAnimation(@NotNull @NotNull org.bukkit.entity.Item item, int quantity)
      Specified by:
      playPickupItemAnimation in interface org.bukkit.entity.LivingEntity
      Overrides:
      playPickupItemAnimation in class LivingEntityMock
    • getHurtDirection

      public float getHurtDirection()
      Specified by:
      getHurtDirection in interface org.bukkit.entity.LivingEntity
      Overrides:
      getHurtDirection in class LivingEntityMock
    • setHurtDirection

      public void setHurtDirection(float hurtDirection)
      Specified by:
      setHurtDirection in interface org.bukkit.entity.LivingEntity
      Overrides:
      setHurtDirection in class LivingEntityMock
    • 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
    • releaseLeftShoulderEntity

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

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

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

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

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

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

      public void openSign(@NotNull @NotNull org.bukkit.block.Sign sign)
      Specified by:
      openSign in interface org.bukkit.entity.HumanEntity
      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
    • getEyeHeight

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

      public double getEyeHeight(boolean ignorePose)
      Specified by:
      getEyeHeight in interface org.bukkit.entity.LivingEntity
      Overrides:
      getEyeHeight in class LivingEntityMock
    • getLineOfSight

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

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

      @Nullable public @Nullable org.bukkit.block.Block getTargetBlock(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode)
      Specified by:
      getTargetBlock in interface org.bukkit.entity.LivingEntity
      Overrides:
      getTargetBlock in class LivingEntityMock
    • getTargetBlockFace

      @Nullable public @Nullable org.bukkit.block.BlockFace getTargetBlockFace(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode)
      Specified by:
      getTargetBlockFace in interface org.bukkit.entity.LivingEntity
      Overrides:
      getTargetBlockFace in class LivingEntityMock
    • getTargetBlockInfo

      @Nullable public @Nullable com.destroystokyo.paper.block.TargetBlockInfo getTargetBlockInfo(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode)
      Specified by:
      getTargetBlockInfo in interface org.bukkit.entity.LivingEntity
      Overrides:
      getTargetBlockInfo in class LivingEntityMock
    • getTargetEntity

      @Nullable public @Nullable org.bukkit.entity.Entity getTargetEntity(int maxDistance, boolean ignoreBlocks)
      Specified by:
      getTargetEntity in interface org.bukkit.entity.LivingEntity
      Overrides:
      getTargetEntity in class LivingEntityMock
    • getTargetEntityInfo

      @Nullable public @Nullable com.destroystokyo.paper.entity.TargetEntityInfo getTargetEntityInfo(int maxDistance, boolean ignoreBlocks)
      Specified by:
      getTargetEntityInfo in interface org.bukkit.entity.LivingEntity
      Overrides:
      getTargetEntityInfo in class LivingEntityMock
    • getLastTwoTargetBlocks

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

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

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

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

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

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

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

      public org.bukkit.entity.Player getKiller()
      Specified by:
      getKiller in interface org.bukkit.entity.LivingEntity
      Overrides:
      getKiller in class LivingEntityMock
    • setKiller

      public void setKiller(@Nullable @Nullable org.bukkit.entity.Player killer)
      Specified by:
      setKiller in interface org.bukkit.entity.LivingEntity
      Overrides:
      setKiller in class LivingEntityMock
    • hasLineOfSight

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

      public boolean hasLineOfSight(@NotNull @NotNull org.bukkit.Location location)
      Specified by:
      hasLineOfSight in interface org.bukkit.entity.LivingEntity
      Overrides:
      hasLineOfSight in class LivingEntityMock
    • getRemoveWhenFarAway

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

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

      public org.bukkit.inventory.EntityEquipment getEquipment()
      Specified by:
      getEquipment in interface org.bukkit.entity.HumanEntity
      Specified by:
      getEquipment in interface org.bukkit.entity.LivingEntity
      Overrides:
      getEquipment in class LivingEntityMock
    • setCanPickupItems

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

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

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

      @NotNull public @NotNull org.bukkit.entity.Entity getLeashHolder()
      Specified by:
      getLeashHolder in interface org.bukkit.entity.LivingEntity
      Overrides:
      getLeashHolder in class LivingEntityMock
    • setLeashHolder

      public boolean setLeashHolder(org.bukkit.entity.Entity holder)
      Specified by:
      setLeashHolder in interface org.bukkit.entity.LivingEntity
      Overrides:
      setLeashHolder in class LivingEntityMock
    • setAI

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

      public boolean hasAI()
      Specified by:
      hasAI in interface org.bukkit.entity.LivingEntity
      Overrides:
      hasAI in class LivingEntityMock
    • setCollidable

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

      public boolean isCollidable()
      Specified by:
      isCollidable in interface org.bukkit.entity.LivingEntity
      Overrides:
      isCollidable in class LivingEntityMock
    • 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
    • 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
    • setLastPlayed

      public void setLastPlayed(long time)
    • serialize

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

      public void sendPluginMessage(@NotNull @NotNull org.bukkit.plugin.Plugin source, @NotNull @NotNull String channel, 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
    • displayName

      @NotNull public @NotNull net.kyori.adventure.text.Component displayName()
      Specified by:
      displayName in interface org.bukkit.entity.Player
    • displayName

      public void displayName(@Nullable @Nullable net.kyori.adventure.text.Component displayName)
      Specified by:
      displayName in interface org.bukkit.entity.Player
    • getDisplayName

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

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

      public void playerListName(@Nullable @Nullable net.kyori.adventure.text.Component name)
      Specified by:
      playerListName in interface org.bukkit.entity.Player
    • playerListName

      @NotNull public @NotNull net.kyori.adventure.text.Component playerListName()
      Specified by:
      playerListName in interface org.bukkit.entity.Player
    • playerListHeader

      @Nullable public @Nullable net.kyori.adventure.text.Component playerListHeader()
      Specified by:
      playerListHeader in interface org.bukkit.entity.Player
    • playerListFooter

      @Nullable public @Nullable net.kyori.adventure.text.Component playerListFooter()
      Specified by:
      playerListFooter in interface org.bukkit.entity.Player
    • getPlayerListName

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

      @Deprecated public void setPlayerListName(String name)
      Deprecated.
      Specified by:
      setPlayerListName 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
    • setAddress

      public void setAddress(@Nullable @Nullable InetSocketAddress address)
      Sets the InetSocketAddress returned by getAddress().
      Parameters:
      address - The address to set.
    • getAddress

      @Nullable public @Nullable InetSocketAddress getAddress()
      Specified by:
      getAddress in interface com.destroystokyo.paper.network.NetworkClient
      Specified by:
      getAddress in interface org.bukkit.entity.Player
    • getProtocolVersion

      public int getProtocolVersion()
      Specified by:
      getProtocolVersion in interface com.destroystokyo.paper.network.NetworkClient
    • getVirtualHost

      @Nullable public @Nullable InetSocketAddress getVirtualHost()
      Specified by:
      getVirtualHost in interface com.destroystokyo.paper.network.NetworkClient
    • sendRawMessage

      public void sendRawMessage(@Nullable @Nullable 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 sender, @NotNull @NotNull String message)
      Specified by:
      sendRawMessage in interface org.bukkit.conversations.Conversable
    • kickPlayer

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

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

      public void kick(@Nullable @Nullable net.kyori.adventure.text.Component message)
      Specified by:
      kick in interface org.bukkit.entity.Player
    • kick

      public void kick(@Nullable @Nullable net.kyori.adventure.text.Component message, @NotNull org.bukkit.event.player.PlayerKickEvent.Cause cause)
      Specified by:
      kick in interface org.bukkit.entity.Player
    • chat

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

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

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

      @NotNull public @NotNull org.bukkit.event.player.PlayerToggleSneakEvent simulateSneak(boolean sneak)
    • 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
    • simulateSprint

      @NotNull public @NotNull org.bukkit.event.player.PlayerToggleSprintEvent simulateSprint(boolean sprint)
    • 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
    • isSleepingIgnored

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

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

      @Deprecated public void playNote(@NotNull @NotNull org.bukkit.Location loc, byte instrument, byte note)
      Deprecated.
      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 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, 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 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.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.entity.Entity entity, @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
    • getHeardSounds

      @NotNull public @NotNull List<AudioExperience> getHeardSounds()
      Description copied from interface: SoundReceiver
      This returns a List of every AudioExperience this receiver has received.
      Specified by:
      getHeardSounds in interface SoundReceiver
      Returns:
      A mutable List containing every heard sound.
    • addHeardSound

      public void addHeardSound(@NotNull @NotNull AudioExperience audioExperience)
      Specified by:
      addHeardSound in interface SoundReceiver
    • 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, org.bukkit.SoundCategory category)
      Specified by:
      stopSound in interface org.bukkit.entity.Player
    • stopSound

      public void stopSound(@NotNull @NotNull String sound, 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

      @Deprecated public void playEffect(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.Effect effect, int data)
      Deprecated.
      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, 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

      @Deprecated public void sendBlockChange(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.Material material, byte data)
      Deprecated.
      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
    • sendSignChange

      public void sendSignChange(@NotNull @NotNull org.bukkit.Location loc, @Nullable @Nullable List<net.kyori.adventure.text.Component> lines, @NotNull @NotNull org.bukkit.DyeColor dyeColor, boolean hasGlowingText) throws IllegalArgumentException
      Specified by:
      sendSignChange in interface org.bukkit.entity.Player
      Throws:
      IllegalArgumentException
    • sendSignChange

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

      public void sendSignChange(@NotNull @NotNull org.bukkit.Location loc, 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 loc, @Nullable @Nullable String[] lines, @NotNull @NotNull org.bukkit.DyeColor dyeColor, boolean hasGlowingText) 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
    • sendActionBar

      @Deprecated public void sendActionBar(@NotNull @NotNull String message)
      Deprecated.
      Specified by:
      sendActionBar in interface org.bukkit.entity.Player
    • sendActionBar

      @Deprecated public void sendActionBar(char alternateChar, @NotNull @NotNull String message)
      Deprecated.
      Specified by:
      sendActionBar in interface org.bukkit.entity.Player
    • sendActionBar

      @Deprecated public void sendActionBar(@NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent... message)
      Deprecated.
      Specified by:
      sendActionBar in interface org.bukkit.entity.Player
    • setPlayerListHeaderFooter

      @Deprecated public void setPlayerListHeaderFooter(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent[] header, @Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent[] footer)
      Deprecated.
      Specified by:
      setPlayerListHeaderFooter in interface org.bukkit.entity.Player
    • setPlayerListHeaderFooter

      @Deprecated public void setPlayerListHeaderFooter(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent header, @Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent footer)
      Deprecated.
      Specified by:
      setPlayerListHeaderFooter in interface org.bukkit.entity.Player
    • setTitleTimes

      @Deprecated public void setTitleTimes(int fadeInTicks, int stayTicks, int fadeOutTicks)
      Deprecated.
      Specified by:
      setTitleTimes in interface org.bukkit.entity.Player
    • setSubtitle

      @Deprecated public void setSubtitle(net.md_5.bungee.api.chat.BaseComponent[] subtitle)
      Deprecated.
      Specified by:
      setSubtitle in interface org.bukkit.entity.Player
    • setSubtitle

      @Deprecated public void setSubtitle(net.md_5.bungee.api.chat.BaseComponent subtitle)
      Deprecated.
      Specified by:
      setSubtitle in interface org.bukkit.entity.Player
    • showTitle

      @Deprecated public void showTitle(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent[] title)
      Deprecated.
      Specified by:
      showTitle in interface org.bukkit.entity.Player
    • showTitle

      @Deprecated public void showTitle(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent title)
      Deprecated.
      Specified by:
      showTitle in interface org.bukkit.entity.Player
    • showTitle

      @Deprecated public void showTitle(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent[] title, @Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent[] subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks)
      Deprecated.
      Specified by:
      showTitle in interface org.bukkit.entity.Player
    • showTitle

      @Deprecated public void showTitle(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent title, @Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks)
      Deprecated.
      Specified by:
      showTitle in interface org.bukkit.entity.Player
    • sendTitle

      @Deprecated public void sendTitle(@NotNull @NotNull com.destroystokyo.paper.Title title)
      Deprecated.
      Specified by:
      sendTitle in interface org.bukkit.entity.Player
    • updateTitle

      @Deprecated public void updateTitle(@NotNull @NotNull com.destroystokyo.paper.Title title)
      Deprecated.
      Specified by:
      updateTitle in interface org.bukkit.entity.Player
    • hideTitle

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int amount)
      Specified by:
      incrementStatistic in interface org.bukkit.OfflinePlayer
    • 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
    • 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
    • getPlayerWeather

      public org.bukkit.WeatherType getPlayerWeather()
      Specified by:
      getPlayerWeather 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
    • 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
    • giveExp

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

      public int applyMending(int amount)
      Specified by:
      applyMending 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
    • 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 foodLevel)
      Specified by:
      setFoodLevel in interface org.bukkit.entity.HumanEntity
    • 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
    • getLastLogin

      public long getLastLogin()
      Specified by:
      getLastLogin in interface org.bukkit.OfflinePlayer
    • getLastSeen

      public long getLastSeen()
      Specified by:
      getLastSeen in interface org.bukkit.OfflinePlayer
    • setBedSpawnLocation

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

      public void setBedSpawnLocation(@Nullable @Nullable org.bukkit.Location loc, boolean force)
      Specified by:
      setBedSpawnLocation in interface org.bukkit.entity.Player
    • 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

      @Deprecated public void hidePlayer(@NotNull @NotNull org.bukkit.entity.Player player)
      Deprecated.
      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

      @Deprecated public void showPlayer(@NotNull @NotNull org.bukkit.entity.Player player)
      Deprecated.
      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

      @Experimental 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

      @Experimental 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
    • simulateToggleFlight

      @NotNull public @NotNull org.bukkit.event.player.PlayerToggleFlightEvent simulateToggleFlight(boolean fly)
    • getFlySpeed

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

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

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

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

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

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

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

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

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

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

      public void setResourcePack(@NotNull @NotNull String url, byte @Nullable [] hash, @Nullable @Nullable net.kyori.adventure.text.Component prompt, boolean force)
      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)
      Specified by:
      setScoreboard in interface org.bukkit.entity.Player
    • getWorldBorder

      @Nullable public @Nullable org.bukkit.WorldBorder getWorldBorder()
      Specified by:
      getWorldBorder in interface org.bukkit.entity.Player
    • setWorldBorder

      public void setWorldBorder(@Nullable @Nullable org.bukkit.WorldBorder border)
      Specified by:
      setWorldBorder in interface org.bukkit.entity.Player
    • setHealth

      public void setHealth(double health)
      Specified by:
      setHealth in interface org.bukkit.entity.Damageable
      Overrides:
      setHealth in class LivingEntityMock
    • 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
    • getHealthScale

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

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

      public void sendHealthUpdate(double health, int foodLevel, float saturationLevel)
      Specified by:
      sendHealthUpdate in interface org.bukkit.entity.Player
    • sendHealthUpdate

      public void sendHealthUpdate()
      Specified by:
      sendHealthUpdate in interface org.bukkit.entity.Player
    • getSpectatorTarget

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

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

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

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

      public String nextTitle()
    • nextSubTitle

      public String nextSubTitle()
    • resetTitle

      public void resetTitle()
      Specified by:
      resetTitle in interface net.kyori.adventure.audience.Audience
      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, 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, 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, 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, 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, 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, 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
    • getLocale

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

      public boolean getAffectsSpawning()
      Specified by:
      getAffectsSpawning in interface org.bukkit.entity.Player
    • setAffectsSpawning

      public void setAffectsSpawning(boolean affects)
      Specified by:
      setAffectsSpawning in interface org.bukkit.entity.Player
    • getViewDistance

      public int getViewDistance()
      Specified by:
      getViewDistance in interface org.bukkit.entity.Player
    • setViewDistance

      public void setViewDistance(int viewDistance)
      Specified by:
      setViewDistance in interface org.bukkit.entity.Player
    • getSimulationDistance

      public int getSimulationDistance()
      Specified by:
      getSimulationDistance in interface org.bukkit.entity.Player
    • setSimulationDistance

      public void setSimulationDistance(int simulationDistance)
      Specified by:
      setSimulationDistance in interface org.bukkit.entity.Player
    • getNoTickViewDistance

      @Deprecated public int getNoTickViewDistance()
      Deprecated.
      Specified by:
      getNoTickViewDistance in interface org.bukkit.entity.Player
    • setNoTickViewDistance

      @Deprecated public void setNoTickViewDistance(int viewDistance)
      Deprecated.
      Specified by:
      setNoTickViewDistance in interface org.bukkit.entity.Player
    • getSendViewDistance

      public int getSendViewDistance()
      Specified by:
      getSendViewDistance in interface org.bukkit.entity.Player
    • setSendViewDistance

      public void setSendViewDistance(int viewDistance)
      Specified by:
      setSendViewDistance in interface org.bukkit.entity.Player
    • isSwimming

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

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

      public boolean isRiptiding()
      Specified by:
      isRiptiding in interface org.bukkit.entity.LivingEntity
      Overrides:
      isRiptiding in class LivingEntityMock
    • isPersistent

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

      public void setPersistent(boolean persistent)
      Specified by:
      setPersistent in interface org.bukkit.entity.Entity
      Overrides:
      setPersistent in class EntityMock
    • getPlayerListHeader

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

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

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

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

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

      public void updateCommands()
      Specified by:
      updateCommands in interface org.bukkit.entity.Player
    • 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
    • getTargetBlockExact

      public org.bukkit.block.Block getTargetBlockExact(int maxDistance)
      Specified by:
      getTargetBlockExact in interface org.bukkit.entity.LivingEntity
      Overrides:
      getTargetBlockExact in class LivingEntityMock
    • getTargetBlockExact

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

      public org.bukkit.util.RayTraceResult rayTraceBlocks(double maxDistance)
      Specified by:
      rayTraceBlocks in interface org.bukkit.entity.LivingEntity
      Overrides:
      rayTraceBlocks in class LivingEntityMock
    • rayTraceBlocks

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

      public int getBeeStingerCooldown()
      Specified by:
      getBeeStingerCooldown in interface org.bukkit.entity.LivingEntity
      Overrides:
      getBeeStingerCooldown in class LivingEntityMock
    • setBeeStingerCooldown

      public void setBeeStingerCooldown(int ticks)
      Specified by:
      setBeeStingerCooldown in interface org.bukkit.entity.LivingEntity
      Overrides:
      setBeeStingerCooldown in class LivingEntityMock
    • getBeeStingersInBody

      public int getBeeStingersInBody()
      Specified by:
      getBeeStingersInBody in interface org.bukkit.entity.LivingEntity
      Overrides:
      getBeeStingersInBody in class LivingEntityMock
    • setBeeStingersInBody

      public void setBeeStingersInBody(int count)
      Specified by:
      setBeeStingersInBody in interface org.bukkit.entity.LivingEntity
      Overrides:
      setBeeStingersInBody in class LivingEntityMock
    • getBoundingBox

      @NotNull public @NotNull org.bukkit.util.BoundingBox getBoundingBox()
      Specified by:
      getBoundingBox in interface org.bukkit.entity.Entity
      Overrides:
      getBoundingBox in class EntityMock
    • getFacing

      @NotNull public @NotNull org.bukkit.block.BlockFace getFacing()
      Specified by:
      getFacing in interface org.bukkit.entity.Entity
      Overrides:
      getFacing in class EntityMock
    • getClientViewDistance

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

      @NotNull public @NotNull Locale locale()
      Specified by:
      locale in interface org.bukkit.entity.Player
    • 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
    • getPose

      @NotNull public @NotNull org.bukkit.entity.Pose getPose()
      Specified by:
      getPose in interface org.bukkit.entity.Entity
      Overrides:
      getPose in class EntityMock
    • openBook

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

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

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

      public void setResourcePack(@NotNull @NotNull String url, @NotNull @NotNull String hash, boolean required, @Nullable @Nullable net.kyori.adventure.text.Component resourcePackPrompt)
      Specified by:
      setResourcePack in interface org.bukkit.entity.Player
    • getResourcePackStatus

      public @Nullable org.bukkit.event.player.PlayerResourcePackStatusEvent.Status getResourcePackStatus()
      Specified by:
      getResourcePackStatus in interface org.bukkit.entity.Player
    • getResourcePackHash

      @Deprecated @Nullable public @Nullable String getResourcePackHash()
      Deprecated.
      Specified by:
      getResourcePackHash in interface org.bukkit.entity.Player
    • hasResourcePack

      public boolean hasResourcePack()
      Specified by:
      hasResourcePack in interface org.bukkit.entity.Player
    • getPlayerProfile

      @NotNull public @NotNull com.destroystokyo.paper.profile.PlayerProfile getPlayerProfile()
      Specified by:
      getPlayerProfile in interface org.bukkit.OfflinePlayer
      Specified by:
      getPlayerProfile in interface org.bukkit.entity.Player
    • setPlayerProfile

      public void setPlayerProfile(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile profile)
      Specified by:
      setPlayerProfile in interface org.bukkit.entity.Player
    • getCooldownPeriod

      public float getCooldownPeriod()
      Specified by:
      getCooldownPeriod in interface org.bukkit.entity.Player
    • getCooledAttackStrength

      public float getCooledAttackStrength(float adjustTicks)
      Specified by:
      getCooledAttackStrength in interface org.bukkit.entity.Player
    • resetCooldown

      public void resetCooldown()
      Specified by:
      resetCooldown in interface org.bukkit.entity.Player
    • getClientOption

      @NotNull public <T> T getClientOption(@NotNull @NotNull com.destroystokyo.paper.ClientOption<T> option)
      Specified by:
      getClientOption in interface org.bukkit.entity.Player
    • boostElytra

      @Nullable public @Nullable org.bukkit.entity.Firework boostElytra(@NotNull @NotNull org.bukkit.inventory.ItemStack firework)
      Specified by:
      boostElytra in interface org.bukkit.entity.Player
    • sendOpLevel

      public void sendOpLevel(byte level)
      Specified by:
      sendOpLevel in interface org.bukkit.entity.Player
    • getClientBrandName

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

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

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

      public void swingOffHand()
      Specified by:
      swingOffHand in interface org.bukkit.entity.LivingEntity
      Overrides:
      swingOffHand in class LivingEntityMock
    • 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
    • getAttackCooldown

      public float getAttackCooldown()
      Specified by:
      getAttackCooldown 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
    • dropItem

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

      public void sendBlockDamage(@NotNull @NotNull org.bukkit.Location loc, float progress)
      Specified by:
      sendBlockDamage in interface org.bukkit.entity.Player
    • sendMultiBlockChange

      public void sendMultiBlockChange(@NotNull @NotNull Map<org.bukkit.Location,org.bukkit.block.data.BlockData> blockChanges)
      Specified by:
      sendMultiBlockChange in interface org.bukkit.entity.Player
    • sendMultiBlockChange

      public void sendMultiBlockChange(@NotNull @NotNull Map<org.bukkit.Location,org.bukkit.block.data.BlockData> blockChanges, boolean suppressLightUpdates)
      Specified by:
      sendMultiBlockChange in interface org.bukkit.entity.Player
    • getSaturatedRegenRate

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

      public void setSaturatedRegenRate(int ticks)
      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 ticks)
      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 ticks)
      Specified by:
      setStarvationRate in interface org.bukkit.entity.HumanEntity
    • getPing

      public int getPing()
      Specified by:
      getPing in interface org.bukkit.entity.Player
    • 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
      Overrides:
      teleport in class EntityMock
    • sendEquipmentChange

      public void sendEquipmentChange(@NotNull @NotNull org.bukkit.entity.LivingEntity entity, @NotNull @NotNull org.bukkit.inventory.EquipmentSlot slot, @NotNull @NotNull org.bukkit.inventory.ItemStack item)
      Specified by:
      sendEquipmentChange in interface org.bukkit.entity.Player
    • isInRain

      public boolean isInRain()
      Specified by:
      isInRain in interface org.bukkit.entity.Entity
      Overrides:
      isInRain in class EntityMock
    • isInBubbleColumn

      public boolean isInBubbleColumn()
      Specified by:
      isInBubbleColumn in interface org.bukkit.entity.Entity
      Overrides:
      isInBubbleColumn in class EntityMock
    • isInWaterOrRain

      public boolean isInWaterOrRain()
      Specified by:
      isInWaterOrRain in interface org.bukkit.entity.Entity
      Overrides:
      isInWaterOrRain in class EntityMock
    • isInWaterOrBubbleColumn

      public boolean isInWaterOrBubbleColumn()
      Specified by:
      isInWaterOrBubbleColumn in interface org.bukkit.entity.Entity
      Overrides:
      isInWaterOrBubbleColumn in class EntityMock
    • isInLava

      public boolean isInLava()
      Specified by:
      isInLava in interface org.bukkit.entity.Entity
      Overrides:
      isInLava in class EntityMock
    • isTicking

      public boolean isTicking()
      Specified by:
      isTicking in interface org.bukkit.entity.Entity
      Overrides:
      isTicking in class EntityMock
    • registerAttribute

      public void registerAttribute(@NotNull @NotNull org.bukkit.attribute.Attribute attribute)
      Specified by:
      registerAttribute in interface org.bukkit.attribute.Attributable
      Overrides:
      registerAttribute in class LivingEntityMock
    • spigot

      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
      Overrides:
      spigot in class EntityMock