Package be.seeseemelk.mockbukkit.entity
Class PlayerMock
java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.LivingEntityMock
be.seeseemelk.mockbukkit.entity.HumanEntityMock
be.seeseemelk.mockbukkit.entity.PlayerMock
- All Implemented Interfaces:
MessageTarget,SoundReceiver,com.destroystokyo.paper.network.NetworkClient,net.kyori.adventure.audience.Audience,net.kyori.adventure.identity.Identified,net.kyori.adventure.pointer.Pointered,net.kyori.adventure.sound.Sound.Emitter,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>,org.bukkit.attribute.Attributable,org.bukkit.command.CommandSender,org.bukkit.configuration.serialization.ConfigurationSerializable,org.bukkit.conversations.Conversable,org.bukkit.entity.AnimalTamer,org.bukkit.entity.Damageable,org.bukkit.entity.Entity,org.bukkit.entity.HumanEntity,org.bukkit.entity.LivingEntity,org.bukkit.entity.Player,org.bukkit.inventory.InventoryHolder,org.bukkit.metadata.Metadatable,org.bukkit.Nameable,org.bukkit.OfflinePlayer,org.bukkit.permissions.Permissible,org.bukkit.permissions.ServerOperator,org.bukkit.persistence.PersistentDataHolder,org.bukkit.plugin.messaging.PluginMessageRecipient,org.bukkit.projectiles.ProjectileSource
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.SpigotNested classes/interfaces inherited from interface org.bukkit.entity.Player
org.bukkit.entity.Player.Spigot -
Field Summary
Fields inherited from class be.seeseemelk.mockbukkit.entity.LivingEntityMock
alive, attributes, health -
Constructor Summary
ConstructorsConstructorDescriptionPlayerMock(ServerMock server, String name) PlayerMock(ServerMock server, String name, UUID uuid) -
Method Summary
Modifier and TypeMethodDescriptionvoidabandonConversation(@NotNull org.bukkit.conversations.Conversation conversation) voidabandonConversation(@NotNull org.bukkit.conversations.Conversation conversation, @NotNull org.bukkit.conversations.ConversationAbandonedEvent details) voidacceptConversationInput(@NotNull String input) voidaddHeardSound(@NotNull AudioExperience audioExperience) intapplyMending(int amount) voidassertGameMode(org.bukkit.GameMode expectedGamemode) Assert that the player is in a specific gamemode.voidassertInventoryView(String message, org.bukkit.event.inventory.InventoryType type) This method is an assertion for the currently openInventoryViewfor thisPlayer.voidassertInventoryView(String message, org.bukkit.event.inventory.InventoryType type, Predicate<org.bukkit.inventory.Inventory> predicate) This method is an assertion for the currently openInventoryViewfor thisPlayer.voidassertInventoryView(org.bukkit.event.inventory.InventoryType type) This method is an assertion for the currently openInventoryViewfor thisPlayer.voidassertInventoryView(org.bukkit.event.inventory.InventoryType type, Predicate<org.bukkit.inventory.Inventory> predicate) This method is an assertion for the currently openInventoryViewfor thisPlayer.voidattack(@NotNull org.bukkit.entity.Entity target) booleanbeginConversation(@NotNull org.bukkit.conversations.Conversation conversation) @Nullable org.bukkit.entity.FireworkboostElytra(@NotNull org.bukkit.inventory.ItemStack firework) booleanbreakBlock(@NotNull org.bukkit.block.Block block) booleancanSee(@NotNull org.bukkit.entity.Entity entity) booleancanSee(@NotNull org.bukkit.entity.Player player) voidvoidvoidcloseInventory(@NotNull org.bukkit.event.inventory.InventoryCloseEvent.Reason reason) voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic) voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, int amount) voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType) voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType, int amount) voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material) voiddecrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material, int amount) booleanSimulates a disconnection from the server.booleandiscoverRecipe(@NotNull org.bukkit.NamespacedKey recipe) intdiscoverRecipes(@NotNull Collection<org.bukkit.NamespacedKey> recipes) @NotNull net.kyori.adventure.text.ComponentvoiddisplayName(@Nullable net.kyori.adventure.text.Component displayName) booleandropItem(boolean dropAll) @Nullable InetSocketAddress@NotNull org.bukkit.advancement.AdvancementProgressgetAdvancementProgress(@NotNull org.bukkit.advancement.Advancement advancement) booleanbooleanfloat@NotNull org.bukkit.Location@Nullable org.bukkit.Locationintint@NotNull org.bukkit.util.BoundingBoxboolean@Nullable String<T> TgetClientOption(@NotNull com.destroystokyo.paper.ClientOption<T> option) int@NotNull org.bukkit.LocationintgetCooldown(@NotNull org.bukkit.Material material) floatfloatgetCooledAttackStrength(float adjustTicks) @NotNull Set<org.bukkit.NamespacedKey>@NotNull StringDeprecated.@NotNull org.bukkit.inventory.Inventoryorg.bukkit.inventory.EntityEquipmentfloatfloatgetExp()intdoubledoublegetEyeHeight(boolean ignorePose) @NotNull org.bukkit.block.BlockFacelongfloatint@NotNull org.bukkit.GameMode@NotNull org.bukkit.inventory.EquipmentSlotdouble@NotNull List<AudioExperience>This returns aListof everyAudioExperiencethis receiver has received.float@NotNull org.bukkit.inventory.PlayerInventory@NotNull org.bukkit.inventory.ItemStack@Nullable org.bukkit.inventory.ItemStack@NotNull org.bukkit.inventory.ItemStackorg.bukkit.entity.Playerdoublelonglonglong@NotNull List<org.bukkit.block.Block>getLastTwoTargetBlocks(Set<org.bukkit.Material> transparent, int maxDistance) @NotNull org.bukkit.entity.EntityintgetLevel()@NotNull List<org.bukkit.block.Block>getLineOfSight(Set<org.bukkit.Material> transparent, int maxDistance) @NotNull String@NotNull org.bukkit.inventory.MainHandintintintDeprecated.@NotNull org.bukkit.inventory.InventoryViewintgetPing()org.bukkit.entity.Player@NotNull StringDeprecated.@NotNull com.destroystokyo.paper.profile.PlayerProfilelonglongorg.bukkit.WeatherType@NotNull org.bukkit.entity.PosegetPose()@Nullable org.bukkit.Location@Nullable org.bukkit.GameModeintboolean@Nullable StringDeprecated.@Nullable org.bukkit.event.player.PlayerResourcePackStatusEvent.Statusintfloat@NotNull org.bukkit.scoreboard.Scoreboardintorg.bukkit.entity.Entityorg.bukkit.entity.Entityintintorg.bukkit.entity.EntityintintgetStatistic(@NotNull org.bukkit.Statistic statistic) intgetStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType) intgetStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material) @Nullable org.bukkit.block.BlockgetTargetBlock(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) @NotNull org.bukkit.block.BlockgetTargetBlock(Set<org.bukkit.Material> transparent, int maxDistance) org.bukkit.block.BlockgetTargetBlockExact(int maxDistance) org.bukkit.block.BlockgetTargetBlockExact(int maxDistance, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) @Nullable org.bukkit.block.BlockFacegetTargetBlockFace(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) @Nullable com.destroystokyo.paper.block.TargetBlockInfogetTargetBlockInfo(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) @Nullable org.bukkit.entity.EntitygetTargetEntity(int maxDistance, boolean ignoreBlocks) @Nullable com.destroystokyo.paper.entity.TargetEntityInfogetTargetEntityInfo(int maxDistance, boolean ignoreBlocks) int@NotNull org.bukkit.entity.EntityTypegetType()intint@Nullable InetSocketAddressfloat@Nullable org.bukkit.WorldBordervoidgiveExp(int amount) voidgiveExp(int amount, boolean applyMending) voidgiveExpLevels(int amount) booleanhasAI()booleanhasCooldown(@NotNull org.bukkit.Material material) booleanhasDiscoveredRecipe(@NotNull org.bukkit.NamespacedKey recipe) booleanhasLineOfSight(@NotNull org.bukkit.entity.Entity other) booleanhasLineOfSight(@NotNull org.bukkit.Location location) booleanbooleanvoidhideEntity(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull org.bukkit.entity.Entity entity) voidhidePlayer(@NotNull org.bukkit.entity.Player player) Deprecated.voidhidePlayer(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull org.bukkit.entity.Player player) voidDeprecated.voidincrementStatistic(@NotNull org.bukkit.Statistic statistic) voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, int amount) voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType) voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType, int amount) voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material) voidincrementStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material, int amount) booleanbooleanisBanned()booleanbooleanbooleanbooleanbooleanisFlying()booleanbooleanbooleanbooleanisInLava()booleanisInRain()booleanbooleanbooleanbooleanbooleanisOnline()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidkick()voidkick(@Nullable net.kyori.adventure.text.Component message) voidkick(@Nullable net.kyori.adventure.text.Component message, @NotNull org.bukkit.event.player.PlayerKickEvent.Cause cause) voidkickPlayer(String message) Deprecated.voidloadData()@NotNull Localelocale()@Nullable org.bukkit.inventory.InventoryViewopenAnvil(@Nullable org.bukkit.Location location, boolean force) voidopenBook(@NotNull org.bukkit.inventory.ItemStack book) @Nullable org.bukkit.inventory.InventoryViewopenCartographyTable(@Nullable org.bukkit.Location location, boolean force) org.bukkit.inventory.InventoryViewopenEnchanting(org.bukkit.Location location, boolean force) @Nullable org.bukkit.inventory.InventoryViewopenGrindstone(@Nullable org.bukkit.Location location, boolean force) org.bukkit.inventory.InventoryViewopenInventory(@NotNull org.bukkit.inventory.Inventory inventory) voidopenInventory(@NotNull org.bukkit.inventory.InventoryView inventory) @Nullable org.bukkit.inventory.InventoryViewopenLoom(@Nullable org.bukkit.Location location, boolean force) org.bukkit.inventory.InventoryViewopenMerchant(@NotNull org.bukkit.entity.Villager trader, boolean force) org.bukkit.inventory.InventoryViewopenMerchant(@NotNull org.bukkit.inventory.Merchant merchant, boolean force) voidopenSign(@NotNull org.bukkit.block.Sign sign) @Nullable org.bukkit.inventory.InventoryViewopenSmithingTable(@Nullable org.bukkit.Location location, boolean force) @Nullable org.bukkit.inventory.InventoryViewopenStonecutter(@Nullable org.bukkit.Location location, boolean force) org.bukkit.inventory.InventoryViewopenWorkbench(org.bukkit.Location location, boolean force) booleanperformCommand(@NotNull String command) voidplayEffect(@NotNull org.bukkit.Location loc, @NotNull org.bukkit.Effect effect, int data) Deprecated.<T> voidplayEffect(@NotNull org.bukkit.Location loc, @NotNull org.bukkit.Effect effect, T data) @Nullable net.kyori.adventure.text.Component@Nullable net.kyori.adventure.text.Component@NotNull net.kyori.adventure.text.ComponentvoidplayerListName(@Nullable net.kyori.adventure.text.Component name) voidplayNote(@NotNull org.bukkit.Location loc, byte instrument, byte note) Deprecated.voidplayNote(@NotNull org.bukkit.Location loc, @NotNull org.bukkit.Instrument instrument, @NotNull org.bukkit.Note note) voidplayPickupItemAnimation(@NotNull org.bukkit.entity.Item item, int quantity) voidplaySound(@NotNull org.bukkit.entity.Entity entity, @NotNull org.bukkit.Sound sound, float volume, float pitch) voidplaySound(@NotNull org.bukkit.entity.Entity entity, @NotNull org.bukkit.Sound sound, @NotNull org.bukkit.SoundCategory category, float volume, float pitch) voidvoidplaySound(@NotNull org.bukkit.Location location, @NotNull String sound, @NotNull org.bukkit.SoundCategory category, float volume, float pitch) voidplaySound(@NotNull org.bukkit.Location location, @NotNull org.bukkit.Sound sound, float volume, float pitch) voidplaySound(@NotNull org.bukkit.Location location, @NotNull org.bukkit.Sound sound, @NotNull org.bukkit.SoundCategory category, float volume, float pitch) org.bukkit.util.RayTraceResultrayTraceBlocks(double maxDistance) org.bukkit.util.RayTraceResultrayTraceBlocks(double maxDistance, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) booleanSimulates a connection to the server.voidregisterAttribute(@NotNull org.bukkit.attribute.Attribute attribute) @Nullable org.bukkit.entity.Entity@Nullable org.bukkit.entity.Entityvoidvoidvoidvoidvoidrespawn()This method simulates thePlayerrespawning and also calls aPlayerRespawnEvent.voidsaveData()voidsendActionBar(char alternateChar, @NotNull String message) Deprecated.voidsendActionBar(@NotNull String message) Deprecated.voidsendActionBar(@NotNull net.md_5.bungee.api.chat.BaseComponent... message) Deprecated.voidsendBlockChange(@NotNull org.bukkit.Location loc, @NotNull org.bukkit.block.data.BlockData block) voidsendBlockChange(@NotNull org.bukkit.Location loc, @NotNull org.bukkit.Material material, byte data) Deprecated.voidsendBlockDamage(@NotNull org.bukkit.Location loc, float progress) voidsendEquipmentChange(@NotNull org.bukkit.entity.LivingEntity entity, @NotNull org.bukkit.inventory.EquipmentSlot slot, @NotNull org.bukkit.inventory.ItemStack item) voidsendExperienceChange(float progress) voidsendExperienceChange(float progress, int level) voidvoidsendHealthUpdate(double health, int foodLevel, float saturationLevel) voidsendMap(@NotNull org.bukkit.map.MapView map) voidsendMultiBlockChange(@NotNull Map<org.bukkit.Location, org.bukkit.block.data.BlockData> blockChanges) voidsendMultiBlockChange(@NotNull Map<org.bukkit.Location, org.bukkit.block.data.BlockData> blockChanges, boolean suppressLightUpdates) voidsendOpLevel(byte level) voidsendPluginMessage(@NotNull org.bukkit.plugin.Plugin source, @NotNull String channel, byte[] message) voidsendRawMessage(@Nullable String message) voidsendRawMessage(@Nullable UUID sender, @NotNull String message) voidsendSignChange(@NotNull org.bukkit.Location loc, @Nullable String[] lines, @NotNull org.bukkit.DyeColor dyeColor, boolean hasGlowingText) voidsendSignChange(@NotNull org.bukkit.Location loc, @Nullable List<net.kyori.adventure.text.Component> lines, @NotNull org.bukkit.DyeColor dyeColor, boolean hasGlowingText) voidsendSignChange(@NotNull org.bukkit.Location loc, String[] lines) Deprecated.voidsendSignChange(@NotNull org.bukkit.Location loc, String[] lines, @NotNull org.bukkit.DyeColor dyeColor) voidsendTitle(@NotNull com.destroystokyo.paper.Title title) Deprecated.voidDeprecated.voidDeprecated.voidsetAddress(@Nullable InetSocketAddress address) Sets theInetSocketAddressreturned bygetAddress().voidsetAffectsSpawning(boolean affects) voidsetAI(boolean ai) voidsetAllowFlight(boolean flight) voidsetBedSpawnLocation(@Nullable org.bukkit.Location loc) voidsetBedSpawnLocation(@Nullable org.bukkit.Location loc, boolean force) voidsetBeeStingerCooldown(int ticks) voidsetBeeStingersInBody(int count) voidsetCanPickupItems(boolean pickup) voidsetCollidable(boolean collidable) voidsetCompassTarget(@NotNull org.bukkit.Location loc) voidsetCooldown(@NotNull org.bukkit.Material material, int ticks) voidsetDisplayName(String name) Deprecated.voidsetExhaustion(float value) voidsetExp(float exp) voidsetFlying(boolean value) voidsetFlySpeed(float value) voidsetFoodLevel(int foodLevel) voidsetGameMode(@NotNull org.bukkit.GameMode mode) voidsetHealth(double health) voidsetHealthScale(double scale) voidsetHealthScaled(boolean scale) voidsetHurtDirection(float hurtDirection) voidsetItemInHand(org.bukkit.inventory.ItemStack item) voidsetItemOnCursor(org.bukkit.inventory.ItemStack item) voidsetJumping(boolean jumping) voidsetKiller(@Nullable org.bukkit.entity.Player killer) voidsetLastDamage(double damage) voidsetLastPlayed(long time) booleansetLeashHolder(org.bukkit.entity.Entity holder) voidsetLevel(int level) voidsetMaximumNoDamageTicks(int ticks) voidsetNoDamageTicks(int ticks) voidsetNoTickViewDistance(int viewDistance) Deprecated.voidsetPersistent(boolean persistent) voidsetPlayerListFooter(String footer) voidsetPlayerListHeader(String header) voidsetPlayerListHeaderFooter(@Nullable net.md_5.bungee.api.chat.BaseComponent[] header, @Nullable net.md_5.bungee.api.chat.BaseComponent[] footer) Deprecated.voidsetPlayerListHeaderFooter(@Nullable net.md_5.bungee.api.chat.BaseComponent header, @Nullable net.md_5.bungee.api.chat.BaseComponent footer) Deprecated.voidsetPlayerListHeaderFooter(String header, String footer) voidsetPlayerListName(String name) Deprecated.voidsetPlayerProfile(@NotNull com.destroystokyo.paper.profile.PlayerProfile profile) voidsetPlayerTime(long time, boolean relative) voidsetPlayerWeather(@NotNull org.bukkit.WeatherType type) voidsetRemoveWhenFarAway(boolean remove) voidsetResourcePack(@NotNull String url) Deprecated.voidsetResourcePack(@NotNull String url, @org.jetbrains.annotations.Nullable byte[] hash, @Nullable String prompt) Deprecated.voidsetResourcePack(@NotNull String url, @org.jetbrains.annotations.Nullable byte[] hash, @Nullable String prompt, boolean force) Deprecated.voidsetResourcePack(@NotNull String url, byte[] hash) voidsetResourcePack(@NotNull String url, byte[] hash, boolean force) voidsetResourcePack(@NotNull String url, byte @Nullable [] hash, @Nullable net.kyori.adventure.text.Component prompt, boolean force) voidsetResourcePack(@NotNull String url, @NotNull String hash) voidsetResourcePack(@NotNull String url, @NotNull String hash, boolean required) voidsetResourcePack(@NotNull String url, @NotNull String hash, boolean required, @Nullable net.kyori.adventure.text.Component resourcePackPrompt) voidsetSaturatedRegenRate(int ticks) voidsetSaturation(float value) voidsetScoreboard(@NotNull org.bukkit.scoreboard.Scoreboard scoreboard) voidsetSendViewDistance(int viewDistance) voidsetShoulderEntityLeft(org.bukkit.entity.Entity entity) voidsetShoulderEntityRight(org.bukkit.entity.Entity entity) voidsetSimulationDistance(int simulationDistance) voidsetSleepingIgnored(boolean isSleeping) voidsetSneaking(boolean sneaking) voidsetSpectatorTarget(org.bukkit.entity.Entity entity) voidsetSprinting(boolean sprinting) voidsetStarvationRate(int ticks) voidsetStatistic(@NotNull org.bukkit.Statistic statistic, int newValue) voidsetStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.entity.EntityType entityType, int newValue) voidsetStatistic(@NotNull org.bukkit.Statistic statistic, @NotNull org.bukkit.Material material, int newValue) voidsetSubtitle(net.md_5.bungee.api.chat.BaseComponent subtitle) Deprecated.voidsetSubtitle(net.md_5.bungee.api.chat.BaseComponent[] subtitle) Deprecated.voidsetSwimming(boolean swimming) voidsetTexturePack(@NotNull String url) Deprecated.voidsetTitleTimes(int fadeInTicks, int stayTicks, int fadeOutTicks) Deprecated.voidsetTotalExperience(int exp) voidsetUnsaturatedRegenRate(int ticks) voidsetViewDistance(int viewDistance) voidsetWalkSpeed(float value) voidsetWhitelisted(boolean value) booleansetWindowProperty(@NotNull org.bukkit.inventory.InventoryView.Property prop, int value) voidsetWorldBorder(@Nullable org.bukkit.WorldBorder border) voidvoidshowEntity(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull org.bukkit.entity.Entity entity) voidshowPlayer(@NotNull org.bukkit.entity.Player player) Deprecated.voidshowPlayer(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull org.bukkit.entity.Player player) voidshowTitle(@Nullable net.md_5.bungee.api.chat.BaseComponent title) Deprecated.voidshowTitle(@Nullable net.md_5.bungee.api.chat.BaseComponent[] title) Deprecated.voidshowTitle(@Nullable net.md_5.bungee.api.chat.BaseComponent[] title, @Nullable net.md_5.bungee.api.chat.BaseComponent[] subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks) Deprecated.voidshowTitle(@Nullable net.md_5.bungee.api.chat.BaseComponent title, @Nullable net.md_5.bungee.api.chat.BaseComponent subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks) Deprecated.@Nullable org.bukkit.event.block.BlockBreakEventsimulateBlockBreak(org.bukkit.block.Block block) Simulates the player breaking a block.@Nullable org.bukkit.event.block.BlockDamageEventsimulateBlockDamage(org.bukkit.block.Block block) Simulates the player damaging a block.protected org.bukkit.event.block.BlockDamageEventsimulateBlockDamagePure(org.bukkit.block.Block block) Simulates the player damaging a block just likesimulateBlockDamage(Block).@Nullable org.bukkit.event.block.BlockPlaceEventsimulateBlockPlace(org.bukkit.Material material, org.bukkit.Location location) Simulates the player placing a block.org.bukkit.event.inventory.InventoryClickEventsimulateInventoryClick(int slot) Simulates the player clicking an Inventory.org.bukkit.event.inventory.InventoryClickEventsimulateInventoryClick(org.bukkit.inventory.InventoryView inventoryView, int slot) Simulates the player clicking an Inventory.org.bukkit.event.inventory.InventoryClickEventsimulateInventoryClick(org.bukkit.inventory.InventoryView inventoryView, org.bukkit.event.inventory.ClickType clickType, int slot) Simulates the player clicking an Inventory.@NotNull org.bukkit.event.player.PlayerMoveEventsimulatePlayerMove(@NotNull org.bukkit.Location moveLocation) This method moves player instantly with respect to PlayerMoveEvent@NotNull org.bukkit.event.player.PlayerToggleSneakEventsimulateSneak(boolean sneak) @NotNull org.bukkit.event.player.PlayerToggleSprintEventsimulateSprint(boolean sprint) @NotNull org.bukkit.event.player.PlayerToggleFlightEventsimulateToggleFlight(boolean fly) booleansleep(@NotNull org.bukkit.Location location, boolean force) voidspawnParticle(@NotNull org.bukkit.Particle particle, double x, double y, double z, int count) voidspawnParticle(@NotNull org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ) voidspawnParticle(@NotNull org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra) <T> voidspawnParticle(@NotNull org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) <T> voidspawnParticle(@NotNull org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, T data) <T> voidspawnParticle(@NotNull org.bukkit.Particle particle, double x, double y, double z, int count, T data) voidspawnParticle(@NotNull org.bukkit.Particle particle, @NotNull org.bukkit.Location location, int count) voidspawnParticle(@NotNull org.bukkit.Particle particle, @NotNull org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ) voidspawnParticle(@NotNull org.bukkit.Particle particle, @NotNull org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, double extra) <T> voidspawnParticle(@NotNull org.bukkit.Particle particle, @NotNull org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) <T> voidspawnParticle(@NotNull org.bukkit.Particle particle, @NotNull org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, T data) <T> voidspawnParticle(@NotNull org.bukkit.Particle particle, @NotNull org.bukkit.Location location, int count, T data) @NotNull org.bukkit.entity.Player.Spigotspigot()voidvoidvoidvoidstopSound(@NotNull org.bukkit.Sound sound) voidstopSound(@NotNull org.bukkit.Sound sound, org.bukkit.SoundCategory category) voidvoidbooleanteleport(@NotNull org.bukkit.Location location, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) booleanundiscoverRecipe(@NotNull org.bukkit.NamespacedKey recipe) intundiscoverRecipes(@NotNull Collection<org.bukkit.NamespacedKey> recipes) voidvoidvoidupdateTitle(@NotNull com.destroystokyo.paper.Title title) Deprecated.voidwakeup(boolean setSpawnLocation) Methods inherited from class be.seeseemelk.mockbukkit.entity.HumanEntityMock
getLastDeathLocation, setLastDeathLocationMethods inherited from class be.seeseemelk.mockbukkit.entity.LivingEntityMock
addPotionEffect, addPotionEffect, addPotionEffects, clearActiveItem, damage, damage, getAbsorptionAmount, getActiveItem, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getAttribute, getCategory, getCollidableExemptions, getEyeLocation, getHandRaisedTime, getHealth, getItemUseRemainingTime, getMaxHealth, getMaximumAir, getMemory, getPotionEffect, getRemainingAir, getShieldBlockingDelay, hasPotionEffect, isClimbing, isDead, isGliding, isInvisible, isValid, launchProjectile, launchProjectile, remove, removePotionEffect, resetMaxHealth, setAbsorptionAmount, setArrowCooldown, setArrowsInBody, setArrowsStuck, setGliding, setInvisible, setMaxHealth, setMaximumAir, setMemory, setRemainingAir, setShieldBlockingDelayMethods inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, asHoverEvent, assertLocation, assertNotTeleported, assertTeleported, clearTeleported, customName, customName, eject, equals, fromMobSpawner, getChunk, getCustomName, getEffectivePermissions, getEntityId, getEntitySpawnReason, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getMetadata, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getSpawnCategory, getTeleportCause, getTicksLived, getTrackedPlayers, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, hashCode, hasMetadata, hasPermission, hasPermission, hasTeleported, isCustomNameVisible, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInPowderedSnow, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrRainOrBubbleColumn, isOnGround, isOp, isPermissionSet, isPermissionSet, isSilent, isVisualFire, leaveVehicle, lockFreezeTicks, name, nextComponentMessage, nextMessage, playEffect, recalculatePermissions, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setLocation, setMetadata, setName, setOp, setPassenger, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spawnAt, spawnAt, teamDisplayName, teleport, teleport, teleportMethods inherited from class org.bukkit.command.CommandSender.Spigot
sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.attribute.Attributable
getAttributeMethods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSender
name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setMaxHealthMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getEntitySpawnReason, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getTrackedPlayers, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInPowderedSnow, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrRainOrBubbleColumn, isSilent, isValid, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spawnAt, spawnAt, teamDisplayName, teleport, teleport, teleport, teleportAsync, teleportAsyncMethods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEventMethods inherited from interface org.bukkit.entity.HumanEntity
getLastDeathLocation, getName, setLastDeathLocationMethods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, clearActiveItem, getActiveItem, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getCategory, getCollidableExemptions, getEyeLocation, getHandRaisedTime, getItemUseRemainingTime, getMaximumAir, getMemory, getPotionEffect, getRemainingAir, getShieldBlockingDelay, getTargetBlock, getTargetBlockFace, getTargetBlockInfo, getTargetEntity, getTargetEntityInfo, hasPotionEffect, isClimbing, isGliding, isInvisible, playPickupItemAnimation, removePotionEffect, setArrowCooldown, setArrowsInBody, setArrowsStuck, setGliding, setInvisible, setMaximumAir, setMemory, setRemainingAir, setShieldBlockingDelayMethods inherited from interface be.seeseemelk.mockbukkit.command.MessageTarget
assertNoMoreSaid, assertSaidMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.OfflinePlayer
banPlayer, banPlayer, banPlayer, banPlayer, banPlayer, getLastDeathLocation, getName, getUniqueIdMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainerMethods inherited from interface org.bukkit.entity.Player
asHoverEvent, banPlayerFull, banPlayerFull, banPlayerFull, banPlayerFull, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, identity, isOnGround, sendMessage, sendMessage, sendMessage, sendSignChange, sendSignChange, sendSignChange, setResourcePackMethods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectileMethods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOpMethods inherited from interface be.seeseemelk.mockbukkit.sound.SoundReceiver
assertSoundHeard, assertSoundHeard, assertSoundHeard, assertSoundHeard, assertSoundHeard, assertSoundHeard, assertSoundHeard, assertSoundHeard, clearSounds
-
Constructor Details
-
PlayerMock
-
PlayerMock
-
-
Method Details
-
disconnect
public boolean disconnect()Simulates a disconnection from the server.- Returns:
- True if the player was disconnected, false if they were already offline.
-
reconnect
public boolean reconnect()Simulates a connection to the server.- Returns:
- True if the player was connected, false if they were already online.
-
getType
@NotNull public @NotNull org.bukkit.entity.EntityType getType()- Specified by:
getTypein interfaceorg.bukkit.entity.Entity- Overrides:
getTypein classEntityMock
-
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 likesimulateBlockDamage(Block). However, ifInstaBreakis enabled, it will not automatically fire aBlockBreakEvent. It will also still fire aBlockDamageEventeven 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. IfInstaBreakis set to true by an event handler, aBlockBreakEventis immediately fired. The result will then still be whether or not theBlockDamageEventwas cancelled or not, not the laterBlockBreakEvent.- Parameters:
block- The block to damage.- Returns:
- the event that was fired,
nullif 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,
nullif 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 tolocation- The location of the material to set to- Returns:
- The event that was fired.
nullif it wasn't or the player was in adventure mode.
-
simulateInventoryClick
public org.bukkit.event.inventory.InventoryClickEvent simulateInventoryClick(int slot) Simulates the player clicking an Inventory.- Parameters:
slot- The slot in the player's open inventory- Returns:
- The event that was fired.
-
simulateInventoryClick
public org.bukkit.event.inventory.InventoryClickEvent simulateInventoryClick(org.bukkit.inventory.InventoryView inventoryView, int slot) Simulates the player clicking an Inventory.- Parameters:
inventoryView- The inventory view we want to clickslot- The slot in the provided Inventory- Returns:
- The event that was fired.
-
simulateInventoryClick
public org.bukkit.event.inventory.InventoryClickEvent simulateInventoryClick(org.bukkit.inventory.InventoryView inventoryView, org.bukkit.event.inventory.ClickType clickType, int slot) Simulates the player clicking an Inventory.- Parameters:
inventoryView- The inventory view we want to clickclickType- The click type we want to fireslot- The slot in the provided Inventory- Returns:
- The event that was fired.
-
respawn
public void respawn()This method simulates thePlayerrespawning and also calls aPlayerRespawnEvent. Should thePlayernot be dead (whenLivingEntityMock.isDead()returns false) then this will throw anUnsupportedOperationException. Otherwise, theLocationwill be set toPlayer.getBedSpawnLocation()orWorld.getSpawnLocation(). Lastly the health of thisPlayerwill 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:
getInventoryin interfaceorg.bukkit.entity.HumanEntity- Specified by:
getInventoryin interfaceorg.bukkit.inventory.InventoryHolder
-
getGameMode
@NotNull public @NotNull org.bukkit.GameMode getGameMode()- Specified by:
getGameModein interfaceorg.bukkit.entity.HumanEntity
-
setGameMode
public void setGameMode(@NotNull @NotNull org.bukkit.GameMode mode) - Specified by:
setGameModein interfaceorg.bukkit.entity.HumanEntity
-
isWhitelisted
public boolean isWhitelisted()- Specified by:
isWhitelistedin interfaceorg.bukkit.OfflinePlayer
-
setWhitelisted
public void setWhitelisted(boolean value) - Specified by:
setWhitelistedin interfaceorg.bukkit.OfflinePlayer
-
getPlayer
public org.bukkit.entity.Player getPlayer()- Specified by:
getPlayerin interfaceorg.bukkit.OfflinePlayer
-
isOnline
public boolean isOnline()- Specified by:
isOnlinein interfaceorg.bukkit.OfflinePlayer
-
isBanned
public boolean isBanned()- Specified by:
isBannedin interfaceorg.bukkit.OfflinePlayer
-
getOpenInventory
@NotNull public @NotNull org.bukkit.inventory.InventoryView getOpenInventory()- Specified by:
getOpenInventoryin interfaceorg.bukkit.entity.HumanEntity
-
openInventory
public void openInventory(@NotNull @NotNull org.bukkit.inventory.InventoryView inventory) - Specified by:
openInventoryin interfaceorg.bukkit.entity.HumanEntity
-
openInventory
public org.bukkit.inventory.InventoryView openInventory(@NotNull @NotNull org.bukkit.inventory.Inventory inventory) - Specified by:
openInventoryin interfaceorg.bukkit.entity.HumanEntity
-
closeInventory
public void closeInventory()- Specified by:
closeInventoryin interfaceorg.bukkit.entity.HumanEntity
-
closeInventory
public void closeInventory(@NotNull org.bukkit.event.inventory.InventoryCloseEvent.Reason reason) - Specified by:
closeInventoryin interfaceorg.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 openInventoryViewfor thisPlayer. ThePredicaterefers to the top inventory, not thePlayerInventory. It uses the methodInventoryView.getTopInventory().- Parameters:
message- The message to display upon failuretype- TheInventoryTypeyou are expectingpredicate- A customPredicateto check the openedInventory.
-
assertInventoryView
public void assertInventoryView(org.bukkit.event.inventory.InventoryType type, Predicate<org.bukkit.inventory.Inventory> predicate) This method is an assertion for the currently openInventoryViewfor thisPlayer. ThePredicaterefers to the top inventory, not thePlayerInventory. It uses the methodInventoryView.getTopInventory().- Parameters:
type- TheInventoryTypeyou are expectingpredicate- A customPredicateto check the openedInventory.
-
assertInventoryView
public void assertInventoryView(org.bukkit.event.inventory.InventoryType type) This method is an assertion for the currently openInventoryViewfor thisPlayer.- Parameters:
type- TheInventoryTypeyou are expecting
-
assertInventoryView
This method is an assertion for the currently openInventoryViewfor thisPlayer.- Parameters:
message- The message to display upon failuretype- TheInventoryTypeyou are expecting
-
updateInventory
public void updateInventory()- Specified by:
updateInventoryin interfaceorg.bukkit.entity.Player
-
performCommand
- Specified by:
performCommandin interfaceorg.bukkit.entity.Player
-
getEnderChest
@NotNull public @NotNull org.bukkit.inventory.Inventory getEnderChest()- Specified by:
getEnderChestin interfaceorg.bukkit.entity.HumanEntity
-
getMainHand
@NotNull public @NotNull org.bukkit.inventory.MainHand getMainHand()- Specified by:
getMainHandin interfaceorg.bukkit.entity.HumanEntity
-
setWindowProperty
public boolean setWindowProperty(@NotNull @NotNull org.bukkit.inventory.InventoryView.Property prop, int value) - Specified by:
setWindowPropertyin interfaceorg.bukkit.entity.HumanEntity
-
openWorkbench
public org.bukkit.inventory.InventoryView openWorkbench(org.bukkit.Location location, boolean force) - Specified by:
openWorkbenchin interfaceorg.bukkit.entity.HumanEntity
-
openEnchanting
public org.bukkit.inventory.InventoryView openEnchanting(org.bukkit.Location location, boolean force) - Specified by:
openEnchantingin interfaceorg.bukkit.entity.HumanEntity
-
openMerchant
public org.bukkit.inventory.InventoryView openMerchant(@NotNull @NotNull org.bukkit.entity.Villager trader, boolean force) - Specified by:
openMerchantin interfaceorg.bukkit.entity.HumanEntity
-
openMerchant
public org.bukkit.inventory.InventoryView openMerchant(@NotNull @NotNull org.bukkit.inventory.Merchant merchant, boolean force) - Specified by:
openMerchantin interfaceorg.bukkit.entity.HumanEntity
-
openAnvil
@Nullable public @Nullable org.bukkit.inventory.InventoryView openAnvil(@Nullable @Nullable org.bukkit.Location location, boolean force) - Specified by:
openAnvilin interfaceorg.bukkit.entity.HumanEntity
-
openCartographyTable
@Nullable public @Nullable org.bukkit.inventory.InventoryView openCartographyTable(@Nullable @Nullable org.bukkit.Location location, boolean force) - Specified by:
openCartographyTablein interfaceorg.bukkit.entity.HumanEntity
-
openGrindstone
@Nullable public @Nullable org.bukkit.inventory.InventoryView openGrindstone(@Nullable @Nullable org.bukkit.Location location, boolean force) - Specified by:
openGrindstonein interfaceorg.bukkit.entity.HumanEntity
-
openLoom
@Nullable public @Nullable org.bukkit.inventory.InventoryView openLoom(@Nullable @Nullable org.bukkit.Location location, boolean force) - Specified by:
openLoomin interfaceorg.bukkit.entity.HumanEntity
-
openSmithingTable
@Nullable public @Nullable org.bukkit.inventory.InventoryView openSmithingTable(@Nullable @Nullable org.bukkit.Location location, boolean force) - Specified by:
openSmithingTablein interfaceorg.bukkit.entity.HumanEntity
-
openStonecutter
@Nullable public @Nullable org.bukkit.inventory.InventoryView openStonecutter(@Nullable @Nullable org.bukkit.Location location, boolean force) - Specified by:
openStonecutterin interfaceorg.bukkit.entity.HumanEntity
-
getItemInHand
@NotNull public @NotNull org.bukkit.inventory.ItemStack getItemInHand()- Specified by:
getItemInHandin interfaceorg.bukkit.entity.HumanEntity
-
setItemInHand
public void setItemInHand(org.bukkit.inventory.ItemStack item) - Specified by:
setItemInHandin interfaceorg.bukkit.entity.HumanEntity
-
getItemOnCursor
@NotNull public @NotNull org.bukkit.inventory.ItemStack getItemOnCursor()- Specified by:
getItemOnCursorin interfaceorg.bukkit.entity.HumanEntity
-
setItemOnCursor
public void setItemOnCursor(org.bukkit.inventory.ItemStack item) - Specified by:
setItemOnCursorin interfaceorg.bukkit.entity.HumanEntity
-
hasCooldown
public boolean hasCooldown(@NotNull @NotNull org.bukkit.Material material) - Specified by:
hasCooldownin interfaceorg.bukkit.entity.HumanEntity
-
getCooldown
public int getCooldown(@NotNull @NotNull org.bukkit.Material material) - Specified by:
getCooldownin interfaceorg.bukkit.entity.HumanEntity
-
setCooldown
public void setCooldown(@NotNull @NotNull org.bukkit.Material material, int ticks) - Specified by:
setCooldownin interfaceorg.bukkit.entity.HumanEntity
-
isDeeplySleeping
public boolean isDeeplySleeping()- Specified by:
isDeeplySleepingin interfaceorg.bukkit.entity.HumanEntity
-
isSleeping
public boolean isSleeping()- Specified by:
isSleepingin interfaceorg.bukkit.entity.LivingEntity- Overrides:
isSleepingin classLivingEntityMock
-
getSleepTicks
public int getSleepTicks()- Specified by:
getSleepTicksin interfaceorg.bukkit.entity.HumanEntity
-
getPotentialBedLocation
@Nullable public @Nullable org.bukkit.Location getPotentialBedLocation()- Specified by:
getPotentialBedLocationin interfaceorg.bukkit.entity.HumanEntity
-
isBlocking
public boolean isBlocking()- Specified by:
isBlockingin interfaceorg.bukkit.entity.HumanEntity
-
isHandRaised
public boolean isHandRaised()- Specified by:
isHandRaisedin interfaceorg.bukkit.entity.HumanEntity- Specified by:
isHandRaisedin interfaceorg.bukkit.entity.LivingEntity- Overrides:
isHandRaisedin classLivingEntityMock
-
getHandRaised
@NotNull public @NotNull org.bukkit.inventory.EquipmentSlot getHandRaised()- Specified by:
getHandRaisedin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getHandRaisedin classLivingEntityMock
-
isJumping
public boolean isJumping()- Specified by:
isJumpingin interfaceorg.bukkit.entity.LivingEntity- Overrides:
isJumpingin classLivingEntityMock
-
setJumping
public void setJumping(boolean jumping) - Specified by:
setJumpingin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setJumpingin classLivingEntityMock
-
playPickupItemAnimation
public void playPickupItemAnimation(@NotNull @NotNull org.bukkit.entity.Item item, int quantity) - Specified by:
playPickupItemAnimationin interfaceorg.bukkit.entity.LivingEntity- Overrides:
playPickupItemAnimationin classLivingEntityMock
-
getHurtDirection
public float getHurtDirection()- Specified by:
getHurtDirectionin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getHurtDirectionin classLivingEntityMock
-
setHurtDirection
public void setHurtDirection(float hurtDirection) - Specified by:
setHurtDirectionin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setHurtDirectionin classLivingEntityMock
-
getItemInUse
@Nullable public @Nullable org.bukkit.inventory.ItemStack getItemInUse()- Specified by:
getItemInUsein interfaceorg.bukkit.entity.HumanEntity
-
getExpToLevel
public int getExpToLevel()- Specified by:
getExpToLevelin interfaceorg.bukkit.entity.HumanEntity
-
releaseLeftShoulderEntity
@Nullable public @Nullable org.bukkit.entity.Entity releaseLeftShoulderEntity()- Specified by:
releaseLeftShoulderEntityin interfaceorg.bukkit.entity.HumanEntity
-
releaseRightShoulderEntity
@Nullable public @Nullable org.bukkit.entity.Entity releaseRightShoulderEntity()- Specified by:
releaseRightShoulderEntityin interfaceorg.bukkit.entity.HumanEntity
-
getShoulderEntityLeft
public org.bukkit.entity.Entity getShoulderEntityLeft()- Specified by:
getShoulderEntityLeftin interfaceorg.bukkit.entity.HumanEntity
-
setShoulderEntityLeft
public void setShoulderEntityLeft(org.bukkit.entity.Entity entity) - Specified by:
setShoulderEntityLeftin interfaceorg.bukkit.entity.HumanEntity
-
getShoulderEntityRight
public org.bukkit.entity.Entity getShoulderEntityRight()- Specified by:
getShoulderEntityRightin interfaceorg.bukkit.entity.HumanEntity
-
setShoulderEntityRight
public void setShoulderEntityRight(org.bukkit.entity.Entity entity) - Specified by:
setShoulderEntityRightin interfaceorg.bukkit.entity.HumanEntity
-
openSign
public void openSign(@NotNull @NotNull org.bukkit.block.Sign sign) - Specified by:
openSignin interfaceorg.bukkit.entity.HumanEntity- Specified by:
openSignin interfaceorg.bukkit.entity.Player
-
showDemoScreen
public void showDemoScreen()- Specified by:
showDemoScreenin interfaceorg.bukkit.entity.Player
-
isAllowingServerListings
public boolean isAllowingServerListings()- Specified by:
isAllowingServerListingsin interfaceorg.bukkit.entity.Player
-
getEyeHeight
public double getEyeHeight()- Specified by:
getEyeHeightin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getEyeHeightin classLivingEntityMock
-
getEyeHeight
public double getEyeHeight(boolean ignorePose) - Specified by:
getEyeHeightin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getEyeHeightin classLivingEntityMock
-
getLineOfSight
@NotNull public @NotNull List<org.bukkit.block.Block> getLineOfSight(Set<org.bukkit.Material> transparent, int maxDistance) - Specified by:
getLineOfSightin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getLineOfSightin classLivingEntityMock
-
getTargetBlock
@NotNull public @NotNull org.bukkit.block.Block getTargetBlock(Set<org.bukkit.Material> transparent, int maxDistance) - Specified by:
getTargetBlockin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getTargetBlockin classLivingEntityMock
-
getTargetBlock
@Nullable public @Nullable org.bukkit.block.Block getTargetBlock(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) - Specified by:
getTargetBlockin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getTargetBlockin classLivingEntityMock
-
getTargetBlockFace
@Nullable public @Nullable org.bukkit.block.BlockFace getTargetBlockFace(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) - Specified by:
getTargetBlockFacein interfaceorg.bukkit.entity.LivingEntity- Overrides:
getTargetBlockFacein classLivingEntityMock
-
getTargetBlockInfo
@Nullable public @Nullable com.destroystokyo.paper.block.TargetBlockInfo getTargetBlockInfo(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) - Specified by:
getTargetBlockInfoin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getTargetBlockInfoin classLivingEntityMock
-
getTargetEntity
@Nullable public @Nullable org.bukkit.entity.Entity getTargetEntity(int maxDistance, boolean ignoreBlocks) - Specified by:
getTargetEntityin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getTargetEntityin classLivingEntityMock
-
getTargetEntityInfo
@Nullable public @Nullable com.destroystokyo.paper.entity.TargetEntityInfo getTargetEntityInfo(int maxDistance, boolean ignoreBlocks) - Specified by:
getTargetEntityInfoin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getTargetEntityInfoin classLivingEntityMock
-
getLastTwoTargetBlocks
@NotNull public @NotNull List<org.bukkit.block.Block> getLastTwoTargetBlocks(Set<org.bukkit.Material> transparent, int maxDistance) - Specified by:
getLastTwoTargetBlocksin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getLastTwoTargetBlocksin classLivingEntityMock
-
getMaximumNoDamageTicks
public int getMaximumNoDamageTicks()- Specified by:
getMaximumNoDamageTicksin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getMaximumNoDamageTicksin classLivingEntityMock
-
setMaximumNoDamageTicks
public void setMaximumNoDamageTicks(int ticks) - Specified by:
setMaximumNoDamageTicksin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setMaximumNoDamageTicksin classLivingEntityMock
-
getLastDamage
public double getLastDamage()- Specified by:
getLastDamagein interfaceorg.bukkit.entity.LivingEntity- Overrides:
getLastDamagein classLivingEntityMock
-
setLastDamage
public void setLastDamage(double damage) - Specified by:
setLastDamagein interfaceorg.bukkit.entity.LivingEntity- Overrides:
setLastDamagein classLivingEntityMock
-
getNoDamageTicks
public int getNoDamageTicks()- Specified by:
getNoDamageTicksin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getNoDamageTicksin classLivingEntityMock
-
setNoDamageTicks
public void setNoDamageTicks(int ticks) - Specified by:
setNoDamageTicksin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setNoDamageTicksin classLivingEntityMock
-
getKiller
public org.bukkit.entity.Player getKiller()- Specified by:
getKillerin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getKillerin classLivingEntityMock
-
setKiller
public void setKiller(@Nullable @Nullable org.bukkit.entity.Player killer) - Specified by:
setKillerin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setKillerin classLivingEntityMock
-
hasLineOfSight
public boolean hasLineOfSight(@NotNull @NotNull org.bukkit.entity.Entity other) - Specified by:
hasLineOfSightin interfaceorg.bukkit.entity.LivingEntity- Overrides:
hasLineOfSightin classLivingEntityMock
-
hasLineOfSight
public boolean hasLineOfSight(@NotNull @NotNull org.bukkit.Location location) - Specified by:
hasLineOfSightin interfaceorg.bukkit.entity.LivingEntity- Overrides:
hasLineOfSightin classLivingEntityMock
-
getRemoveWhenFarAway
public boolean getRemoveWhenFarAway()- Specified by:
getRemoveWhenFarAwayin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getRemoveWhenFarAwayin classLivingEntityMock
-
setRemoveWhenFarAway
public void setRemoveWhenFarAway(boolean remove) - Specified by:
setRemoveWhenFarAwayin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setRemoveWhenFarAwayin classLivingEntityMock
-
getEquipment
public org.bukkit.inventory.EntityEquipment getEquipment()- Specified by:
getEquipmentin interfaceorg.bukkit.entity.HumanEntity- Specified by:
getEquipmentin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getEquipmentin classLivingEntityMock
-
setCanPickupItems
public void setCanPickupItems(boolean pickup) - Specified by:
setCanPickupItemsin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setCanPickupItemsin classLivingEntityMock
-
getCanPickupItems
public boolean getCanPickupItems()- Specified by:
getCanPickupItemsin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getCanPickupItemsin classLivingEntityMock
-
isLeashed
public boolean isLeashed()- Specified by:
isLeashedin interfaceorg.bukkit.entity.LivingEntity- Overrides:
isLeashedin classLivingEntityMock
-
getLeashHolder
@NotNull public @NotNull org.bukkit.entity.Entity getLeashHolder()- Specified by:
getLeashHolderin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getLeashHolderin classLivingEntityMock
-
setLeashHolder
public boolean setLeashHolder(org.bukkit.entity.Entity holder) - Specified by:
setLeashHolderin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setLeashHolderin classLivingEntityMock
-
setAI
public void setAI(boolean ai) - Specified by:
setAIin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setAIin classLivingEntityMock
-
hasAI
public boolean hasAI()- Specified by:
hasAIin interfaceorg.bukkit.entity.LivingEntity- Overrides:
hasAIin classLivingEntityMock
-
setCollidable
public void setCollidable(boolean collidable) - Specified by:
setCollidablein interfaceorg.bukkit.entity.LivingEntity- Overrides:
setCollidablein classLivingEntityMock
-
isCollidable
public boolean isCollidable()- Specified by:
isCollidablein interfaceorg.bukkit.entity.LivingEntity- Overrides:
isCollidablein classLivingEntityMock
-
isConversing
public boolean isConversing()- Specified by:
isConversingin interfaceorg.bukkit.conversations.Conversable
-
acceptConversationInput
- Specified by:
acceptConversationInputin interfaceorg.bukkit.conversations.Conversable
-
beginConversation
public boolean beginConversation(@NotNull @NotNull org.bukkit.conversations.Conversation conversation) - Specified by:
beginConversationin interfaceorg.bukkit.conversations.Conversable
-
abandonConversation
public void abandonConversation(@NotNull @NotNull org.bukkit.conversations.Conversation conversation) - Specified by:
abandonConversationin interfaceorg.bukkit.conversations.Conversable
-
abandonConversation
public void abandonConversation(@NotNull @NotNull org.bukkit.conversations.Conversation conversation, @NotNull @NotNull org.bukkit.conversations.ConversationAbandonedEvent details) - Specified by:
abandonConversationin interfaceorg.bukkit.conversations.Conversable
-
getFirstPlayed
public long getFirstPlayed()- Specified by:
getFirstPlayedin interfaceorg.bukkit.OfflinePlayer
-
getLastPlayed
public long getLastPlayed()- Specified by:
getLastPlayedin interfaceorg.bukkit.OfflinePlayer
-
hasPlayedBefore
public boolean hasPlayedBefore()- Specified by:
hasPlayedBeforein interfaceorg.bukkit.OfflinePlayer
-
setLastPlayed
public void setLastPlayed(long time) -
serialize
- Specified by:
serializein interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable
-
sendPluginMessage
public void sendPluginMessage(@NotNull @NotNull org.bukkit.plugin.Plugin source, @NotNull @NotNull String channel, byte[] message) - Specified by:
sendPluginMessagein interfaceorg.bukkit.plugin.messaging.PluginMessageRecipient
-
getListeningPluginChannels
- Specified by:
getListeningPluginChannelsin interfaceorg.bukkit.plugin.messaging.PluginMessageRecipient
-
displayName
@NotNull public @NotNull net.kyori.adventure.text.Component displayName()- Specified by:
displayNamein interfaceorg.bukkit.entity.Player
-
displayName
public void displayName(@Nullable @Nullable net.kyori.adventure.text.Component displayName) - Specified by:
displayNamein interfaceorg.bukkit.entity.Player
-
getDisplayName
Deprecated.- Specified by:
getDisplayNamein interfaceorg.bukkit.entity.Player
-
setDisplayName
Deprecated.- Specified by:
setDisplayNamein interfaceorg.bukkit.entity.Player
-
playerListName
public void playerListName(@Nullable @Nullable net.kyori.adventure.text.Component name) - Specified by:
playerListNamein interfaceorg.bukkit.entity.Player
-
playerListName
@NotNull public @NotNull net.kyori.adventure.text.Component playerListName()- Specified by:
playerListNamein interfaceorg.bukkit.entity.Player
-
playerListHeader
@Nullable public @Nullable net.kyori.adventure.text.Component playerListHeader()- Specified by:
playerListHeaderin interfaceorg.bukkit.entity.Player
-
getPlayerListName
Deprecated.- Specified by:
getPlayerListNamein interfaceorg.bukkit.entity.Player
-
setPlayerListName
Deprecated.- Specified by:
setPlayerListNamein interfaceorg.bukkit.entity.Player
-
setCompassTarget
public void setCompassTarget(@NotNull @NotNull org.bukkit.Location loc) - Specified by:
setCompassTargetin interfaceorg.bukkit.entity.Player
-
getCompassTarget
@NotNull public @NotNull org.bukkit.Location getCompassTarget()- Specified by:
getCompassTargetin interfaceorg.bukkit.entity.Player
-
setAddress
Sets theInetSocketAddressreturned bygetAddress().- Parameters:
address- The address to set.
-
getAddress
- Specified by:
getAddressin interfacecom.destroystokyo.paper.network.NetworkClient- Specified by:
getAddressin interfaceorg.bukkit.entity.Player
-
getProtocolVersion
public int getProtocolVersion()- Specified by:
getProtocolVersionin interfacecom.destroystokyo.paper.network.NetworkClient
-
getVirtualHost
- Specified by:
getVirtualHostin interfacecom.destroystokyo.paper.network.NetworkClient
-
sendRawMessage
- Specified by:
sendRawMessagein interfaceorg.bukkit.conversations.Conversable- Specified by:
sendRawMessagein interfaceorg.bukkit.entity.Player
-
sendRawMessage
- Specified by:
sendRawMessagein interfaceorg.bukkit.conversations.Conversable
-
kickPlayer
Deprecated.- Specified by:
kickPlayerin interfaceorg.bukkit.entity.Player
-
kick
public void kick()- Specified by:
kickin interfaceorg.bukkit.entity.Player
-
kick
public void kick(@Nullable @Nullable net.kyori.adventure.text.Component message) - Specified by:
kickin interfaceorg.bukkit.entity.Player
-
kick
public void kick(@Nullable @Nullable net.kyori.adventure.text.Component message, @NotNull org.bukkit.event.player.PlayerKickEvent.Cause cause) - Specified by:
kickin interfaceorg.bukkit.entity.Player
-
chat
- Specified by:
chatin interfaceorg.bukkit.entity.Player
-
isSneaking
public boolean isSneaking()- Specified by:
isSneakingin interfaceorg.bukkit.entity.Player
-
setSneaking
public void setSneaking(boolean sneaking) - Specified by:
setSneakingin interfaceorg.bukkit.entity.Player
-
simulateSneak
@NotNull public @NotNull org.bukkit.event.player.PlayerToggleSneakEvent simulateSneak(boolean sneak) -
isSprinting
public boolean isSprinting()- Specified by:
isSprintingin interfaceorg.bukkit.entity.Player
-
setSprinting
public void setSprinting(boolean sprinting) - Specified by:
setSprintingin interfaceorg.bukkit.entity.Player
-
simulateSprint
@NotNull public @NotNull org.bukkit.event.player.PlayerToggleSprintEvent simulateSprint(boolean sprint) -
saveData
public void saveData()- Specified by:
saveDatain interfaceorg.bukkit.entity.Player
-
loadData
public void loadData()- Specified by:
loadDatain interfaceorg.bukkit.entity.Player
-
isSleepingIgnored
public boolean isSleepingIgnored()- Specified by:
isSleepingIgnoredin interfaceorg.bukkit.entity.Player
-
setSleepingIgnored
public void setSleepingIgnored(boolean isSleeping) - Specified by:
setSleepingIgnoredin interfaceorg.bukkit.entity.Player
-
playNote
@Deprecated public void playNote(@NotNull @NotNull org.bukkit.Location loc, byte instrument, byte note) Deprecated.- Specified by:
playNotein interfaceorg.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:
playNotein interfaceorg.bukkit.entity.Player
-
playSound
public void playSound(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull String sound, float volume, float pitch) - Specified by:
playSoundin interfaceorg.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:
playSoundin interfaceorg.bukkit.entity.Player
-
playSound
public void playSound(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.Sound sound, float volume, float pitch) - Specified by:
playSoundin interfaceorg.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:
playSoundin interfaceorg.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:
playSoundin interfaceorg.bukkit.entity.Player
-
playSound
public void playSound(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.Sound sound, @NotNull @NotNull org.bukkit.SoundCategory category, float volume, float pitch) - Specified by:
playSoundin interfaceorg.bukkit.entity.Player
-
getHeardSounds
Description copied from interface:SoundReceiverThis returns aListof everyAudioExperiencethis receiver has received.- Specified by:
getHeardSoundsin interfaceSoundReceiver- Returns:
- A mutable
Listcontaining every heard sound.
-
addHeardSound
- Specified by:
addHeardSoundin interfaceSoundReceiver
-
stopSound
public void stopSound(@NotNull @NotNull org.bukkit.Sound sound) - Specified by:
stopSoundin interfaceorg.bukkit.entity.Player
-
stopSound
- Specified by:
stopSoundin interfaceorg.bukkit.entity.Player
-
stopSound
public void stopSound(@NotNull @NotNull org.bukkit.Sound sound, org.bukkit.SoundCategory category) - Specified by:
stopSoundin interfaceorg.bukkit.entity.Player
-
stopSound
- Specified by:
stopSoundin interfaceorg.bukkit.entity.Player
-
stopAllSounds
public void stopAllSounds()- Specified by:
stopAllSoundsin interfaceorg.bukkit.entity.Player
-
playEffect
@Deprecated public void playEffect(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.Effect effect, int data) Deprecated.- Specified by:
playEffectin interfaceorg.bukkit.entity.Player
-
playEffect
public <T> void playEffect(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.Effect effect, T data) - Specified by:
playEffectin interfaceorg.bukkit.entity.Player
-
breakBlock
public boolean breakBlock(@NotNull @NotNull org.bukkit.block.Block block) - Specified by:
breakBlockin interfaceorg.bukkit.entity.Player
-
sendBlockChange
@Deprecated public void sendBlockChange(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.Material material, byte data) Deprecated.- Specified by:
sendBlockChangein interfaceorg.bukkit.entity.Player
-
sendBlockChange
public void sendBlockChange(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.block.data.BlockData block) - Specified by:
sendBlockChangein interfaceorg.bukkit.entity.Player
-
sendSignChange
public void sendSignChange(@NotNull @NotNull org.bukkit.Location loc, @Nullable @Nullable List<net.kyori.adventure.text.Component> lines, @NotNull @NotNull org.bukkit.DyeColor dyeColor, boolean hasGlowingText) throws IllegalArgumentException - Specified by:
sendSignChangein interfaceorg.bukkit.entity.Player- Throws:
IllegalArgumentException
-
sendSignChange
Deprecated.- Specified by:
sendSignChangein interfaceorg.bukkit.entity.Player
-
sendSignChange
public void sendSignChange(@NotNull @NotNull org.bukkit.Location loc, String[] lines, @NotNull @NotNull org.bukkit.DyeColor dyeColor) throws IllegalArgumentException - Specified by:
sendSignChangein interfaceorg.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:
sendSignChangein interfaceorg.bukkit.entity.Player- Throws:
IllegalArgumentException
-
sendMap
public void sendMap(@NotNull @NotNull org.bukkit.map.MapView map) - Specified by:
sendMapin interfaceorg.bukkit.entity.Player
-
sendActionBar
Deprecated.- Specified by:
sendActionBarin interfaceorg.bukkit.entity.Player
-
sendActionBar
Deprecated.- Specified by:
sendActionBarin interfaceorg.bukkit.entity.Player
-
sendActionBar
@Deprecated public void sendActionBar(@NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent... message) Deprecated.- Specified by:
sendActionBarin interfaceorg.bukkit.entity.Player
-
setTitleTimes
Deprecated.- Specified by:
setTitleTimesin interfaceorg.bukkit.entity.Player
-
setSubtitle
Deprecated.- Specified by:
setSubtitlein interfaceorg.bukkit.entity.Player
-
setSubtitle
Deprecated.- Specified by:
setSubtitlein interfaceorg.bukkit.entity.Player
-
showTitle
@Deprecated public void showTitle(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent[] title) Deprecated.- Specified by:
showTitlein interfaceorg.bukkit.entity.Player
-
showTitle
Deprecated.- Specified by:
showTitlein interfaceorg.bukkit.entity.Player
-
showTitle
@Deprecated public void showTitle(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent[] title, @Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent[] subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks) Deprecated.- Specified by:
showTitlein interfaceorg.bukkit.entity.Player
-
showTitle
@Deprecated public void showTitle(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent title, @Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks) Deprecated.- Specified by:
showTitlein interfaceorg.bukkit.entity.Player
-
sendTitle
Deprecated.- Specified by:
sendTitlein interfaceorg.bukkit.entity.Player
-
updateTitle
Deprecated.- Specified by:
updateTitlein interfaceorg.bukkit.entity.Player
-
hideTitle
Deprecated.- Specified by:
hideTitlein interfaceorg.bukkit.entity.Player
-
getPreviousGameMode
@Nullable public @Nullable org.bukkit.GameMode getPreviousGameMode()- Specified by:
getPreviousGameModein interfaceorg.bukkit.entity.Player
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int amount) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int amount) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
setStatistic
public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, int newValue) - Specified by:
setStatisticin interfaceorg.bukkit.OfflinePlayer
-
getStatistic
public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic) - Specified by:
getStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
getStatistic
public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material) - Specified by:
getStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material, int amount) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material, int amount) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
setStatistic
public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.Material material, int newValue) - Specified by:
setStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
getStatistic
public int getStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType) - Specified by:
getStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int amount) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int amount) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
setStatistic
public void setStatistic(@NotNull @NotNull org.bukkit.Statistic statistic, @NotNull @NotNull org.bukkit.entity.EntityType entityType, int newValue) - Specified by:
setStatisticin interfaceorg.bukkit.OfflinePlayer
-
setPlayerTime
public void setPlayerTime(long time, boolean relative) - Specified by:
setPlayerTimein interfaceorg.bukkit.entity.Player
-
getPlayerTime
public long getPlayerTime()- Specified by:
getPlayerTimein interfaceorg.bukkit.entity.Player
-
getPlayerTimeOffset
public long getPlayerTimeOffset()- Specified by:
getPlayerTimeOffsetin interfaceorg.bukkit.entity.Player
-
isPlayerTimeRelative
public boolean isPlayerTimeRelative()- Specified by:
isPlayerTimeRelativein interfaceorg.bukkit.entity.Player
-
resetPlayerTime
public void resetPlayerTime()- Specified by:
resetPlayerTimein interfaceorg.bukkit.entity.Player
-
getPlayerWeather
public org.bukkit.WeatherType getPlayerWeather()- Specified by:
getPlayerWeatherin interfaceorg.bukkit.entity.Player
-
setPlayerWeather
public void setPlayerWeather(@NotNull @NotNull org.bukkit.WeatherType type) - Specified by:
setPlayerWeatherin interfaceorg.bukkit.entity.Player
-
resetPlayerWeather
public void resetPlayerWeather()- Specified by:
resetPlayerWeatherin interfaceorg.bukkit.entity.Player
-
giveExp
public void giveExp(int amount) - Specified by:
giveExpin interfaceorg.bukkit.entity.Player
-
giveExp
public void giveExp(int amount, boolean applyMending) - Specified by:
giveExpin interfaceorg.bukkit.entity.Player
-
applyMending
public int applyMending(int amount) - Specified by:
applyMendingin interfaceorg.bukkit.entity.Player
-
giveExpLevels
public void giveExpLevels(int amount) - Specified by:
giveExpLevelsin interfaceorg.bukkit.entity.Player
-
getExp
public float getExp()- Specified by:
getExpin interfaceorg.bukkit.entity.Player
-
setExp
public void setExp(float exp) - Specified by:
setExpin interfaceorg.bukkit.entity.Player
-
getLevel
public int getLevel()- Specified by:
getLevelin interfaceorg.bukkit.entity.Player
-
setLevel
public void setLevel(int level) - Specified by:
setLevelin interfaceorg.bukkit.entity.Player
-
getTotalExperience
public int getTotalExperience()- Specified by:
getTotalExperiencein interfaceorg.bukkit.entity.Player
-
setTotalExperience
public void setTotalExperience(int exp) - Specified by:
setTotalExperiencein interfaceorg.bukkit.entity.Player
-
getExhaustion
public float getExhaustion()- Specified by:
getExhaustionin interfaceorg.bukkit.entity.HumanEntity
-
setExhaustion
public void setExhaustion(float value) - Specified by:
setExhaustionin interfaceorg.bukkit.entity.HumanEntity
-
getSaturation
public float getSaturation()- Specified by:
getSaturationin interfaceorg.bukkit.entity.HumanEntity
-
setSaturation
public void setSaturation(float value) - Specified by:
setSaturationin interfaceorg.bukkit.entity.HumanEntity
-
getFoodLevel
public int getFoodLevel()- Specified by:
getFoodLevelin interfaceorg.bukkit.entity.HumanEntity
-
setFoodLevel
public void setFoodLevel(int foodLevel) - Specified by:
setFoodLevelin interfaceorg.bukkit.entity.HumanEntity
-
getBedSpawnLocation
@Nullable public @Nullable org.bukkit.Location getBedSpawnLocation()- Specified by:
getBedSpawnLocationin interfaceorg.bukkit.OfflinePlayer- Specified by:
getBedSpawnLocationin interfaceorg.bukkit.entity.Player
-
getLastLogin
public long getLastLogin()- Specified by:
getLastLoginin interfaceorg.bukkit.OfflinePlayer
-
getLastSeen
public long getLastSeen()- Specified by:
getLastSeenin interfaceorg.bukkit.OfflinePlayer
-
setBedSpawnLocation
public void setBedSpawnLocation(@Nullable @Nullable org.bukkit.Location loc) - Specified by:
setBedSpawnLocationin interfaceorg.bukkit.entity.Player
-
setBedSpawnLocation
public void setBedSpawnLocation(@Nullable @Nullable org.bukkit.Location loc, boolean force) - Specified by:
setBedSpawnLocationin interfaceorg.bukkit.entity.Player
-
getAllowFlight
public boolean getAllowFlight()- Specified by:
getAllowFlightin interfaceorg.bukkit.entity.Player
-
setAllowFlight
public void setAllowFlight(boolean flight) - Specified by:
setAllowFlightin interfaceorg.bukkit.entity.Player
-
hidePlayer
Deprecated.- Specified by:
hidePlayerin interfaceorg.bukkit.entity.Player
-
hidePlayer
public void hidePlayer(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull org.bukkit.entity.Player player) - Specified by:
hidePlayerin interfaceorg.bukkit.entity.Player
-
showPlayer
Deprecated.- Specified by:
showPlayerin interfaceorg.bukkit.entity.Player
-
showPlayer
public void showPlayer(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull org.bukkit.entity.Player player) - Specified by:
showPlayerin interfaceorg.bukkit.entity.Player
-
canSee
public boolean canSee(@NotNull @NotNull org.bukkit.entity.Player player) - Specified by:
canSeein interfaceorg.bukkit.entity.Player
-
hideEntity
@Experimental public void hideEntity(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull org.bukkit.entity.Entity entity) - Specified by:
hideEntityin interfaceorg.bukkit.entity.Player
-
showEntity
@Experimental public void showEntity(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull org.bukkit.entity.Entity entity) - Specified by:
showEntityin interfaceorg.bukkit.entity.Player
-
canSee
public boolean canSee(@NotNull @NotNull org.bukkit.entity.Entity entity) - Specified by:
canSeein interfaceorg.bukkit.entity.Player
-
isFlying
public boolean isFlying()- Specified by:
isFlyingin interfaceorg.bukkit.entity.Player
-
setFlying
public void setFlying(boolean value) - Specified by:
setFlyingin interfaceorg.bukkit.entity.Player
-
simulateToggleFlight
@NotNull public @NotNull org.bukkit.event.player.PlayerToggleFlightEvent simulateToggleFlight(boolean fly) -
getFlySpeed
public float getFlySpeed()- Specified by:
getFlySpeedin interfaceorg.bukkit.entity.Player
-
setFlySpeed
public void setFlySpeed(float value) - Specified by:
setFlySpeedin interfaceorg.bukkit.entity.Player
-
getWalkSpeed
public float getWalkSpeed()- Specified by:
getWalkSpeedin interfaceorg.bukkit.entity.Player
-
setWalkSpeed
public void setWalkSpeed(float value) - Specified by:
setWalkSpeedin interfaceorg.bukkit.entity.Player
-
setTexturePack
Deprecated.- Specified by:
setTexturePackin interfaceorg.bukkit.entity.Player
-
setResourcePack
Deprecated.- Specified by:
setResourcePackin interfaceorg.bukkit.entity.Player
-
setResourcePack
- Specified by:
setResourcePackin interfaceorg.bukkit.entity.Player
-
setResourcePack
@Deprecated public void setResourcePack(@NotNull @NotNull String url, @Nullable @org.jetbrains.annotations.Nullable byte[] hash, @Nullable @Nullable String prompt) Deprecated.- Specified by:
setResourcePackin interfaceorg.bukkit.entity.Player
-
setResourcePack
- Specified by:
setResourcePackin interfaceorg.bukkit.entity.Player
-
setResourcePack
@Deprecated public void setResourcePack(@NotNull @NotNull String url, @Nullable @org.jetbrains.annotations.Nullable byte[] hash, @Nullable @Nullable String prompt, boolean force) Deprecated.- Specified by:
setResourcePackin interfaceorg.bukkit.entity.Player
-
setResourcePack
public void setResourcePack(@NotNull @NotNull String url, byte @Nullable [] hash, @Nullable @Nullable net.kyori.adventure.text.Component prompt, boolean force) - Specified by:
setResourcePackin interfaceorg.bukkit.entity.Player
-
getScoreboard
@NotNull public @NotNull org.bukkit.scoreboard.Scoreboard getScoreboard()- Specified by:
getScoreboardin interfaceorg.bukkit.entity.Player
-
setScoreboard
public void setScoreboard(@NotNull @NotNull org.bukkit.scoreboard.Scoreboard scoreboard) - Specified by:
setScoreboardin interfaceorg.bukkit.entity.Player
-
getWorldBorder
@Nullable public @Nullable org.bukkit.WorldBorder getWorldBorder()- Specified by:
getWorldBorderin interfaceorg.bukkit.entity.Player
-
setWorldBorder
public void setWorldBorder(@Nullable @Nullable org.bukkit.WorldBorder border) - Specified by:
setWorldBorderin interfaceorg.bukkit.entity.Player
-
setHealth
public void setHealth(double health) - Specified by:
setHealthin interfaceorg.bukkit.entity.Damageable- Overrides:
setHealthin classLivingEntityMock
-
isHealthScaled
public boolean isHealthScaled()- Specified by:
isHealthScaledin interfaceorg.bukkit.entity.Player
-
setHealthScaled
public void setHealthScaled(boolean scale) - Specified by:
setHealthScaledin interfaceorg.bukkit.entity.Player
-
getHealthScale
public double getHealthScale()- Specified by:
getHealthScalein interfaceorg.bukkit.entity.Player
-
setHealthScale
public void setHealthScale(double scale) - Specified by:
setHealthScalein interfaceorg.bukkit.entity.Player
-
sendHealthUpdate
public void sendHealthUpdate(double health, int foodLevel, float saturationLevel) - Specified by:
sendHealthUpdatein interfaceorg.bukkit.entity.Player
-
sendHealthUpdate
public void sendHealthUpdate()- Specified by:
sendHealthUpdatein interfaceorg.bukkit.entity.Player
-
getSpectatorTarget
public org.bukkit.entity.Entity getSpectatorTarget()- Specified by:
getSpectatorTargetin interfaceorg.bukkit.entity.Player
-
setSpectatorTarget
public void setSpectatorTarget(org.bukkit.entity.Entity entity) - Specified by:
setSpectatorTargetin interfaceorg.bukkit.entity.Player
-
sendTitle
Deprecated.- Specified by:
sendTitlein interfaceorg.bukkit.entity.Player
-
sendTitle
Deprecated.- Specified by:
sendTitlein interfaceorg.bukkit.entity.Player
-
nextTitle
-
nextSubTitle
-
resetTitle
public void resetTitle()- Specified by:
resetTitlein interfacenet.kyori.adventure.audience.Audience- Specified by:
resetTitlein interfaceorg.bukkit.entity.Player
-
spawnParticle
public void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @NotNull @NotNull org.bukkit.Location location, int count) - Specified by:
spawnParticlein interfaceorg.bukkit.entity.Player
-
spawnParticle
public void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, double x, double y, double z, int count) - Specified by:
spawnParticlein interfaceorg.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:
spawnParticlein interfaceorg.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:
spawnParticlein interfaceorg.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:
spawnParticlein interfaceorg.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:
spawnParticlein interfaceorg.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:
spawnParticlein interfaceorg.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:
spawnParticlein interfaceorg.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:
spawnParticlein interfaceorg.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:
spawnParticlein interfaceorg.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:
spawnParticlein interfaceorg.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:
spawnParticlein interfaceorg.bukkit.entity.Player
-
getAdvancementProgress
@NotNull public @NotNull org.bukkit.advancement.AdvancementProgress getAdvancementProgress(@NotNull @NotNull org.bukkit.advancement.Advancement advancement) - Specified by:
getAdvancementProgressin interfaceorg.bukkit.entity.Player
-
getLocale
- Specified by:
getLocalein interfaceorg.bukkit.entity.Player
-
getAffectsSpawning
public boolean getAffectsSpawning()- Specified by:
getAffectsSpawningin interfaceorg.bukkit.entity.Player
-
setAffectsSpawning
public void setAffectsSpawning(boolean affects) - Specified by:
setAffectsSpawningin interfaceorg.bukkit.entity.Player
-
getViewDistance
public int getViewDistance()- Specified by:
getViewDistancein interfaceorg.bukkit.entity.Player
-
setViewDistance
public void setViewDistance(int viewDistance) - Specified by:
setViewDistancein interfaceorg.bukkit.entity.Player
-
getSimulationDistance
public int getSimulationDistance()- Specified by:
getSimulationDistancein interfaceorg.bukkit.entity.Player
-
setSimulationDistance
public void setSimulationDistance(int simulationDistance) - Specified by:
setSimulationDistancein interfaceorg.bukkit.entity.Player
-
getNoTickViewDistance
Deprecated.- Specified by:
getNoTickViewDistancein interfaceorg.bukkit.entity.Player
-
setNoTickViewDistance
Deprecated.- Specified by:
setNoTickViewDistancein interfaceorg.bukkit.entity.Player
-
getSendViewDistance
public int getSendViewDistance()- Specified by:
getSendViewDistancein interfaceorg.bukkit.entity.Player
-
setSendViewDistance
public void setSendViewDistance(int viewDistance) - Specified by:
setSendViewDistancein interfaceorg.bukkit.entity.Player
-
isSwimming
public boolean isSwimming()- Specified by:
isSwimmingin interfaceorg.bukkit.entity.LivingEntity- Overrides:
isSwimmingin classLivingEntityMock
-
setSwimming
public void setSwimming(boolean swimming) - Specified by:
setSwimmingin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setSwimmingin classLivingEntityMock
-
isRiptiding
public boolean isRiptiding()- Specified by:
isRiptidingin interfaceorg.bukkit.entity.LivingEntity- Overrides:
isRiptidingin classLivingEntityMock
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistentin interfaceorg.bukkit.entity.Entity- Overrides:
isPersistentin classEntityMock
-
setPersistent
public void setPersistent(boolean persistent) - Specified by:
setPersistentin interfaceorg.bukkit.entity.Entity- Overrides:
setPersistentin classEntityMock
-
getPlayerListHeader
- Specified by:
getPlayerListHeaderin interfaceorg.bukkit.entity.Player
-
setPlayerListHeader
- Specified by:
setPlayerListHeaderin interfaceorg.bukkit.entity.Player
-
updateCommands
public void updateCommands()- Specified by:
updateCommandsin interfaceorg.bukkit.entity.Player
-
discoverRecipe
public boolean discoverRecipe(@NotNull @NotNull org.bukkit.NamespacedKey recipe) - Specified by:
discoverRecipein interfaceorg.bukkit.entity.HumanEntity
-
discoverRecipes
- Specified by:
discoverRecipesin interfaceorg.bukkit.entity.HumanEntity
-
undiscoverRecipe
public boolean undiscoverRecipe(@NotNull @NotNull org.bukkit.NamespacedKey recipe) - Specified by:
undiscoverRecipein interfaceorg.bukkit.entity.HumanEntity
-
undiscoverRecipes
- Specified by:
undiscoverRecipesin interfaceorg.bukkit.entity.HumanEntity
-
getTargetBlockExact
public org.bukkit.block.Block getTargetBlockExact(int maxDistance) - Specified by:
getTargetBlockExactin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getTargetBlockExactin classLivingEntityMock
-
getTargetBlockExact
public org.bukkit.block.Block getTargetBlockExact(int maxDistance, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) - Specified by:
getTargetBlockExactin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getTargetBlockExactin classLivingEntityMock
-
rayTraceBlocks
public org.bukkit.util.RayTraceResult rayTraceBlocks(double maxDistance) - Specified by:
rayTraceBlocksin interfaceorg.bukkit.entity.LivingEntity- Overrides:
rayTraceBlocksin classLivingEntityMock
-
rayTraceBlocks
public org.bukkit.util.RayTraceResult rayTraceBlocks(double maxDistance, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) - Specified by:
rayTraceBlocksin interfaceorg.bukkit.entity.LivingEntity- Overrides:
rayTraceBlocksin classLivingEntityMock
-
getBeeStingerCooldown
public int getBeeStingerCooldown()- Specified by:
getBeeStingerCooldownin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getBeeStingerCooldownin classLivingEntityMock
-
setBeeStingerCooldown
public void setBeeStingerCooldown(int ticks) - Specified by:
setBeeStingerCooldownin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setBeeStingerCooldownin classLivingEntityMock
-
getBeeStingersInBody
public int getBeeStingersInBody()- Specified by:
getBeeStingersInBodyin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getBeeStingersInBodyin classLivingEntityMock
-
setBeeStingersInBody
public void setBeeStingersInBody(int count) - Specified by:
setBeeStingersInBodyin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setBeeStingersInBodyin classLivingEntityMock
-
getBoundingBox
@NotNull public @NotNull org.bukkit.util.BoundingBox getBoundingBox()- Specified by:
getBoundingBoxin interfaceorg.bukkit.entity.Entity- Overrides:
getBoundingBoxin classEntityMock
-
getFacing
@NotNull public @NotNull org.bukkit.block.BlockFace getFacing()- Specified by:
getFacingin interfaceorg.bukkit.entity.Entity- Overrides:
getFacingin classEntityMock
-
getClientViewDistance
public int getClientViewDistance()- Specified by:
getClientViewDistancein interfaceorg.bukkit.entity.Player
-
locale
- Specified by:
localein interfaceorg.bukkit.entity.Player
-
sleep
public boolean sleep(@NotNull @NotNull org.bukkit.Location location, boolean force) - Specified by:
sleepin interfaceorg.bukkit.entity.HumanEntity
-
wakeup
public void wakeup(boolean setSpawnLocation) - Specified by:
wakeupin interfaceorg.bukkit.entity.HumanEntity
-
getBedLocation
@NotNull public @NotNull org.bukkit.Location getBedLocation()- Specified by:
getBedLocationin interfaceorg.bukkit.entity.HumanEntity
-
getPose
@NotNull public @NotNull org.bukkit.entity.Pose getPose()- Specified by:
getPosein interfaceorg.bukkit.entity.Entity- Overrides:
getPosein classEntityMock
-
openBook
public void openBook(@NotNull @NotNull org.bukkit.inventory.ItemStack book) - Specified by:
openBookin interfaceorg.bukkit.entity.Player
-
setResourcePack
- Specified by:
setResourcePackin interfaceorg.bukkit.entity.Player
-
setResourcePack
public void setResourcePack(@NotNull @NotNull String url, @NotNull @NotNull String hash, boolean required) - Specified by:
setResourcePackin interfaceorg.bukkit.entity.Player
-
setResourcePack
public void setResourcePack(@NotNull @NotNull String url, @NotNull @NotNull String hash, boolean required, @Nullable @Nullable net.kyori.adventure.text.Component resourcePackPrompt) - Specified by:
setResourcePackin interfaceorg.bukkit.entity.Player
-
getResourcePackStatus
public @Nullable org.bukkit.event.player.PlayerResourcePackStatusEvent.Status getResourcePackStatus()- Specified by:
getResourcePackStatusin interfaceorg.bukkit.entity.Player
-
getResourcePackHash
Deprecated.- Specified by:
getResourcePackHashin interfaceorg.bukkit.entity.Player
-
hasResourcePack
public boolean hasResourcePack()- Specified by:
hasResourcePackin interfaceorg.bukkit.entity.Player
-
getPlayerProfile
@NotNull public @NotNull com.destroystokyo.paper.profile.PlayerProfile getPlayerProfile()- Specified by:
getPlayerProfilein interfaceorg.bukkit.OfflinePlayer- Specified by:
getPlayerProfilein interfaceorg.bukkit.entity.Player
-
setPlayerProfile
public void setPlayerProfile(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile profile) - Specified by:
setPlayerProfilein interfaceorg.bukkit.entity.Player
-
getCooldownPeriod
public float getCooldownPeriod()- Specified by:
getCooldownPeriodin interfaceorg.bukkit.entity.Player
-
getCooledAttackStrength
public float getCooledAttackStrength(float adjustTicks) - Specified by:
getCooledAttackStrengthin interfaceorg.bukkit.entity.Player
-
resetCooldown
public void resetCooldown()- Specified by:
resetCooldownin interfaceorg.bukkit.entity.Player
-
getClientOption
@NotNull public <T> T getClientOption(@NotNull @NotNull com.destroystokyo.paper.ClientOption<T> option) - Specified by:
getClientOptionin interfaceorg.bukkit.entity.Player
-
boostElytra
@Nullable public @Nullable org.bukkit.entity.Firework boostElytra(@NotNull @NotNull org.bukkit.inventory.ItemStack firework) - Specified by:
boostElytrain interfaceorg.bukkit.entity.Player
-
sendOpLevel
public void sendOpLevel(byte level) - Specified by:
sendOpLevelin interfaceorg.bukkit.entity.Player
-
getClientBrandName
- Specified by:
getClientBrandNamein interfaceorg.bukkit.entity.Player
-
attack
public void attack(@NotNull @NotNull org.bukkit.entity.Entity target) - Specified by:
attackin interfaceorg.bukkit.entity.LivingEntity- Overrides:
attackin classLivingEntityMock
-
swingMainHand
public void swingMainHand()- Specified by:
swingMainHandin interfaceorg.bukkit.entity.LivingEntity- Overrides:
swingMainHandin classLivingEntityMock
-
swingOffHand
public void swingOffHand()- Specified by:
swingOffHandin interfaceorg.bukkit.entity.LivingEntity- Overrides:
swingOffHandin classLivingEntityMock
-
sendExperienceChange
public void sendExperienceChange(float progress) - Specified by:
sendExperienceChangein interfaceorg.bukkit.entity.Player
-
sendExperienceChange
public void sendExperienceChange(float progress, int level) - Specified by:
sendExperienceChangein interfaceorg.bukkit.entity.Player
-
getAttackCooldown
public float getAttackCooldown()- Specified by:
getAttackCooldownin interfaceorg.bukkit.entity.HumanEntity
-
hasDiscoveredRecipe
public boolean hasDiscoveredRecipe(@NotNull @NotNull org.bukkit.NamespacedKey recipe) - Specified by:
hasDiscoveredRecipein interfaceorg.bukkit.entity.HumanEntity
-
getDiscoveredRecipes
- Specified by:
getDiscoveredRecipesin interfaceorg.bukkit.entity.HumanEntity
-
dropItem
public boolean dropItem(boolean dropAll) - Specified by:
dropItemin interfaceorg.bukkit.entity.HumanEntity
-
sendBlockDamage
public void sendBlockDamage(@NotNull @NotNull org.bukkit.Location loc, float progress) - Specified by:
sendBlockDamagein interfaceorg.bukkit.entity.Player
-
sendMultiBlockChange
public void sendMultiBlockChange(@NotNull @NotNull Map<org.bukkit.Location, org.bukkit.block.data.BlockData> blockChanges) - Specified by:
sendMultiBlockChangein interfaceorg.bukkit.entity.Player
-
sendMultiBlockChange
public void sendMultiBlockChange(@NotNull @NotNull Map<org.bukkit.Location, org.bukkit.block.data.BlockData> blockChanges, boolean suppressLightUpdates) - Specified by:
sendMultiBlockChangein interfaceorg.bukkit.entity.Player
-
getSaturatedRegenRate
public int getSaturatedRegenRate()- Specified by:
getSaturatedRegenRatein interfaceorg.bukkit.entity.HumanEntity
-
setSaturatedRegenRate
public void setSaturatedRegenRate(int ticks) - Specified by:
setSaturatedRegenRatein interfaceorg.bukkit.entity.HumanEntity
-
getUnsaturatedRegenRate
public int getUnsaturatedRegenRate()- Specified by:
getUnsaturatedRegenRatein interfaceorg.bukkit.entity.HumanEntity
-
setUnsaturatedRegenRate
public void setUnsaturatedRegenRate(int ticks) - Specified by:
setUnsaturatedRegenRatein interfaceorg.bukkit.entity.HumanEntity
-
getStarvationRate
public int getStarvationRate()- Specified by:
getStarvationRatein interfaceorg.bukkit.entity.HumanEntity
-
setStarvationRate
public void setStarvationRate(int ticks) - Specified by:
setStarvationRatein interfaceorg.bukkit.entity.HumanEntity
-
getPing
public int getPing()- Specified by:
getPingin interfaceorg.bukkit.entity.Player
-
teleport
public boolean teleport(@NotNull @NotNull org.bukkit.Location location, @NotNull org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) - Specified by:
teleportin interfaceorg.bukkit.entity.Entity- Overrides:
teleportin classEntityMock
-
sendEquipmentChange
public void sendEquipmentChange(@NotNull @NotNull org.bukkit.entity.LivingEntity entity, @NotNull @NotNull org.bukkit.inventory.EquipmentSlot slot, @NotNull @NotNull org.bukkit.inventory.ItemStack item) - Specified by:
sendEquipmentChangein interfaceorg.bukkit.entity.Player
-
isInRain
public boolean isInRain()- Specified by:
isInRainin interfaceorg.bukkit.entity.Entity- Overrides:
isInRainin classEntityMock
-
isInBubbleColumn
public boolean isInBubbleColumn()- Specified by:
isInBubbleColumnin interfaceorg.bukkit.entity.Entity- Overrides:
isInBubbleColumnin classEntityMock
-
isInWaterOrRain
public boolean isInWaterOrRain()- Specified by:
isInWaterOrRainin interfaceorg.bukkit.entity.Entity- Overrides:
isInWaterOrRainin classEntityMock
-
isInWaterOrBubbleColumn
public boolean isInWaterOrBubbleColumn()- Specified by:
isInWaterOrBubbleColumnin interfaceorg.bukkit.entity.Entity- Overrides:
isInWaterOrBubbleColumnin classEntityMock
-
isInLava
public boolean isInLava()- Specified by:
isInLavain interfaceorg.bukkit.entity.Entity- Overrides:
isInLavain classEntityMock
-
isTicking
public boolean isTicking()- Specified by:
isTickingin interfaceorg.bukkit.entity.Entity- Overrides:
isTickingin classEntityMock
-
registerAttribute
public void registerAttribute(@NotNull @NotNull org.bukkit.attribute.Attribute attribute) - Specified by:
registerAttributein interfaceorg.bukkit.attribute.Attributable- Overrides:
registerAttributein classLivingEntityMock
-
spigot
public @NotNull org.bukkit.entity.Player.Spigot spigot()- Specified by:
spigotin interfaceorg.bukkit.command.CommandSender- Specified by:
spigotin interfaceorg.bukkit.entity.Entity- Specified by:
spigotin interfaceorg.bukkit.entity.Player- Overrides:
spigotin classEntityMock
-