Class PlayerMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
All Implemented Interfaces:
MessageTarget, SoundReceiver, 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 LivingEntityMock implements org.bukkit.entity.Player, SoundReceiver
  • Constructor Details

  • Method Details

    • getType

      @NotNull public @NotNull org.bukkit.entity.EntityType getType()
      Specified by:
      getType in interface org.bukkit.entity.Entity
    • 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.
    • 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
    • getPreviousGameMode

      public org.bukkit.GameMode getPreviousGameMode()
      Specified by:
      getPreviousGameMode in interface org.bukkit.entity.Player
    • 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
    • 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
    • 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
    • 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
    • isSleeping

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

      public int getSleepTicks()
      Specified by:
      getSleepTicks 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
    • 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
    • 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
    • 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
    • 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
    • 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.LivingEntity
    • 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
    • isGliding

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

      public void setGliding(boolean gliding)
      Specified by:
      setGliding in interface org.bukkit.entity.LivingEntity
      Overrides:
      setGliding 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
    • getDisplayName

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

      public void setDisplayName(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(String name)
      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
    • getAddress

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

      public void kickPlayer(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
    • 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(org.bukkit.entity.Entity entity, 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(org.bukkit.entity.Entity entity, org.bukkit.Sound sound, 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.
    • 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

      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, 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
    • sendSignChange

      public void sendSignChange(@NotNull @NotNull org.bukkit.Location loc, String[] lines)
      Specified by:
      sendSignChange in interface org.bukkit.entity.Player
    • 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
    • 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
    • getCustomName

      public String getCustomName()
      Specified by:
      getCustomName in interface org.bukkit.Nameable
      Overrides:
      getCustomName in class EntityMock
    • 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
    • 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
    • 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
    • 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

      public void setResourcePack(@NotNull @NotNull String url)
      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

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

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

      public void setResourcePack(@NotNull @NotNull String url, @Nullable @org.jetbrains.annotations.Nullable byte[] hash, @Nullable @Nullable String 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
    • 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
    • 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

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

      public void sendTitle(String title, String subtitle, int fadeIn, int stay, int fadeOut)
      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 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • getMemory

      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, T memoryValue)
      Specified by:
      setMemory in interface org.bukkit.entity.LivingEntity
    • 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
    • getPose

      @NotNull public @NotNull org.bukkit.entity.Pose getPose()
      Specified by:
      getPose in interface org.bukkit.entity.Entity
      Overrides:
      getPose in class EntityMock
    • 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
    • openBook

      public void openBook(@NotNull @NotNull org.bukkit.inventory.ItemStack book)
      Specified by:
      openBook 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
    • 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
    • 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
    • getCollidableExemptions

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

      public void sendBlockDamage(@NotNull @NotNull org.bukkit.Location loc, float progress)
      Specified by:
      sendBlockDamage 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(org.bukkit.entity.LivingEntity entity, org.bukkit.inventory.EquipmentSlot slot, org.bukkit.inventory.ItemStack item)
      Specified by:
      sendEquipmentChange in interface org.bukkit.entity.Player
    • hideEntity

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

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

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

      public void openSign(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
    • getSpawnCategory

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

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

      @NotNull public @NotNull PlayerMock.PlayerSpigotMock 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