public class PlayerMock extends LivingEntityMock implements org.bukkit.entity.Player
attributes| Constructor and Description |
|---|
PlayerMock(ServerMock server,
java.lang.String name) |
PlayerMock(ServerMock server,
java.lang.String name,
java.util.UUID uuid) |
| Modifier and Type | Method and Description |
|---|---|
void |
abandonConversation(org.bukkit.conversations.Conversation conversation) |
void |
abandonConversation(org.bukkit.conversations.Conversation conversation,
org.bukkit.conversations.ConversationAbandonedEvent details) |
void |
acceptConversationInput(java.lang.String input) |
boolean |
addPotionEffect(org.bukkit.potion.PotionEffect effect) |
boolean |
addPotionEffect(org.bukkit.potion.PotionEffect effect,
boolean force) |
boolean |
addPotionEffects(java.util.Collection<org.bukkit.potion.PotionEffect> effects) |
void |
assertGameMode(org.bukkit.GameMode expectedGamemode)
Assert that the player is in a specific gamemode.
|
void |
attack(org.bukkit.entity.Entity target) |
boolean |
beginConversation(org.bukkit.conversations.Conversation conversation) |
boolean |
canSee(org.bukkit.entity.Player player) |
void |
chat(java.lang.String msg) |
void |
closeInventory() |
void |
decrementStatistic(org.bukkit.Statistic statistic) |
void |
decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType) |
void |
decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType,
int amount) |
void |
decrementStatistic(org.bukkit.Statistic statistic,
int amount) |
void |
decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material) |
void |
decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material,
int amount) |
boolean |
discoverRecipe(org.bukkit.NamespacedKey recipe) |
int |
discoverRecipes(java.util.Collection<org.bukkit.NamespacedKey> recipes) |
boolean |
equals(java.lang.Object obj) |
double |
getAbsorptionAmount() |
java.util.Collection<org.bukkit.potion.PotionEffect> |
getActivePotionEffects() |
java.net.InetSocketAddress |
getAddress() |
org.bukkit.advancement.AdvancementProgress |
getAdvancementProgress(org.bukkit.advancement.Advancement advancement) |
boolean |
getAllowFlight() |
float |
getAttackCooldown() |
org.bukkit.Location |
getBedLocation() |
@Nullable org.bukkit.Location |
getBedSpawnLocation() |
org.bukkit.util.BoundingBox |
getBoundingBox() |
boolean |
getCanPickupItems() |
int |
getClientViewDistance() |
@NotNull org.bukkit.Location |
getCompassTarget() |
int |
getCooldown(org.bukkit.Material material) |
java.lang.String |
getDisplayName() |
org.bukkit.inventory.Inventory |
getEnderChest() |
org.bukkit.inventory.EntityEquipment |
getEquipment() |
float |
getExhaustion() |
float |
getExp() |
int |
getExpToLevel() |
double |
getEyeHeight() |
double |
getEyeHeight(boolean ignorePose) |
org.bukkit.block.BlockFace |
getFacing() |
long |
getFirstPlayed() |
float |
getFlySpeed() |
int |
getFoodLevel() |
org.bukkit.GameMode |
getGameMode() |
double |
getHealthScale() |
org.bukkit.inventory.PlayerInventory |
getInventory() |
org.bukkit.inventory.ItemStack |
getItemInHand() |
org.bukkit.inventory.ItemStack |
getItemOnCursor() |
org.bukkit.entity.Player |
getKiller() |
double |
getLastDamage() |
long |
getLastPlayed() |
java.util.List<org.bukkit.block.Block> |
getLastTwoTargetBlocks(java.util.Set<org.bukkit.Material> transparent,
int maxDistance) |
org.bukkit.entity.Entity |
getLeashHolder() |
int |
getLevel() |
java.util.List<org.bukkit.block.Block> |
getLineOfSight(java.util.Set<org.bukkit.Material> transparent,
int maxDistance) |
java.util.Set<java.lang.String> |
getListeningPluginChannels() |
java.lang.String |
getLocale() |
org.bukkit.inventory.MainHand |
getMainHand() |
int |
getMaximumAir() |
int |
getMaximumNoDamageTicks() |
<T> T |
getMemory(org.bukkit.entity.memory.MemoryKey<T> memoryKey) |
int |
getNoDamageTicks() |
org.bukkit.inventory.InventoryView |
getOpenInventory() |
org.bukkit.entity.Player |
getPlayer() |
java.lang.String |
getPlayerListFooter() |
java.lang.String |
getPlayerListHeader() |
java.lang.String |
getPlayerListName() |
long |
getPlayerTime() |
long |
getPlayerTimeOffset() |
org.bukkit.WeatherType |
getPlayerWeather() |
org.bukkit.entity.Pose |
getPose() |
org.bukkit.potion.PotionEffect |
getPotionEffect(org.bukkit.potion.PotionEffectType type) |
int |
getRemainingAir() |
boolean |
getRemoveWhenFarAway() |
float |
getSaturation() |
org.bukkit.scoreboard.Scoreboard |
getScoreboard() |
org.bukkit.entity.Entity |
getShoulderEntityLeft() |
org.bukkit.entity.Entity |
getShoulderEntityRight() |
int |
getSleepTicks() |
org.bukkit.entity.Entity |
getSpectatorTarget() |
int |
getStatistic(org.bukkit.Statistic statistic) |
int |
getStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType) |
int |
getStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material) |
org.bukkit.block.Block |
getTargetBlock(java.util.Set<org.bukkit.Material> transparent,
int maxDistance) |
org.bukkit.block.Block |
getTargetBlockExact(int maxDistance) |
org.bukkit.block.Block |
getTargetBlockExact(int maxDistance,
org.bukkit.FluidCollisionMode fluidCollisionMode) |
int |
getTotalExperience() |
float |
getWalkSpeed() |
void |
giveExp(int amount) |
void |
giveExpLevels(int amount) |
boolean |
hasAI() |
boolean |
hasCooldown(org.bukkit.Material material) |
int |
hashCode() |
boolean |
hasLineOfSight(org.bukkit.entity.Entity other) |
boolean |
hasPlayedBefore() |
boolean |
hasPotionEffect(org.bukkit.potion.PotionEffectType type) |
void |
hidePlayer(org.bukkit.entity.Player player) |
void |
hidePlayer(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player player) |
void |
incrementStatistic(org.bukkit.Statistic statistic) |
void |
incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType) |
void |
incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType,
int amount) |
void |
incrementStatistic(org.bukkit.Statistic statistic,
int amount) |
void |
incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material) |
void |
incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material,
int amount) |
boolean |
isBanned() |
boolean |
isBlocking() |
boolean |
isCollidable() |
boolean |
isConversing() |
boolean |
isFlying() |
boolean |
isGliding() |
boolean |
isHandRaised() |
boolean |
isHealthScaled() |
boolean |
isLeashed() |
boolean |
isOnline() |
boolean |
isPersistent() |
boolean |
isPlayerTimeRelative() |
boolean |
isRiptiding() |
boolean |
isSleeping() |
boolean |
isSleepingIgnored() |
boolean |
isSneaking() |
boolean |
isSprinting() |
boolean |
isSwimming() |
boolean |
isWhitelisted() |
void |
kickPlayer(java.lang.String message) |
<T extends org.bukkit.entity.Projectile> |
launchProjectile(java.lang.Class<? extends T> projectile) |
<T extends org.bukkit.entity.Projectile> |
launchProjectile(java.lang.Class<? extends T> projectile,
org.bukkit.util.Vector velocity) |
void |
loadData() |
void |
openBook(org.bukkit.inventory.ItemStack book) |
org.bukkit.inventory.InventoryView |
openEnchanting(org.bukkit.Location location,
boolean force) |
org.bukkit.inventory.InventoryView |
openInventory(org.bukkit.inventory.Inventory inventory) |
void |
openInventory(org.bukkit.inventory.InventoryView inventory) |
org.bukkit.inventory.InventoryView |
openMerchant(org.bukkit.inventory.Merchant merchant,
boolean force) |
org.bukkit.inventory.InventoryView |
openMerchant(org.bukkit.entity.Villager trader,
boolean force) |
org.bukkit.inventory.InventoryView |
openWorkbench(org.bukkit.Location location,
boolean force) |
boolean |
performCommand(java.lang.String command) |
void |
playEffect(org.bukkit.Location loc,
org.bukkit.Effect effect,
int data) |
<T> void |
playEffect(org.bukkit.Location loc,
org.bukkit.Effect effect,
T data) |
void |
playNote(org.bukkit.Location loc,
byte instrument,
byte note) |
void |
playNote(org.bukkit.Location loc,
org.bukkit.Instrument instrument,
org.bukkit.Note note) |
void |
playSound(org.bukkit.Location location,
org.bukkit.Sound sound,
float volume,
float pitch) |
void |
playSound(org.bukkit.Location location,
org.bukkit.Sound sound,
org.bukkit.SoundCategory category,
float volume,
float pitch) |
void |
playSound(org.bukkit.Location location,
java.lang.String sound,
float volume,
float pitch) |
void |
playSound(org.bukkit.Location location,
java.lang.String sound,
org.bukkit.SoundCategory category,
float volume,
float pitch) |
org.bukkit.util.RayTraceResult |
rayTraceBlocks(double maxDistance) |
org.bukkit.util.RayTraceResult |
rayTraceBlocks(double maxDistance,
org.bukkit.FluidCollisionMode fluidCollisionMode) |
void |
removePotionEffect(org.bukkit.potion.PotionEffectType type) |
void |
resetPlayerTime() |
void |
resetPlayerWeather() |
void |
resetTitle() |
void |
saveData() |
void |
sendBlockChange(org.bukkit.Location loc,
org.bukkit.block.data.BlockData block) |
void |
sendBlockChange(org.bukkit.Location loc,
org.bukkit.Material material,
byte data) |
boolean |
sendChunkChange(org.bukkit.Location loc,
int sx,
int sy,
int sz,
byte[] data) |
void |
sendExperienceChange(float progress) |
void |
sendExperienceChange(float progress,
int level) |
void |
sendMap(org.bukkit.map.MapView map) |
void |
sendPluginMessage(org.bukkit.plugin.Plugin source,
java.lang.String channel,
byte[] message) |
void |
sendRawMessage(java.lang.String message) |
void |
sendSignChange(org.bukkit.Location loc,
java.lang.String[] lines) |
void |
sendSignChange(org.bukkit.Location loc,
java.lang.String[] lines,
org.bukkit.DyeColor dyeColor) |
void |
sendTitle(java.lang.String title,
java.lang.String subtitle) |
void |
sendTitle(java.lang.String title,
java.lang.String subtitle,
int fadeIn,
int stay,
int fadeOut) |
java.util.Map<java.lang.String,java.lang.Object> |
serialize() |
void |
setAbsorptionAmount(double amount) |
void |
setAI(boolean ai) |
void |
setAllowFlight(boolean flight) |
void |
setBedSpawnLocation(@Nullable org.bukkit.Location loc) |
void |
setBedSpawnLocation(@Nullable org.bukkit.Location loc,
boolean force) |
void |
setCanPickupItems(boolean pickup) |
void |
setCollidable(boolean collidable) |
void |
setCompassTarget(@NotNull org.bukkit.Location loc) |
void |
setCooldown(org.bukkit.Material material,
int ticks) |
void |
setDisplayName(java.lang.String name) |
void |
setExhaustion(float value) |
void |
setExp(float exp) |
void |
setFlying(boolean value) |
void |
setFlySpeed(float value) |
void |
setFoodLevel(int foodLevel) |
void |
setGameMode(org.bukkit.GameMode mode) |
void |
setGliding(boolean gliding) |
void |
setHealthScale(double scale) |
void |
setHealthScaled(boolean scale) |
void |
setItemInHand(org.bukkit.inventory.ItemStack item) |
void |
setItemOnCursor(org.bukkit.inventory.ItemStack item) |
void |
setLastDamage(double damage) |
boolean |
setLeashHolder(org.bukkit.entity.Entity holder) |
void |
setLevel(int level) |
void |
setMaximumAir(int ticks) |
void |
setMaximumNoDamageTicks(int ticks) |
<T> void |
setMemory(org.bukkit.entity.memory.MemoryKey<T> memoryKey,
T memoryValue) |
void |
setNoDamageTicks(int ticks) |
void |
setPersistent(boolean persistent) |
void |
setPlayerListFooter(java.lang.String footer) |
void |
setPlayerListHeader(java.lang.String header) |
void |
setPlayerListHeaderFooter(java.lang.String header,
java.lang.String footer) |
void |
setPlayerListName(java.lang.String name) |
void |
setPlayerTime(long time,
boolean relative) |
void |
setPlayerWeather(org.bukkit.WeatherType type) |
void |
setRemainingAir(int ticks) |
void |
setRemoveWhenFarAway(boolean remove) |
void |
setResourcePack(java.lang.String url) |
void |
setResourcePack(java.lang.String url,
byte[] hash) |
void |
setSaturation(float value) |
void |
setScoreboard(org.bukkit.scoreboard.Scoreboard scoreboard) |
void |
setShoulderEntityLeft(org.bukkit.entity.Entity entity) |
void |
setShoulderEntityRight(org.bukkit.entity.Entity entity) |
void |
setSleepingIgnored(boolean isSleeping) |
void |
setSneaking(boolean sneaking) |
void |
setSpectatorTarget(org.bukkit.entity.Entity entity) |
void |
setSprinting(boolean sprinting) |
void |
setStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType,
int newValue) |
void |
setStatistic(org.bukkit.Statistic statistic,
int newValue) |
void |
setStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material,
int newValue) |
void |
setSwimming(boolean swimming) |
void |
setTexturePack(java.lang.String url) |
void |
setTotalExperience(int exp) |
void |
setWalkSpeed(float value) |
void |
setWhitelisted(boolean value) |
boolean |
setWindowProperty(org.bukkit.inventory.InventoryView.Property prop,
int value) |
void |
showPlayer(org.bukkit.entity.Player player) |
void |
showPlayer(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player player) |
boolean |
simulateBlockBreak(org.bukkit.block.Block block)
Simulates the player breaking a block.
|
boolean |
simulateBlockDamage(org.bukkit.block.Block block)
Simulates the player damaging a block.
|
protected org.bukkit.event.block.BlockDamageEvent |
simulateBlockDamagePure(org.bukkit.block.Block block)
Simulates the player damaging a block just like
simulateBlockDamage. |
boolean |
sleep(org.bukkit.Location location,
boolean force) |
void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count) |
void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ) |
void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
T data) |
void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count) |
void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ) |
void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
T data) |
void |
stopSound(org.bukkit.Sound sound) |
void |
stopSound(org.bukkit.Sound sound,
org.bukkit.SoundCategory category) |
void |
stopSound(java.lang.String sound) |
void |
stopSound(java.lang.String sound,
org.bukkit.SoundCategory category) |
void |
swingMainHand() |
void |
swingOffHand() |
boolean |
undiscoverRecipe(org.bukkit.NamespacedKey recipe) |
int |
undiscoverRecipes(java.util.Collection<org.bukkit.NamespacedKey> recipes) |
void |
updateCommands() |
void |
updateInventory() |
void |
wakeup(boolean setSpawnLocation) |
damage, damage, getAttribute, getEyeLocation, getHealth, getMaxHealth, isDead, resetMaxHealth, setHealth, setMaxHealthaddAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, assertLocation, assertNotTeleported, assertTeleported, clearTeleported, eject, getCustomName, getEffectivePermissions, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMetadata, getName, getNearbyEntities, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTeleportCause, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, hasMetadata, hasPermission, hasPermission, hasTeleported, isCustomNameVisible, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isOp, isPermissionSet, isPermissionSet, isSilent, isValid, leaveVehicle, nextMessage, playEffect, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setLocation, setMetadata, setName, setOp, setPassenger, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleportclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdamage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealthaddPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadataaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentgetPersistentDataContainerassertNoMoreSaid, assertSaidpublic PlayerMock(ServerMock server, java.lang.String name)
public PlayerMock(ServerMock server, java.lang.String name, java.util.UUID uuid)
public void assertGameMode(org.bukkit.GameMode expectedGamemode)
expectedGamemode - The gamemode the player should be in.public int hashCode()
hashCode in class EntityMockpublic boolean equals(java.lang.Object obj)
equals in class EntityMockprotected org.bukkit.event.block.BlockDamageEvent simulateBlockDamagePure(org.bukkit.block.Block block)
simulateBlockDamage.
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.block - The block to damage.public boolean simulateBlockDamage(org.bukkit.block.Block block)
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.block - The block to damage.true if the block was damaged, false if the event was
cancelled or the player was not in survival gamemode.public boolean simulateBlockBreak(org.bukkit.block.Block block)
block - The block to break.true if the block was broken, false if it wasn't or
if the player was in adventure mode or in spectator mode.public org.bukkit.inventory.PlayerInventory getInventory()
getInventory in interface org.bukkit.entity.HumanEntitygetInventory in interface org.bukkit.inventory.InventoryHolderpublic org.bukkit.GameMode getGameMode()
getGameMode in interface org.bukkit.entity.HumanEntitypublic void setGameMode(org.bukkit.GameMode mode)
setGameMode in interface org.bukkit.entity.HumanEntitypublic boolean isWhitelisted()
isWhitelisted in interface org.bukkit.OfflinePlayerpublic void setWhitelisted(boolean value)
setWhitelisted in interface org.bukkit.OfflinePlayerpublic org.bukkit.entity.Player getPlayer()
getPlayer in interface org.bukkit.OfflinePlayerpublic boolean isOnline()
isOnline in interface org.bukkit.OfflinePlayerpublic boolean isBanned()
isBanned in interface org.bukkit.OfflinePlayerpublic org.bukkit.inventory.InventoryView getOpenInventory()
getOpenInventory in interface org.bukkit.entity.HumanEntitypublic void openInventory(org.bukkit.inventory.InventoryView inventory)
openInventory in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.InventoryView openInventory(org.bukkit.inventory.Inventory inventory)
openInventory in interface org.bukkit.entity.HumanEntitypublic void closeInventory()
closeInventory in interface org.bukkit.entity.HumanEntitypublic boolean performCommand(java.lang.String command)
performCommand in interface org.bukkit.entity.Playerpublic org.bukkit.inventory.Inventory getEnderChest()
getEnderChest in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.MainHand getMainHand()
getMainHand in interface org.bukkit.entity.HumanEntitypublic boolean setWindowProperty(org.bukkit.inventory.InventoryView.Property prop,
int value)
setWindowProperty in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.InventoryView openWorkbench(org.bukkit.Location location,
boolean force)
openWorkbench in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.InventoryView openEnchanting(org.bukkit.Location location,
boolean force)
openEnchanting in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.InventoryView openMerchant(org.bukkit.entity.Villager trader,
boolean force)
openMerchant in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.InventoryView openMerchant(org.bukkit.inventory.Merchant merchant,
boolean force)
openMerchant in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.ItemStack getItemInHand()
getItemInHand in interface org.bukkit.entity.HumanEntitypublic void setItemInHand(org.bukkit.inventory.ItemStack item)
setItemInHand in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.ItemStack getItemOnCursor()
getItemOnCursor in interface org.bukkit.entity.HumanEntitypublic void setItemOnCursor(org.bukkit.inventory.ItemStack item)
setItemOnCursor in interface org.bukkit.entity.HumanEntitypublic boolean hasCooldown(org.bukkit.Material material)
hasCooldown in interface org.bukkit.entity.HumanEntitypublic int getCooldown(org.bukkit.Material material)
getCooldown in interface org.bukkit.entity.HumanEntitypublic void setCooldown(org.bukkit.Material material,
int ticks)
setCooldown in interface org.bukkit.entity.HumanEntitypublic boolean isSleeping()
isSleeping in interface org.bukkit.entity.LivingEntitypublic int getSleepTicks()
getSleepTicks in interface org.bukkit.entity.HumanEntitypublic boolean isBlocking()
isBlocking in interface org.bukkit.entity.HumanEntitypublic boolean isHandRaised()
isHandRaised in interface org.bukkit.entity.HumanEntitypublic int getExpToLevel()
getExpToLevel in interface org.bukkit.entity.HumanEntitypublic org.bukkit.entity.Entity getShoulderEntityLeft()
getShoulderEntityLeft in interface org.bukkit.entity.HumanEntitypublic void setShoulderEntityLeft(org.bukkit.entity.Entity entity)
setShoulderEntityLeft in interface org.bukkit.entity.HumanEntitypublic org.bukkit.entity.Entity getShoulderEntityRight()
getShoulderEntityRight in interface org.bukkit.entity.HumanEntitypublic void setShoulderEntityRight(org.bukkit.entity.Entity entity)
setShoulderEntityRight in interface org.bukkit.entity.HumanEntitypublic double getEyeHeight()
getEyeHeight in interface org.bukkit.entity.LivingEntitygetEyeHeight in class LivingEntityMockpublic double getEyeHeight(boolean ignorePose)
getEyeHeight in interface org.bukkit.entity.LivingEntitygetEyeHeight in class LivingEntityMockpublic java.util.List<org.bukkit.block.Block> getLineOfSight(java.util.Set<org.bukkit.Material> transparent,
int maxDistance)
getLineOfSight in interface org.bukkit.entity.LivingEntitygetLineOfSight in class LivingEntityMockpublic org.bukkit.block.Block getTargetBlock(java.util.Set<org.bukkit.Material> transparent,
int maxDistance)
getTargetBlock in interface org.bukkit.entity.LivingEntitygetTargetBlock in class LivingEntityMockpublic java.util.List<org.bukkit.block.Block> getLastTwoTargetBlocks(java.util.Set<org.bukkit.Material> transparent,
int maxDistance)
getLastTwoTargetBlocks in interface org.bukkit.entity.LivingEntitygetLastTwoTargetBlocks in class LivingEntityMockpublic int getRemainingAir()
getRemainingAir in interface org.bukkit.entity.LivingEntitygetRemainingAir in class LivingEntityMockpublic void setRemainingAir(int ticks)
setRemainingAir in interface org.bukkit.entity.LivingEntitysetRemainingAir in class LivingEntityMockpublic int getMaximumAir()
getMaximumAir in interface org.bukkit.entity.LivingEntitygetMaximumAir in class LivingEntityMockpublic void setMaximumAir(int ticks)
setMaximumAir in interface org.bukkit.entity.LivingEntitysetMaximumAir in class LivingEntityMockpublic int getMaximumNoDamageTicks()
getMaximumNoDamageTicks in interface org.bukkit.entity.LivingEntitygetMaximumNoDamageTicks in class LivingEntityMockpublic void setMaximumNoDamageTicks(int ticks)
setMaximumNoDamageTicks in interface org.bukkit.entity.LivingEntitysetMaximumNoDamageTicks in class LivingEntityMockpublic double getLastDamage()
getLastDamage in interface org.bukkit.entity.LivingEntitygetLastDamage in class LivingEntityMockpublic void setLastDamage(double damage)
setLastDamage in interface org.bukkit.entity.LivingEntitysetLastDamage in class LivingEntityMockpublic int getNoDamageTicks()
getNoDamageTicks in interface org.bukkit.entity.LivingEntitygetNoDamageTicks in class LivingEntityMockpublic void setNoDamageTicks(int ticks)
setNoDamageTicks in interface org.bukkit.entity.LivingEntitysetNoDamageTicks in class LivingEntityMockpublic org.bukkit.entity.Player getKiller()
getKiller in interface org.bukkit.entity.LivingEntitygetKiller in class LivingEntityMockpublic boolean addPotionEffect(org.bukkit.potion.PotionEffect effect)
addPotionEffect in interface org.bukkit.entity.LivingEntityaddPotionEffect in class LivingEntityMockpublic boolean addPotionEffect(org.bukkit.potion.PotionEffect effect,
boolean force)
addPotionEffect in interface org.bukkit.entity.LivingEntityaddPotionEffect in class LivingEntityMockpublic boolean addPotionEffects(java.util.Collection<org.bukkit.potion.PotionEffect> effects)
addPotionEffects in interface org.bukkit.entity.LivingEntityaddPotionEffects in class LivingEntityMockpublic boolean hasPotionEffect(org.bukkit.potion.PotionEffectType type)
hasPotionEffect in interface org.bukkit.entity.LivingEntityhasPotionEffect in class LivingEntityMockpublic org.bukkit.potion.PotionEffect getPotionEffect(org.bukkit.potion.PotionEffectType type)
getPotionEffect in interface org.bukkit.entity.LivingEntitygetPotionEffect in class LivingEntityMockpublic void removePotionEffect(org.bukkit.potion.PotionEffectType type)
removePotionEffect in interface org.bukkit.entity.LivingEntityremovePotionEffect in class LivingEntityMockpublic java.util.Collection<org.bukkit.potion.PotionEffect> getActivePotionEffects()
getActivePotionEffects in interface org.bukkit.entity.LivingEntitygetActivePotionEffects in class LivingEntityMockpublic boolean hasLineOfSight(org.bukkit.entity.Entity other)
hasLineOfSight in interface org.bukkit.entity.LivingEntityhasLineOfSight in class LivingEntityMockpublic boolean getRemoveWhenFarAway()
getRemoveWhenFarAway in interface org.bukkit.entity.LivingEntitygetRemoveWhenFarAway in class LivingEntityMockpublic void setRemoveWhenFarAway(boolean remove)
setRemoveWhenFarAway in interface org.bukkit.entity.LivingEntitysetRemoveWhenFarAway in class LivingEntityMockpublic org.bukkit.inventory.EntityEquipment getEquipment()
getEquipment in interface org.bukkit.entity.LivingEntitygetEquipment in class LivingEntityMockpublic void setCanPickupItems(boolean pickup)
setCanPickupItems in interface org.bukkit.entity.LivingEntitysetCanPickupItems in class LivingEntityMockpublic boolean getCanPickupItems()
getCanPickupItems in interface org.bukkit.entity.LivingEntitygetCanPickupItems in class LivingEntityMockpublic boolean isLeashed()
isLeashed in interface org.bukkit.entity.LivingEntityisLeashed in class LivingEntityMockpublic org.bukkit.entity.Entity getLeashHolder()
getLeashHolder in interface org.bukkit.entity.LivingEntitygetLeashHolder in class LivingEntityMockpublic boolean setLeashHolder(org.bukkit.entity.Entity holder)
setLeashHolder in interface org.bukkit.entity.LivingEntitysetLeashHolder in class LivingEntityMockpublic boolean isGliding()
isGliding in interface org.bukkit.entity.LivingEntityisGliding in class LivingEntityMockpublic void setGliding(boolean gliding)
setGliding in interface org.bukkit.entity.LivingEntitysetGliding in class LivingEntityMockpublic void setAI(boolean ai)
setAI in interface org.bukkit.entity.LivingEntitysetAI in class LivingEntityMockpublic boolean hasAI()
hasAI in interface org.bukkit.entity.LivingEntityhasAI in class LivingEntityMockpublic void setCollidable(boolean collidable)
setCollidable in interface org.bukkit.entity.LivingEntitysetCollidable in class LivingEntityMockpublic boolean isCollidable()
isCollidable in interface org.bukkit.entity.LivingEntityisCollidable in class LivingEntityMockpublic <T extends org.bukkit.entity.Projectile> T launchProjectile(java.lang.Class<? extends T> projectile)
launchProjectile in interface org.bukkit.projectiles.ProjectileSourcelaunchProjectile in class LivingEntityMockpublic <T extends org.bukkit.entity.Projectile> T launchProjectile(java.lang.Class<? extends T> projectile,
org.bukkit.util.Vector velocity)
launchProjectile in interface org.bukkit.projectiles.ProjectileSourcelaunchProjectile in class LivingEntityMockpublic boolean isConversing()
isConversing in interface org.bukkit.conversations.Conversablepublic void acceptConversationInput(java.lang.String input)
acceptConversationInput in interface org.bukkit.conversations.Conversablepublic boolean beginConversation(org.bukkit.conversations.Conversation conversation)
beginConversation in interface org.bukkit.conversations.Conversablepublic void abandonConversation(org.bukkit.conversations.Conversation conversation)
abandonConversation in interface org.bukkit.conversations.Conversablepublic void abandonConversation(org.bukkit.conversations.Conversation conversation,
org.bukkit.conversations.ConversationAbandonedEvent details)
abandonConversation in interface org.bukkit.conversations.Conversablepublic long getFirstPlayed()
getFirstPlayed in interface org.bukkit.OfflinePlayerpublic long getLastPlayed()
getLastPlayed in interface org.bukkit.OfflinePlayerpublic boolean hasPlayedBefore()
hasPlayedBefore in interface org.bukkit.OfflinePlayerpublic java.util.Map<java.lang.String,java.lang.Object> serialize()
serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializablepublic void sendPluginMessage(org.bukkit.plugin.Plugin source,
java.lang.String channel,
byte[] message)
sendPluginMessage in interface org.bukkit.plugin.messaging.PluginMessageRecipientpublic java.util.Set<java.lang.String> getListeningPluginChannels()
getListeningPluginChannels in interface org.bukkit.plugin.messaging.PluginMessageRecipientpublic java.lang.String getDisplayName()
getDisplayName in interface org.bukkit.entity.Playerpublic void setDisplayName(java.lang.String name)
setDisplayName in interface org.bukkit.entity.Playerpublic java.lang.String getPlayerListName()
getPlayerListName in interface org.bukkit.entity.Playerpublic void setPlayerListName(java.lang.String name)
setPlayerListName in interface org.bukkit.entity.Playerpublic void setCompassTarget(@NotNull
@NotNull org.bukkit.Location loc)
setCompassTarget in interface org.bukkit.entity.Player@NotNull public @NotNull org.bukkit.Location getCompassTarget()
getCompassTarget in interface org.bukkit.entity.Playerpublic java.net.InetSocketAddress getAddress()
getAddress in interface org.bukkit.entity.Playerpublic void sendRawMessage(java.lang.String message)
sendRawMessage in interface org.bukkit.conversations.ConversablesendRawMessage in interface org.bukkit.entity.Playerpublic void kickPlayer(java.lang.String message)
kickPlayer in interface org.bukkit.entity.Playerpublic void chat(java.lang.String msg)
chat in interface org.bukkit.entity.Playerpublic boolean isSneaking()
isSneaking in interface org.bukkit.entity.Playerpublic void setSneaking(boolean sneaking)
setSneaking in interface org.bukkit.entity.Playerpublic boolean isSprinting()
isSprinting in interface org.bukkit.entity.Playerpublic void setSprinting(boolean sprinting)
setSprinting in interface org.bukkit.entity.Playerpublic void saveData()
saveData in interface org.bukkit.entity.Playerpublic void loadData()
loadData in interface org.bukkit.entity.Playerpublic void setSleepingIgnored(boolean isSleeping)
setSleepingIgnored in interface org.bukkit.entity.Playerpublic boolean isSleepingIgnored()
isSleepingIgnored in interface org.bukkit.entity.Playerpublic void playNote(org.bukkit.Location loc,
byte instrument,
byte note)
playNote in interface org.bukkit.entity.Playerpublic void playNote(org.bukkit.Location loc,
org.bukkit.Instrument instrument,
org.bukkit.Note note)
playNote in interface org.bukkit.entity.Playerpublic void playSound(org.bukkit.Location location,
org.bukkit.Sound sound,
float volume,
float pitch)
playSound in interface org.bukkit.entity.Playerpublic void playSound(org.bukkit.Location location,
java.lang.String sound,
float volume,
float pitch)
playSound in interface org.bukkit.entity.Playerpublic void playSound(org.bukkit.Location location,
org.bukkit.Sound sound,
org.bukkit.SoundCategory category,
float volume,
float pitch)
playSound in interface org.bukkit.entity.Playerpublic void playSound(org.bukkit.Location location,
java.lang.String sound,
org.bukkit.SoundCategory category,
float volume,
float pitch)
playSound in interface org.bukkit.entity.Playerpublic void stopSound(org.bukkit.Sound sound)
stopSound in interface org.bukkit.entity.Playerpublic void stopSound(java.lang.String sound)
stopSound in interface org.bukkit.entity.Playerpublic void stopSound(org.bukkit.Sound sound,
org.bukkit.SoundCategory category)
stopSound in interface org.bukkit.entity.Playerpublic void stopSound(java.lang.String sound,
org.bukkit.SoundCategory category)
stopSound in interface org.bukkit.entity.Playerpublic void playEffect(org.bukkit.Location loc,
org.bukkit.Effect effect,
int data)
playEffect in interface org.bukkit.entity.Playerpublic <T> void playEffect(org.bukkit.Location loc,
org.bukkit.Effect effect,
T data)
playEffect in interface org.bukkit.entity.Playerpublic void sendBlockChange(org.bukkit.Location loc,
org.bukkit.Material material,
byte data)
sendBlockChange in interface org.bukkit.entity.Playerpublic boolean sendChunkChange(org.bukkit.Location loc,
int sx,
int sy,
int sz,
byte[] data)
sendChunkChange in interface org.bukkit.entity.Playerpublic void sendSignChange(org.bukkit.Location loc,
java.lang.String[] lines)
sendSignChange in interface org.bukkit.entity.Playerpublic void sendMap(org.bukkit.map.MapView map)
sendMap in interface org.bukkit.entity.Playerpublic void updateInventory()
updateInventory in interface org.bukkit.entity.Playerpublic void incrementStatistic(org.bukkit.Statistic statistic)
incrementStatistic in interface org.bukkit.OfflinePlayerpublic void decrementStatistic(org.bukkit.Statistic statistic)
decrementStatistic in interface org.bukkit.OfflinePlayerpublic void incrementStatistic(org.bukkit.Statistic statistic,
int amount)
incrementStatistic in interface org.bukkit.OfflinePlayerpublic void decrementStatistic(org.bukkit.Statistic statistic,
int amount)
decrementStatistic in interface org.bukkit.OfflinePlayerpublic void setStatistic(org.bukkit.Statistic statistic,
int newValue)
setStatistic in interface org.bukkit.OfflinePlayerpublic int getStatistic(org.bukkit.Statistic statistic)
getStatistic in interface org.bukkit.OfflinePlayerpublic void incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material)
incrementStatistic in interface org.bukkit.OfflinePlayerpublic void decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material)
decrementStatistic in interface org.bukkit.OfflinePlayerpublic int getStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material)
getStatistic in interface org.bukkit.OfflinePlayerpublic void incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material,
int amount)
incrementStatistic in interface org.bukkit.OfflinePlayerpublic void decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material,
int amount)
decrementStatistic in interface org.bukkit.OfflinePlayerpublic void setStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material,
int newValue)
setStatistic in interface org.bukkit.OfflinePlayerpublic void incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType)
incrementStatistic in interface org.bukkit.OfflinePlayerpublic void decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType)
decrementStatistic in interface org.bukkit.OfflinePlayerpublic int getStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType)
getStatistic in interface org.bukkit.OfflinePlayerpublic void incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType,
int amount)
incrementStatistic in interface org.bukkit.OfflinePlayerpublic void decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType,
int amount)
decrementStatistic in interface org.bukkit.OfflinePlayerpublic void setStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType,
int newValue)
setStatistic in interface org.bukkit.OfflinePlayerpublic void setPlayerTime(long time,
boolean relative)
setPlayerTime in interface org.bukkit.entity.Playerpublic long getPlayerTime()
getPlayerTime in interface org.bukkit.entity.Playerpublic long getPlayerTimeOffset()
getPlayerTimeOffset in interface org.bukkit.entity.Playerpublic boolean isPlayerTimeRelative()
isPlayerTimeRelative in interface org.bukkit.entity.Playerpublic void resetPlayerTime()
resetPlayerTime in interface org.bukkit.entity.Playerpublic void setPlayerWeather(org.bukkit.WeatherType type)
setPlayerWeather in interface org.bukkit.entity.Playerpublic org.bukkit.WeatherType getPlayerWeather()
getPlayerWeather in interface org.bukkit.entity.Playerpublic void resetPlayerWeather()
resetPlayerWeather in interface org.bukkit.entity.Playerpublic void giveExp(int amount)
giveExp in interface org.bukkit.entity.Playerpublic void giveExpLevels(int amount)
giveExpLevels in interface org.bukkit.entity.Playerpublic float getExp()
getExp in interface org.bukkit.entity.Playerpublic void setExp(float exp)
setExp in interface org.bukkit.entity.Playerpublic int getLevel()
getLevel in interface org.bukkit.entity.Playerpublic void setLevel(int level)
setLevel in interface org.bukkit.entity.Playerpublic int getTotalExperience()
getTotalExperience in interface org.bukkit.entity.Playerpublic void setTotalExperience(int exp)
setTotalExperience in interface org.bukkit.entity.Playerpublic float getExhaustion()
getExhaustion in interface org.bukkit.entity.Playerpublic void setExhaustion(float value)
setExhaustion in interface org.bukkit.entity.Playerpublic float getSaturation()
getSaturation in interface org.bukkit.entity.Playerpublic void setSaturation(float value)
setSaturation in interface org.bukkit.entity.Playerpublic int getFoodLevel()
getFoodLevel in interface org.bukkit.entity.Playerpublic void setFoodLevel(int foodLevel)
setFoodLevel in interface org.bukkit.entity.Player@Nullable public @Nullable org.bukkit.Location getBedSpawnLocation()
getBedSpawnLocation in interface org.bukkit.entity.HumanEntitygetBedSpawnLocation in interface org.bukkit.OfflinePlayerpublic void setBedSpawnLocation(@Nullable
@Nullable org.bukkit.Location loc)
setBedSpawnLocation in interface org.bukkit.entity.HumanEntitypublic void setBedSpawnLocation(@Nullable
@Nullable org.bukkit.Location loc,
boolean force)
setBedSpawnLocation in interface org.bukkit.entity.HumanEntitypublic boolean getAllowFlight()
getAllowFlight in interface org.bukkit.entity.Playerpublic void setAllowFlight(boolean flight)
setAllowFlight in interface org.bukkit.entity.Playerpublic void hidePlayer(org.bukkit.entity.Player player)
hidePlayer in interface org.bukkit.entity.Playerpublic void hidePlayer(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player player)
hidePlayer in interface org.bukkit.entity.Playerpublic void showPlayer(org.bukkit.entity.Player player)
showPlayer in interface org.bukkit.entity.Playerpublic void showPlayer(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player player)
showPlayer in interface org.bukkit.entity.Playerpublic boolean canSee(org.bukkit.entity.Player player)
canSee in interface org.bukkit.entity.Playerpublic boolean isFlying()
isFlying in interface org.bukkit.entity.Playerpublic void setFlying(boolean value)
setFlying in interface org.bukkit.entity.Playerpublic void setFlySpeed(float value)
setFlySpeed in interface org.bukkit.entity.Playerpublic void setWalkSpeed(float value)
setWalkSpeed in interface org.bukkit.entity.Playerpublic float getFlySpeed()
getFlySpeed in interface org.bukkit.entity.Playerpublic float getWalkSpeed()
getWalkSpeed in interface org.bukkit.entity.Playerpublic void setTexturePack(java.lang.String url)
setTexturePack in interface org.bukkit.entity.Playerpublic void setResourcePack(java.lang.String url)
setResourcePack in interface org.bukkit.entity.Playerpublic void setResourcePack(java.lang.String url,
byte[] hash)
setResourcePack in interface org.bukkit.entity.Playerpublic org.bukkit.scoreboard.Scoreboard getScoreboard()
getScoreboard in interface org.bukkit.entity.Playerpublic void setScoreboard(org.bukkit.scoreboard.Scoreboard scoreboard)
setScoreboard in interface org.bukkit.entity.Playerpublic boolean isHealthScaled()
isHealthScaled in interface org.bukkit.entity.Playerpublic void setHealthScaled(boolean scale)
setHealthScaled in interface org.bukkit.entity.Playerpublic void setHealthScale(double scale)
setHealthScale in interface org.bukkit.entity.Playerpublic double getHealthScale()
getHealthScale in interface org.bukkit.entity.Playerpublic org.bukkit.entity.Entity getSpectatorTarget()
getSpectatorTarget in interface org.bukkit.entity.Playerpublic void setSpectatorTarget(org.bukkit.entity.Entity entity)
setSpectatorTarget in interface org.bukkit.entity.Playerpublic void sendTitle(java.lang.String title,
java.lang.String subtitle)
sendTitle in interface org.bukkit.entity.Playerpublic void sendTitle(java.lang.String title,
java.lang.String subtitle,
int fadeIn,
int stay,
int fadeOut)
sendTitle in interface org.bukkit.entity.Playerpublic void resetTitle()
resetTitle in interface org.bukkit.entity.Playerpublic void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count)
spawnParticle in interface org.bukkit.entity.Playerpublic void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count)
spawnParticle in interface org.bukkit.entity.Playerpublic <T> void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
T data)
spawnParticle in interface org.bukkit.entity.Playerpublic <T> void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
T data)
spawnParticle in interface org.bukkit.entity.Playerpublic void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ)
spawnParticle in interface org.bukkit.entity.Playerpublic void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ)
spawnParticle in interface org.bukkit.entity.Playerpublic <T> void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
T data)
spawnParticle in interface org.bukkit.entity.Playerpublic <T> void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
T data)
spawnParticle in interface org.bukkit.entity.Playerpublic void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra)
spawnParticle in interface org.bukkit.entity.Playerpublic void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra)
spawnParticle in interface org.bukkit.entity.Playerpublic <T> void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data)
spawnParticle in interface org.bukkit.entity.Playerpublic <T> void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data)
spawnParticle in interface org.bukkit.entity.Playerpublic org.bukkit.advancement.AdvancementProgress getAdvancementProgress(org.bukkit.advancement.Advancement advancement)
getAdvancementProgress in interface org.bukkit.entity.Playerpublic java.lang.String getLocale()
getLocale in interface org.bukkit.entity.Playerpublic boolean isSwimming()
isSwimming in interface org.bukkit.entity.LivingEntityisSwimming in class LivingEntityMockpublic void setSwimming(boolean swimming)
setSwimming in interface org.bukkit.entity.LivingEntitysetSwimming in class LivingEntityMockpublic boolean isRiptiding()
isRiptiding in interface org.bukkit.entity.LivingEntityisRiptiding in class LivingEntityMockpublic boolean isPersistent()
isPersistent in interface org.bukkit.entity.EntityisPersistent in class LivingEntityMockpublic void setPersistent(boolean persistent)
setPersistent in interface org.bukkit.entity.EntitysetPersistent in class LivingEntityMockpublic java.lang.String getPlayerListHeader()
getPlayerListHeader in interface org.bukkit.entity.Playerpublic java.lang.String getPlayerListFooter()
getPlayerListFooter in interface org.bukkit.entity.Playerpublic void setPlayerListHeader(java.lang.String header)
setPlayerListHeader in interface org.bukkit.entity.Playerpublic void setPlayerListFooter(java.lang.String footer)
setPlayerListFooter in interface org.bukkit.entity.Playerpublic void setPlayerListHeaderFooter(java.lang.String header,
java.lang.String footer)
setPlayerListHeaderFooter in interface org.bukkit.entity.Playerpublic void sendBlockChange(org.bukkit.Location loc,
org.bukkit.block.data.BlockData block)
sendBlockChange in interface org.bukkit.entity.Playerpublic void updateCommands()
updateCommands in interface org.bukkit.entity.Playerpublic boolean discoverRecipe(org.bukkit.NamespacedKey recipe)
discoverRecipe in interface org.bukkit.entity.HumanEntitypublic int discoverRecipes(java.util.Collection<org.bukkit.NamespacedKey> recipes)
discoverRecipes in interface org.bukkit.entity.HumanEntitypublic boolean undiscoverRecipe(org.bukkit.NamespacedKey recipe)
undiscoverRecipe in interface org.bukkit.entity.HumanEntitypublic int undiscoverRecipes(java.util.Collection<org.bukkit.NamespacedKey> recipes)
undiscoverRecipes in interface org.bukkit.entity.HumanEntitypublic org.bukkit.block.Block getTargetBlockExact(int maxDistance)
getTargetBlockExact in interface org.bukkit.entity.LivingEntitygetTargetBlockExact in class LivingEntityMockpublic org.bukkit.block.Block getTargetBlockExact(int maxDistance,
org.bukkit.FluidCollisionMode fluidCollisionMode)
getTargetBlockExact in interface org.bukkit.entity.LivingEntitygetTargetBlockExact in class LivingEntityMockpublic org.bukkit.util.RayTraceResult rayTraceBlocks(double maxDistance)
rayTraceBlocks in interface org.bukkit.entity.LivingEntityrayTraceBlocks in class LivingEntityMockpublic org.bukkit.util.RayTraceResult rayTraceBlocks(double maxDistance,
org.bukkit.FluidCollisionMode fluidCollisionMode)
rayTraceBlocks in interface org.bukkit.entity.LivingEntityrayTraceBlocks in class LivingEntityMockpublic org.bukkit.util.BoundingBox getBoundingBox()
getBoundingBox in interface org.bukkit.entity.EntitygetBoundingBox in class LivingEntityMockpublic org.bukkit.block.BlockFace getFacing()
getFacing in interface org.bukkit.entity.EntitygetFacing in class LivingEntityMockpublic int getClientViewDistance()
getClientViewDistance in interface org.bukkit.entity.Playerpublic boolean sleep(org.bukkit.Location location,
boolean force)
sleep in interface org.bukkit.entity.HumanEntitypublic void wakeup(boolean setSpawnLocation)
wakeup in interface org.bukkit.entity.HumanEntitypublic org.bukkit.Location getBedLocation()
getBedLocation in interface org.bukkit.entity.HumanEntitypublic <T> T getMemory(org.bukkit.entity.memory.MemoryKey<T> memoryKey)
getMemory in interface org.bukkit.entity.LivingEntitypublic <T> void setMemory(org.bukkit.entity.memory.MemoryKey<T> memoryKey,
T memoryValue)
setMemory in interface org.bukkit.entity.LivingEntitypublic double getAbsorptionAmount()
getAbsorptionAmount in interface org.bukkit.entity.Damageablepublic void setAbsorptionAmount(double amount)
setAbsorptionAmount in interface org.bukkit.entity.Damageablepublic org.bukkit.entity.Pose getPose()
getPose in interface org.bukkit.entity.Entitypublic void sendSignChange(org.bukkit.Location loc,
java.lang.String[] lines,
org.bukkit.DyeColor dyeColor)
throws java.lang.IllegalArgumentException
sendSignChange in interface org.bukkit.entity.Playerjava.lang.IllegalArgumentExceptionpublic void openBook(org.bukkit.inventory.ItemStack book)
openBook in interface org.bukkit.entity.Playerpublic void attack(org.bukkit.entity.Entity target)
attack in interface org.bukkit.entity.LivingEntitypublic void swingMainHand()
swingMainHand in interface org.bukkit.entity.LivingEntitypublic void swingOffHand()
swingOffHand in interface org.bukkit.entity.LivingEntitypublic void sendExperienceChange(float progress)
sendExperienceChange in interface org.bukkit.entity.Playerpublic void sendExperienceChange(float progress,
int level)
sendExperienceChange in interface org.bukkit.entity.Playerpublic float getAttackCooldown()
getAttackCooldown in interface org.bukkit.entity.HumanEntity