Package be.seeseemelk.mockbukkit.entity
Class PlayerMock
- All Implemented Interfaces:
MessageTarget,SoundReceiver,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>,Attributable,CommandSender,ConfigurationSerializable,Conversable,AnimalTamer,Damageable,Entity,HumanEntity,LivingEntity,Player,InventoryHolder,Metadatable,Nameable,OfflinePlayer,Permissible,ServerOperator,PersistentDataHolder,PluginMessageRecipient,ProjectileSource
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.SpigotNested classes/interfaces inherited from interface org.bukkit.entity.Player
Player.Spigot -
Field Summary
Fields inherited from class be.seeseemelk.mockbukkit.entity.HumanEntityMock
expLevelFields inherited from class be.seeseemelk.mockbukkit.entity.LivingEntityMock
alive, attributes, health -
Constructor Summary
ConstructorsConstructorDescriptionPlayerMock(@NotNull ServerMock server, @NotNull String name) PlayerMock(@NotNull ServerMock server, @NotNull String name, @NotNull UUID uuid) -
Method Summary
Modifier and TypeMethodDescriptionvoidabandonConversation(@NotNull Conversation conversation) voidabandonConversation(@NotNull Conversation conversation, @NotNull ConversationAbandonedEvent details) voidacceptConversationInput(@NotNull String input) voidaddAdditionalChatCompletions(@NotNull Collection<String> completions) voidaddHeardSound(@NotNull AudioExperience audioExperience) intapplyMending(int amount) voidassertInventoryView(String message, InventoryType type) This method is an assertion for the currently openInventoryViewfor thisPlayer.voidassertInventoryView(String message, InventoryType type, @NotNull Predicate<Inventory> predicate) This method is an assertion for the currently openInventoryViewfor thisPlayer.voidThis method is an assertion for the currently openInventoryViewfor thisPlayer.voidassertInventoryView(InventoryType type, @NotNull Predicate<Inventory> predicate) This method is an assertion for the currently openInventoryViewfor thisPlayer.voidassertItemConsumed(@NotNull ItemStack consumable) Asserts a Player has consumed the given ItemvoidbooleanbeginConversation(@NotNull Conversation conversation) @Nullable FireworkboostElytra(@NotNull ItemStack firework) booleanbreakBlock(@NotNull Block block) booleanbooleanvoidvoiddecrementStatistic(@NotNull Statistic statistic) voiddecrementStatistic(@NotNull Statistic statistic, int amount) voiddecrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType) voiddecrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int amount) voiddecrementStatistic(@NotNull Statistic statistic, @NotNull Material material) voiddecrementStatistic(@NotNull Statistic statistic, @NotNull Material material, int amount) booleanSimulates a disconnection from the server.@NotNull net.kyori.adventure.text.ComponentvoiddisplayName(@Nullable net.kyori.adventure.text.Component displayName) @Nullable InetSocketAddress@NotNull AdvancementProgressgetAdvancementProgress(@NotNull Advancement advancement) booleanboolean@Nullable Locationintint@NotNull BoundingBoxboolean@Nullable String<T> TgetClientOption(@NotNull ClientOption<T> option) int@NotNull LocationfloatfloatgetCooledAttackStrength(float adjustTicks) @NotNull StringDeprecated.@NotNull InventoryfloatgetExp()doubledoublegetEyeHeight(boolean ignorePose) @NotNull BlockFacelongfloat@NotNull GameMode@NotNull EquipmentSlotdouble@NotNull List<AudioExperience>This returns aListof everyAudioExperiencethis receiver has received.floatdoublelonglonglonggetLastTwoTargetBlocks(Set<Material> transparent, int maxDistance) @NotNull EntityintgetLevel()getLineOfSight(Set<Material> transparent, int maxDistance) @NotNull String@NotNull MainHandintintintDeprecated.intgetPing()@NotNull StringDeprecated.@NotNull PlayerProfilelonglong@NotNull PosegetPose()@Nullable GameModeintboolean@Nullable StringDeprecated.@Nullable PlayerResourcePackStatusEvent.Status@NotNull Scoreboard@NotNull StringGets the scoreboard entry for this entity.intintintgetStatistic(@NotNull Statistic statistic) intgetStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType) intgetStatistic(@NotNull Statistic statistic, @NotNull Material material) @Nullable BlockgetTargetBlock(int maxDistance, @NotNull TargetBlockInfo.FluidMode fluidMode) @NotNull BlockgetTargetBlock(Set<Material> transparent, int maxDistance) getTargetBlockExact(int maxDistance) getTargetBlockExact(int maxDistance, @NotNull FluidCollisionMode fluidCollisionMode) @Nullable BlockFacegetTargetBlockFace(int maxDistance, @NotNull TargetBlockInfo.FluidMode fluidMode) @Nullable TargetBlockInfogetTargetBlockInfo(int maxDistance, @NotNull TargetBlockInfo.FluidMode fluidMode) @Nullable EntitygetTargetEntity(int maxDistance, boolean ignoreBlocks) @Nullable TargetEntityInfogetTargetEntityInfo(int maxDistance, boolean ignoreBlocks) int@NotNull EntityTypegetType()int@Nullable InetSocketAddressfloat@Nullable WorldBordervoidgiveExp(int amount) voidgiveExp(int amount, boolean applyMending) voidgiveExpLevels(int amount) booleanhasAI()booleanhasLineOfSight(@NotNull Entity other) booleanhasLineOfSight(@NotNull Location location) booleanbooleanvoidhideEntity(@NotNull Plugin plugin, @NotNull Entity entity) voidhidePlayer(@NotNull Player player) Deprecated.voidhidePlayer(@NotNull Plugin plugin, @NotNull Player player) voidDeprecated.voidincrementStatistic(@NotNull Statistic statistic) voidincrementStatistic(@NotNull Statistic statistic, int amount) voidincrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType) voidincrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int amount) voidincrementStatistic(@NotNull Statistic statistic, @NotNull Material material) voidincrementStatistic(@NotNull Statistic statistic, @NotNull Material material, int amount) booleanbooleanisBanned()booleanbooleanbooleanisFlying()booleanbooleanbooleanisInLava()booleanisInRain()booleanbooleanbooleanbooleanbooleanisOnline()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidkick()voidkick(@Nullable net.kyori.adventure.text.Component message) voidkick(@Nullable net.kyori.adventure.text.Component message, @NotNull PlayerKickEvent.Cause cause) voidkickPlayer(String message) Deprecated.voidloadData()@NotNull Localelocale()voidlookAt(double x, double y, double z, @NotNull LookAnchor playerAnchor) voidlookAt(@NotNull Entity entity, @NotNull LookAnchor playerAnchor, @NotNull LookAnchor entityAnchor) @Nullable String@Nullable StringvoidbooleanperformCommand(@NotNull String command) voidplayEffect(@NotNull Location loc, @NotNull Effect effect, int data) Deprecated.<T> voidplayEffect(@NotNull Location loc, @NotNull 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) voidDeprecated.voidplayNote(@NotNull Location loc, @NotNull Instrument instrument, @NotNull Note note) voidplayPickupItemAnimation(@NotNull Item item, int quantity) voidvoidplaySound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) voidvoidplaySound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch) voidvoidplaySound(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) rayTraceBlocks(double maxDistance) rayTraceBlocks(double maxDistance, @NotNull FluidCollisionMode fluidCollisionMode) booleanSimulates a connection to the server.voidregisterAttribute(@NotNull Attribute attribute) voidremoveAdditionalChatCompletions(@NotNull Collection<String> completions) voidvoidvoidvoidvoidrespawn()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 Location loc, @NotNull BlockData block) voidsendBlockChange(@NotNull Location loc, @NotNull Material material, byte data) Deprecated.voidsendBlockDamage(@NotNull Location loc, float progress) voidsendEquipmentChange(@NotNull LivingEntity entity, @NotNull EquipmentSlot slot, @NotNull ItemStack item) voidsendExperienceChange(float progress) voidsendExperienceChange(float progress, int level) voidvoidsendHealthUpdate(double health, int foodLevel, float saturationLevel) voidvoidsendMultiBlockChange(@NotNull Map<Location, BlockData> blockChanges) voidsendMultiBlockChange(@NotNull Map<Location, BlockData> blockChanges, boolean suppressLightUpdates) voidsendOpLevel(byte level) voidsendPluginMessage(@NotNull Plugin source, @NotNull String channel, byte[] message) voidsendRawMessage(@Nullable String message) voidsendRawMessage(@Nullable UUID sender, @NotNull String message) voidsendSignChange(@NotNull Location loc, @Nullable String @Nullable [] lines, @NotNull DyeColor dyeColor, boolean hasGlowingText) voidsendSignChange(@NotNull Location loc, @Nullable List<net.kyori.adventure.text.Component> lines, @NotNull DyeColor dyeColor, boolean hasGlowingText) voidsendSignChange(@NotNull Location loc, String[] lines) Deprecated.voidsendSignChange(@NotNull Location loc, String[] lines, @NotNull DyeColor dyeColor) voidDeprecated.voidDeprecated.voidDeprecated.voidsetAddress(@Nullable InetSocketAddress address) Sets theInetSocketAddressreturned bygetAddress().voidsetAffectsSpawning(boolean affects) voidsetAI(boolean ai) voidsetAllowFlight(boolean flight) voidsetBedSpawnLocation(@Nullable Location loc) voidsetBedSpawnLocation(@Nullable Location loc, boolean force) voidsetBeeStingerCooldown(int ticks) voidsetBeeStingersInBody(int count) voidsetCanPickupItems(boolean pickup) voidsetCollidable(boolean collidable) voidsetCompassTarget(@NotNull Location loc) voidsetDisplayName(@NotNull String name) Deprecated.voidsetExp(float exp) voidsetFlying(boolean value) voidsetFlySpeed(float value) voidsetGameMode(@NotNull GameMode mode) voidsetHealth(double health) voidsetHealthScale(double scale) voidsetHealthScaled(boolean scale) voidsetHurtDirection(float hurtDirection) voidsetJumping(boolean jumping) voidvoidsetLastDamage(double damage) voidsetLastPlayed(long time) booleansetLeashHolder(@Nullable Entity holder) voidsetLevel(int level) voidsetMaximumNoDamageTicks(int ticks) voidsetNoDamageTicks(int ticks) voidsetNoTickViewDistance(int viewDistance) Deprecated.voidsetPersistent(boolean persistent) voidsetPlayerListFooter(@Nullable String footer) voidsetPlayerListHeader(@Nullable String header) voidsetPlayerListHeaderFooter(@Nullable String header, @Nullable String footer) voidsetPlayerListHeaderFooter(@Nullable net.md_5.bungee.api.chat.BaseComponent header, @Nullable net.md_5.bungee.api.chat.BaseComponent footer) Deprecated.voidsetPlayerListHeaderFooter(net.md_5.bungee.api.chat.BaseComponent @NotNull [] header, net.md_5.bungee.api.chat.BaseComponent @NotNull [] footer) Deprecated.voidsetPlayerListName(@Nullable String name) Deprecated.voidsetPlayerProfile(@NotNull PlayerProfile profile) voidsetPlayerTime(long time, boolean relative) voidsetPlayerWeather(@NotNull 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) voidsetScoreboard(@NotNull Scoreboard scoreboard) voidsetSendViewDistance(int viewDistance) voidsetSimulationDistance(int simulationDistance) voidsetSleepingIgnored(boolean isSleeping) voidsetSneaking(boolean sneaking) voidsetSpectatorTarget(Entity entity) voidsetSprinting(boolean sprinting) voidsetStatistic(@NotNull Statistic statistic, int newValue) voidsetStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int newValue) voidsetStatistic(@NotNull Statistic statistic, @NotNull 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) voidsetViewDistance(int viewDistance) voidsetWalkSpeed(float value) voidsetWhitelisted(boolean value) voidsetWorldBorder(@Nullable WorldBorder border) voidvoidshowEntity(@NotNull Plugin plugin, @NotNull Entity entity) voidshowPlayer(@NotNull Player player) Deprecated.voidshowPlayer(@NotNull Plugin plugin, @NotNull 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 BlockBreakEventsimulateBlockBreak(@NotNull Block block) Simulates the player breaking a block.@Nullable BlockDamageEventsimulateBlockDamage(@NotNull Block block) Simulates the player damaging a block.protected @NotNull BlockDamageEventsimulateBlockDamagePure(@NotNull Block block) Simulates the player damaging a block just likesimulateBlockDamage(Block).@Nullable BlockPlaceEventsimulateBlockPlace(@NotNull Material material, @NotNull Location location) Simulates the player placing a block.voidsimulateConsumeItem(@NotNull ItemStack consumable) Simulates a Player consuming an Edible Item@NotNull InventoryClickEventsimulateInventoryClick(int slot) Simulates the player clicking an Inventory.@NotNull InventoryClickEventsimulateInventoryClick(@NotNull InventoryView inventoryView, int slot) Simulates the player clicking an Inventory.@NotNull InventoryClickEventsimulateInventoryClick(@NotNull InventoryView inventoryView, @NotNull ClickType clickType, int slot) Simulates the player clicking an Inventory.@NotNull PlayerMoveEventsimulatePlayerMove(@NotNull Location moveLocation) This method moves player instantly with respect to PlayerMoveEvent@NotNull PlayerToggleSneakEventsimulateSneak(boolean sneak) @NotNull PlayerToggleSprintEventsimulateSprint(boolean sprint) @NotNull PlayerToggleFlightEventsimulateToggleFlight(boolean fly) voidspawnParticle(@NotNull Particle particle, double x, double y, double z, int count) voidspawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ) voidspawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra) <T> voidspawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) <T> voidspawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, T data) <T> voidspawnParticle(@NotNull Particle particle, double x, double y, double z, int count, T data) voidspawnParticle(@NotNull Particle particle, @NotNull Location location, int count) voidspawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ) voidspawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, double extra) <T> voidspawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) <T> voidspawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, T data) <T> voidspawnParticle(@NotNull Particle particle, @NotNull Location location, int count, T data) @NotNull Player.Spigotspigot()voidvoidvoidstopSound(@NotNull String sound, @Nullable SoundCategory category) voidvoidstopSound(@NotNull SoundCategory category) voidstopSound(@NotNull Sound sound, @Nullable SoundCategory category) voidvoidbooleanteleport(@NotNull Location location, @NotNull PlayerTeleportEvent.TeleportCause cause, boolean ignorePassengers, boolean dismount, @NotNull RelativeTeleportFlag @NotNull ... teleportFlags) booleanteleport(@NotNull Location location, PlayerTeleportEvent.TeleportCause cause, boolean ignorePassengers, boolean dismount) voidvoidvoidupdateTitle(@NotNull Title title) Deprecated.Methods inherited from class be.seeseemelk.mockbukkit.entity.HumanEntityMock
assertGameMode, closeInventory, closeInventory, discoverRecipe, discoverRecipes, dropItem, getAttackCooldown, getBedLocation, getCooldown, getDiscoveredRecipes, getExhaustion, getExpToLevel, getFishHook, getFoodLevel, getInventory, getItemInHand, getItemInUse, getItemOnCursor, getLastDeathLocation, getOpenInventory, getPotentialBedLocation, getSaturatedRegenRate, getSaturation, getShoulderEntityLeft, getShoulderEntityRight, getSleepTicks, getStarvationRate, getUnsaturatedRegenRate, hasCooldown, hasDiscoveredRecipe, isBlocking, isDeeplySleeping, isHandRaised, isSleeping, openAnvil, openCartographyTable, openEnchanting, openGrindstone, openInventory, openInventory, openLoom, openMerchant, openMerchant, openSign, openSmithingTable, openStonecutter, openWorkbench, releaseLeftShoulderEntity, releaseRightShoulderEntity, setCooldown, setExhaustion, setFoodLevel, setItemInHand, setItemOnCursor, setLastDeathLocation, setSaturatedRegenRate, setSaturation, setShoulderEntityLeft, setShoulderEntityRight, setStarvationRate, setUnsaturatedRegenRate, setWindowProperty, sleep, undiscoverRecipe, undiscoverRecipes, wakeupMethods 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, setShieldBlockingDelay, teleportMethods inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, asHoverEvent, assertLocation, assertNotTeleported, assertTeleported, clearTeleported, collidesAt, 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, hasPassengers, hasPermission, hasPermission, hasTeleported, isCustomNameVisible, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInPowderedSnow, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrRainOrBubbleColumn, isOnGround, isOp, isPermissionSet, isPermissionSet, isSilent, isVisualFire, leaveVehicle, lockFreezeTicks, name, nextComponentMessage, 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, teleport, teleportWithoutEvent, wouldCollideUsingMethods 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, collidesAt, 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, setSilent, setTicksLived, setVelocity, setVisualFire, spawnAt, spawnAt, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync, wouldCollideUsingMethods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEventMethods inherited from interface org.bukkit.entity.HumanEntity
closeInventory, closeInventory, discoverRecipe, discoverRecipes, dropItem, getAttackCooldown, getBedLocation, getCooldown, getDiscoveredRecipes, getExhaustion, getExpToLevel, getFishHook, getFoodLevel, getInventory, getItemInHand, getItemInUse, getItemOnCursor, getLastDeathLocation, getOpenInventory, getPotentialBedLocation, getSaturatedRegenRate, getSaturation, getShoulderEntityLeft, getShoulderEntityRight, getSleepTicks, getStarvationRate, getUnsaturatedRegenRate, hasCooldown, hasDiscoveredRecipe, isBlocking, isDeeplySleeping, isHandRaised, openAnvil, openCartographyTable, openEnchanting, openGrindstone, openInventory, openInventory, openLoom, openMerchant, openMerchant, openSmithingTable, openStonecutter, openWorkbench, releaseLeftShoulderEntity, releaseRightShoulderEntity, setCooldown, setExhaustion, setFoodLevel, setItemInHand, setItemOnCursor, setLastDeathLocation, setSaturatedRegenRate, setSaturation, setShoulderEntityLeft, setShoulderEntityRight, setStarvationRate, setUnsaturatedRegenRate, setWindowProperty, sleep, undiscoverRecipe, undiscoverRecipes, wakeupMethods 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, isSleeping, playPickupItemAnimation, removePotionEffect, setArrowCooldown, setArrowsInBody, setArrowsStuck, setGliding, setInvisible, setMaximumAir, setMemory, setRemainingAir, setShieldBlockingDelayMethods inherited from interface be.seeseemelk.mockbukkit.command.MessageTarget
assertNoMoreSaid, assertSaid, assertSaid, nextMessageMethods 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, 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, getName, identity, isOnGround, lookAt, openSign, sendMessage, sendMessage, sendMessage, sendSignChange, sendSignChange, sendSignChange, setResourcePack, setRotationMethods 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
public PlayerMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull String name, @NotNull @NotNull UUID uuid)
-
-
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.
-
simulateConsumeItem
Simulates a Player consuming an Edible Item- Parameters:
consumable- The Item to consume
-
assertItemConsumed
Asserts a Player has consumed the given Item- Parameters:
consumable- The Item to asserts has been consumed
-
getType
- Specified by:
getTypein interfaceEntity- Overrides:
getTypein classEntityMock
-
simulateBlockDamagePure
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
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
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 BlockPlaceEvent simulateBlockPlace(@NotNull @NotNull Material material, @NotNull @NotNull 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
Simulates the player clicking an Inventory.- Parameters:
slot- The slot in the player's open inventory- Returns:
- The event that was fired.
-
simulateInventoryClick
@NotNull public @NotNull InventoryClickEvent simulateInventoryClick(@NotNull @NotNull 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
@NotNull public @NotNull InventoryClickEvent simulateInventoryClick(@NotNull @NotNull InventoryView inventoryView, @NotNull @NotNull 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 PlayerMoveEvent simulatePlayerMove(@NotNull @NotNull Location moveLocation) This method moves player instantly with respect to PlayerMoveEvent- Parameters:
moveLocation- Location to move player to- Returns:
- The event that is fired
-
getGameMode
- Specified by:
getGameModein interfaceHumanEntity- Overrides:
getGameModein classHumanEntityMock
-
setGameMode
- Specified by:
setGameModein interfaceHumanEntity- Overrides:
setGameModein classHumanEntityMock
-
isWhitelisted
public boolean isWhitelisted()- Specified by:
isWhitelistedin interfaceOfflinePlayer
-
setWhitelisted
public void setWhitelisted(boolean value) - Specified by:
setWhitelistedin interfaceOfflinePlayer
-
getPlayer
- Specified by:
getPlayerin interfaceOfflinePlayer
-
isOnline
public boolean isOnline()- Specified by:
isOnlinein interfaceOfflinePlayer
-
isBanned
public boolean isBanned()- Specified by:
isBannedin interfaceOfflinePlayer
-
assertInventoryView
public void assertInventoryView(String message, InventoryType type, @NotNull @NotNull Predicate<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(InventoryType type, @NotNull @NotNull Predicate<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
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 interfacePlayer
-
performCommand
- Specified by:
performCommandin interfacePlayer
-
getEnderChest
- Specified by:
getEnderChestin interfaceHumanEntity
-
getMainHand
- Specified by:
getMainHandin interfaceHumanEntity
-
getHandRaised
- Specified by:
getHandRaisedin interfaceLivingEntity- Overrides:
getHandRaisedin classLivingEntityMock
-
isJumping
public boolean isJumping()- Specified by:
isJumpingin interfaceLivingEntity- Overrides:
isJumpingin classLivingEntityMock
-
setJumping
public void setJumping(boolean jumping) - Specified by:
setJumpingin interfaceLivingEntity- Overrides:
setJumpingin classLivingEntityMock
-
playPickupItemAnimation
- Specified by:
playPickupItemAnimationin interfaceLivingEntity- Overrides:
playPickupItemAnimationin classLivingEntityMock
-
getHurtDirection
public float getHurtDirection()- Specified by:
getHurtDirectionin interfaceLivingEntity- Overrides:
getHurtDirectionin classLivingEntityMock
-
setHurtDirection
public void setHurtDirection(float hurtDirection) - Specified by:
setHurtDirectionin interfaceLivingEntity- Overrides:
setHurtDirectionin classLivingEntityMock
-
showDemoScreen
public void showDemoScreen()- Specified by:
showDemoScreenin interfacePlayer
-
isAllowingServerListings
public boolean isAllowingServerListings()- Specified by:
isAllowingServerListingsin interfacePlayer
-
getEyeHeight
public double getEyeHeight()- Specified by:
getEyeHeightin interfaceLivingEntity- Overrides:
getEyeHeightin classLivingEntityMock
-
getEyeHeight
public double getEyeHeight(boolean ignorePose) - Specified by:
getEyeHeightin interfaceLivingEntity- Overrides:
getEyeHeightin classLivingEntityMock
-
getLineOfSight
- Specified by:
getLineOfSightin interfaceLivingEntity- Overrides:
getLineOfSightin classLivingEntityMock
-
getTargetBlock
- Specified by:
getTargetBlockin interfaceLivingEntity- Overrides:
getTargetBlockin classLivingEntityMock
-
getTargetBlock
@Nullable public @Nullable Block getTargetBlock(int maxDistance, @NotNull TargetBlockInfo.FluidMode fluidMode) - Specified by:
getTargetBlockin interfaceLivingEntity- Overrides:
getTargetBlockin classLivingEntityMock
-
getTargetBlockFace
@Nullable public @Nullable BlockFace getTargetBlockFace(int maxDistance, @NotNull TargetBlockInfo.FluidMode fluidMode) - Specified by:
getTargetBlockFacein interfaceLivingEntity- Overrides:
getTargetBlockFacein classLivingEntityMock
-
getTargetBlockInfo
@Nullable public @Nullable TargetBlockInfo getTargetBlockInfo(int maxDistance, @NotNull TargetBlockInfo.FluidMode fluidMode) - Specified by:
getTargetBlockInfoin interfaceLivingEntity- Overrides:
getTargetBlockInfoin classLivingEntityMock
-
getTargetEntity
- Specified by:
getTargetEntityin interfaceLivingEntity- Overrides:
getTargetEntityin classLivingEntityMock
-
getTargetEntityInfo
@Nullable public @Nullable TargetEntityInfo getTargetEntityInfo(int maxDistance, boolean ignoreBlocks) - Specified by:
getTargetEntityInfoin interfaceLivingEntity- Overrides:
getTargetEntityInfoin classLivingEntityMock
-
getLastTwoTargetBlocks
@NotNull public @NotNull List<Block> getLastTwoTargetBlocks(Set<Material> transparent, int maxDistance) - Specified by:
getLastTwoTargetBlocksin interfaceLivingEntity- Overrides:
getLastTwoTargetBlocksin classLivingEntityMock
-
getMaximumNoDamageTicks
public int getMaximumNoDamageTicks()- Specified by:
getMaximumNoDamageTicksin interfaceLivingEntity- Overrides:
getMaximumNoDamageTicksin classLivingEntityMock
-
setMaximumNoDamageTicks
public void setMaximumNoDamageTicks(int ticks) - Specified by:
setMaximumNoDamageTicksin interfaceLivingEntity- Overrides:
setMaximumNoDamageTicksin classLivingEntityMock
-
getLastDamage
public double getLastDamage()- Specified by:
getLastDamagein interfaceLivingEntity- Overrides:
getLastDamagein classLivingEntityMock
-
setLastDamage
public void setLastDamage(double damage) - Specified by:
setLastDamagein interfaceLivingEntity- Overrides:
setLastDamagein classLivingEntityMock
-
getNoDamageTicks
public int getNoDamageTicks()- Specified by:
getNoDamageTicksin interfaceLivingEntity- Overrides:
getNoDamageTicksin classLivingEntityMock
-
setNoDamageTicks
public void setNoDamageTicks(int ticks) - Specified by:
setNoDamageTicksin interfaceLivingEntity- Overrides:
setNoDamageTicksin classLivingEntityMock
-
getKiller
- Specified by:
getKillerin interfaceLivingEntity- Overrides:
getKillerin classLivingEntityMock
-
setKiller
- Specified by:
setKillerin interfaceLivingEntity- Overrides:
setKillerin classLivingEntityMock
-
hasLineOfSight
- Specified by:
hasLineOfSightin interfaceLivingEntity- Overrides:
hasLineOfSightin classLivingEntityMock
-
hasLineOfSight
- Specified by:
hasLineOfSightin interfaceLivingEntity- Overrides:
hasLineOfSightin classLivingEntityMock
-
getRemoveWhenFarAway
public boolean getRemoveWhenFarAway()- Specified by:
getRemoveWhenFarAwayin interfaceLivingEntity- Overrides:
getRemoveWhenFarAwayin classLivingEntityMock
-
setRemoveWhenFarAway
public void setRemoveWhenFarAway(boolean remove) - Specified by:
setRemoveWhenFarAwayin interfaceLivingEntity- Overrides:
setRemoveWhenFarAwayin classLivingEntityMock
-
getEquipment
- Specified by:
getEquipmentin interfaceHumanEntity- Specified by:
getEquipmentin interfaceLivingEntity- Overrides:
getEquipmentin classLivingEntityMock
-
setCanPickupItems
public void setCanPickupItems(boolean pickup) - Specified by:
setCanPickupItemsin interfaceLivingEntity- Overrides:
setCanPickupItemsin classLivingEntityMock
-
getCanPickupItems
public boolean getCanPickupItems()- Specified by:
getCanPickupItemsin interfaceLivingEntity- Overrides:
getCanPickupItemsin classLivingEntityMock
-
isLeashed
public boolean isLeashed()- Specified by:
isLeashedin interfaceLivingEntity- Overrides:
isLeashedin classLivingEntityMock
-
getLeashHolder
- Specified by:
getLeashHolderin interfaceLivingEntity- Overrides:
getLeashHolderin classLivingEntityMock
-
setLeashHolder
- Specified by:
setLeashHolderin interfaceLivingEntity- Overrides:
setLeashHolderin classLivingEntityMock
-
setAI
public void setAI(boolean ai) - Specified by:
setAIin interfaceLivingEntity- Overrides:
setAIin classLivingEntityMock
-
hasAI
public boolean hasAI()- Specified by:
hasAIin interfaceLivingEntity- Overrides:
hasAIin classLivingEntityMock
-
setCollidable
public void setCollidable(boolean collidable) - Specified by:
setCollidablein interfaceLivingEntity- Overrides:
setCollidablein classLivingEntityMock
-
isCollidable
public boolean isCollidable()- Specified by:
isCollidablein interfaceLivingEntity- Overrides:
isCollidablein classLivingEntityMock
-
isConversing
public boolean isConversing()- Specified by:
isConversingin interfaceConversable
-
acceptConversationInput
- Specified by:
acceptConversationInputin interfaceConversable
-
beginConversation
- Specified by:
beginConversationin interfaceConversable
-
abandonConversation
- Specified by:
abandonConversationin interfaceConversable
-
abandonConversation
public void abandonConversation(@NotNull @NotNull Conversation conversation, @NotNull @NotNull ConversationAbandonedEvent details) - Specified by:
abandonConversationin interfaceConversable
-
getFirstPlayed
public long getFirstPlayed()- Specified by:
getFirstPlayedin interfaceOfflinePlayer
-
getLastPlayed
public long getLastPlayed()- Specified by:
getLastPlayedin interfaceOfflinePlayer
-
hasPlayedBefore
public boolean hasPlayedBefore()- Specified by:
hasPlayedBeforein interfaceOfflinePlayer
-
setLastPlayed
public void setLastPlayed(long time) -
serialize
- Specified by:
serializein interfaceConfigurationSerializable
-
sendPluginMessage
public void sendPluginMessage(@NotNull @NotNull Plugin source, @NotNull @NotNull String channel, byte[] message) - Specified by:
sendPluginMessagein interfacePluginMessageRecipient
-
getListeningPluginChannels
- Specified by:
getListeningPluginChannelsin interfacePluginMessageRecipient
-
displayName
@NotNull public @NotNull net.kyori.adventure.text.Component displayName()- Specified by:
displayNamein interfacePlayer
-
displayName
public void displayName(@Nullable @Nullable net.kyori.adventure.text.Component displayName) - Specified by:
displayNamein interfacePlayer
-
getDisplayName
Deprecated.- Specified by:
getDisplayNamein interfacePlayer
-
setDisplayName
Deprecated.- Specified by:
setDisplayNamein interfacePlayer
-
getScoreboardEntry
Description copied from class:EntityMockGets the scoreboard entry for this entity.- Overrides:
getScoreboardEntryin classEntityMock- Returns:
- The scoreboard entry.
-
playerListName
public void playerListName(@Nullable @Nullable net.kyori.adventure.text.Component name) - Specified by:
playerListNamein interfacePlayer
-
playerListName
@NotNull public @NotNull net.kyori.adventure.text.Component playerListName()- Specified by:
playerListNamein interfacePlayer
-
playerListHeader
@Nullable public @Nullable net.kyori.adventure.text.Component playerListHeader()- Specified by:
playerListHeaderin interfacePlayer
-
getPlayerListName
Deprecated.- Specified by:
getPlayerListNamein interfacePlayer
-
setPlayerListName
Deprecated.- Specified by:
setPlayerListNamein interfacePlayer
-
setCompassTarget
- Specified by:
setCompassTargetin interfacePlayer
-
getCompassTarget
- Specified by:
getCompassTargetin interfacePlayer
-
setAddress
Sets theInetSocketAddressreturned bygetAddress().- Parameters:
address- The address to set.
-
getAddress
- Specified by:
getAddressin interfaceNetworkClient- Specified by:
getAddressin interfacePlayer
-
getProtocolVersion
public int getProtocolVersion()- Specified by:
getProtocolVersionin interfaceNetworkClient
-
getVirtualHost
- Specified by:
getVirtualHostin interfaceNetworkClient
-
sendRawMessage
- Specified by:
sendRawMessagein interfaceConversable- Specified by:
sendRawMessagein interfacePlayer
-
sendRawMessage
- Specified by:
sendRawMessagein interfaceConversable
-
kickPlayer
Deprecated.- Specified by:
kickPlayerin interfacePlayer
-
kick
public void kick() -
kick
public void kick(@Nullable @Nullable net.kyori.adventure.text.Component message) -
kick
public void kick(@Nullable @Nullable net.kyori.adventure.text.Component message, @NotNull PlayerKickEvent.Cause cause) -
chat
-
isSneaking
public boolean isSneaking()- Specified by:
isSneakingin interfacePlayer
-
setSneaking
public void setSneaking(boolean sneaking) - Specified by:
setSneakingin interfacePlayer
-
simulateSneak
-
isSprinting
public boolean isSprinting()- Specified by:
isSprintingin interfacePlayer
-
setSprinting
public void setSprinting(boolean sprinting) - Specified by:
setSprintingin interfacePlayer
-
simulateSprint
-
saveData
public void saveData() -
loadData
public void loadData() -
isSleepingIgnored
public boolean isSleepingIgnored()- Specified by:
isSleepingIgnoredin interfacePlayer
-
setSleepingIgnored
public void setSleepingIgnored(boolean isSleeping) - Specified by:
setSleepingIgnoredin interfacePlayer
-
playNote
Deprecated. -
playNote
public void playNote(@NotNull @NotNull Location loc, @NotNull @NotNull Instrument instrument, @NotNull @NotNull Note note) -
playSound
-
playSound
-
playSound
-
playSound
public void playSound(@NotNull @NotNull Location location, @NotNull @NotNull String sound, @NotNull @NotNull SoundCategory category, float volume, float pitch) -
playSound
public void playSound(@NotNull @NotNull Location location, @NotNull @NotNull Sound sound, @NotNull @NotNull SoundCategory category, float volume, float pitch) -
playSound
public void playSound(@NotNull @NotNull Entity entity, @NotNull @NotNull Sound sound, @NotNull @NotNull SoundCategory category, float volume, float pitch) -
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
-
stopSound
-
stopSound
-
stopSound
-
stopSound
-
stopAllSounds
public void stopAllSounds()- Specified by:
stopAllSoundsin interfacePlayer
-
playEffect
@Deprecated public void playEffect(@NotNull @NotNull Location loc, @NotNull @NotNull Effect effect, int data) Deprecated.- Specified by:
playEffectin interfacePlayer
-
playEffect
public <T> void playEffect(@NotNull @NotNull Location loc, @NotNull @NotNull Effect effect, @Nullable T data) - Specified by:
playEffectin interfacePlayer
-
breakBlock
- Specified by:
breakBlockin interfacePlayer
-
sendBlockChange
@Deprecated public void sendBlockChange(@NotNull @NotNull Location loc, @NotNull @NotNull Material material, byte data) Deprecated.- Specified by:
sendBlockChangein interfacePlayer
-
sendBlockChange
- Specified by:
sendBlockChangein interfacePlayer
-
sendSignChange
public void sendSignChange(@NotNull @NotNull Location loc, @Nullable @Nullable List<net.kyori.adventure.text.Component> lines, @NotNull @NotNull DyeColor dyeColor, boolean hasGlowingText) throws IllegalArgumentException - Specified by:
sendSignChangein interfacePlayer- Throws:
IllegalArgumentException
-
sendSignChange
Deprecated.- Specified by:
sendSignChangein interfacePlayer
-
sendSignChange
public void sendSignChange(@NotNull @NotNull Location loc, String[] lines, @NotNull @NotNull DyeColor dyeColor) throws IllegalArgumentException - Specified by:
sendSignChangein interfacePlayer- Throws:
IllegalArgumentException
-
sendSignChange
public void sendSignChange(@NotNull @NotNull Location loc, @Nullable @Nullable String @Nullable [] lines, @NotNull @NotNull DyeColor dyeColor, boolean hasGlowingText) throws IllegalArgumentException - Specified by:
sendSignChangein interfacePlayer- Throws:
IllegalArgumentException
-
sendMap
-
sendActionBar
Deprecated.- Specified by:
sendActionBarin interfacePlayer
-
sendActionBar
Deprecated.- Specified by:
sendActionBarin interfacePlayer
-
sendActionBar
@Deprecated public void sendActionBar(@NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent... message) Deprecated.- Specified by:
sendActionBarin interfacePlayer
-
setTitleTimes
Deprecated.- Specified by:
setTitleTimesin interfacePlayer
-
setSubtitle
Deprecated.- Specified by:
setSubtitlein interfacePlayer
-
setSubtitle
Deprecated.- Specified by:
setSubtitlein interfacePlayer
-
showTitle
@Deprecated public void showTitle(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent[] title) Deprecated. -
showTitle
Deprecated. -
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. -
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. -
sendTitle
Deprecated. -
updateTitle
Deprecated.- Specified by:
updateTitlein interfacePlayer
-
hideTitle
Deprecated. -
getPreviousGameMode
- Specified by:
getPreviousGameModein interfacePlayer
-
incrementStatistic
- Specified by:
incrementStatisticin interfaceOfflinePlayer
-
decrementStatistic
- Specified by:
decrementStatisticin interfaceOfflinePlayer
-
incrementStatistic
- Specified by:
incrementStatisticin interfaceOfflinePlayer
-
decrementStatistic
- Specified by:
decrementStatisticin interfaceOfflinePlayer
-
setStatistic
- Specified by:
setStatisticin interfaceOfflinePlayer
-
getStatistic
- Specified by:
getStatisticin interfaceOfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material) - Specified by:
incrementStatisticin interfaceOfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material) - Specified by:
decrementStatisticin interfaceOfflinePlayer
-
getStatistic
- Specified by:
getStatisticin interfaceOfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material, int amount) - Specified by:
incrementStatisticin interfaceOfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material, int amount) - Specified by:
decrementStatisticin interfaceOfflinePlayer
-
setStatistic
public void setStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull Material material, int newValue) - Specified by:
setStatisticin interfaceOfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType) - Specified by:
incrementStatisticin interfaceOfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType) - Specified by:
decrementStatisticin interfaceOfflinePlayer
-
getStatistic
public int getStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType) - Specified by:
getStatisticin interfaceOfflinePlayer
-
incrementStatistic
public void incrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType, int amount) - Specified by:
incrementStatisticin interfaceOfflinePlayer
-
decrementStatistic
public void decrementStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType, int amount) - Specified by:
decrementStatisticin interfaceOfflinePlayer
-
setStatistic
public void setStatistic(@NotNull @NotNull Statistic statistic, @NotNull @NotNull EntityType entityType, int newValue) - Specified by:
setStatisticin interfaceOfflinePlayer
-
setPlayerTime
public void setPlayerTime(long time, boolean relative) - Specified by:
setPlayerTimein interfacePlayer
-
getPlayerTime
public long getPlayerTime()- Specified by:
getPlayerTimein interfacePlayer
-
getPlayerTimeOffset
public long getPlayerTimeOffset()- Specified by:
getPlayerTimeOffsetin interfacePlayer
-
isPlayerTimeRelative
public boolean isPlayerTimeRelative()- Specified by:
isPlayerTimeRelativein interfacePlayer
-
resetPlayerTime
public void resetPlayerTime()- Specified by:
resetPlayerTimein interfacePlayer
-
getPlayerWeather
- Specified by:
getPlayerWeatherin interfacePlayer
-
setPlayerWeather
- Specified by:
setPlayerWeatherin interfacePlayer
-
resetPlayerWeather
public void resetPlayerWeather()- Specified by:
resetPlayerWeatherin interfacePlayer
-
giveExp
public void giveExp(int amount) -
giveExp
public void giveExp(int amount, boolean applyMending) -
applyMending
public int applyMending(int amount) - Specified by:
applyMendingin interfacePlayer
-
giveExpLevels
public void giveExpLevels(int amount) - Specified by:
giveExpLevelsin interfacePlayer
-
getExp
public float getExp() -
setExp
public void setExp(float exp) -
getLevel
public int getLevel() -
setLevel
public void setLevel(int level) -
getTotalExperience
public int getTotalExperience()- Specified by:
getTotalExperiencein interfacePlayer
-
setTotalExperience
public void setTotalExperience(int exp) - Specified by:
setTotalExperiencein interfacePlayer
-
getBedSpawnLocation
- Specified by:
getBedSpawnLocationin interfaceOfflinePlayer- Specified by:
getBedSpawnLocationin interfacePlayer
-
getLastLogin
public long getLastLogin()- Specified by:
getLastLoginin interfaceOfflinePlayer
-
getLastSeen
public long getLastSeen()- Specified by:
getLastSeenin interfaceOfflinePlayer
-
setBedSpawnLocation
- Specified by:
setBedSpawnLocationin interfacePlayer
-
setBedSpawnLocation
- Specified by:
setBedSpawnLocationin interfacePlayer
-
getAllowFlight
public boolean getAllowFlight()- Specified by:
getAllowFlightin interfacePlayer
-
setAllowFlight
public void setAllowFlight(boolean flight) - Specified by:
setAllowFlightin interfacePlayer
-
hidePlayer
Deprecated.- Specified by:
hidePlayerin interfacePlayer
-
hidePlayer
- Specified by:
hidePlayerin interfacePlayer
-
showPlayer
Deprecated.- Specified by:
showPlayerin interfacePlayer
-
showPlayer
- Specified by:
showPlayerin interfacePlayer
-
canSee
-
hideEntity
@Experimental public void hideEntity(@NotNull @NotNull Plugin plugin, @NotNull @NotNull Entity entity) - Specified by:
hideEntityin interfacePlayer
-
showEntity
@Experimental public void showEntity(@NotNull @NotNull Plugin plugin, @NotNull @NotNull Entity entity) - Specified by:
showEntityin interfacePlayer
-
canSee
-
isFlying
public boolean isFlying() -
setFlying
public void setFlying(boolean value) -
simulateToggleFlight
-
getFlySpeed
public float getFlySpeed()- Specified by:
getFlySpeedin interfacePlayer
-
setFlySpeed
public void setFlySpeed(float value) - Specified by:
setFlySpeedin interfacePlayer
-
getWalkSpeed
public float getWalkSpeed()- Specified by:
getWalkSpeedin interfacePlayer
-
setWalkSpeed
public void setWalkSpeed(float value) - Specified by:
setWalkSpeedin interfacePlayer
-
setTexturePack
Deprecated.- Specified by:
setTexturePackin interfacePlayer
-
setResourcePack
Deprecated.- Specified by:
setResourcePackin interfacePlayer
-
setResourcePack
- Specified by:
setResourcePackin interfacePlayer
-
setResourcePack
@Deprecated public void setResourcePack(@NotNull @NotNull String url, @Nullable @org.jetbrains.annotations.Nullable byte[] hash, @Nullable @Nullable String prompt) Deprecated.- Specified by:
setResourcePackin interfacePlayer
-
setResourcePack
- Specified by:
setResourcePackin interfacePlayer
-
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 interfacePlayer
-
setResourcePack
public void setResourcePack(@NotNull @NotNull String url, byte @Nullable [] hash, @Nullable @Nullable net.kyori.adventure.text.Component prompt, boolean force) - Specified by:
setResourcePackin interfacePlayer
-
getScoreboard
- Specified by:
getScoreboardin interfacePlayer
-
setScoreboard
- Specified by:
setScoreboardin interfacePlayer
-
getWorldBorder
- Specified by:
getWorldBorderin interfacePlayer
-
setWorldBorder
- Specified by:
setWorldBorderin interfacePlayer
-
setHealth
public void setHealth(double health) - Specified by:
setHealthin interfaceDamageable- Overrides:
setHealthin classLivingEntityMock
-
isHealthScaled
public boolean isHealthScaled()- Specified by:
isHealthScaledin interfacePlayer
-
setHealthScaled
public void setHealthScaled(boolean scale) - Specified by:
setHealthScaledin interfacePlayer
-
getHealthScale
public double getHealthScale()- Specified by:
getHealthScalein interfacePlayer
-
setHealthScale
public void setHealthScale(double scale) - Specified by:
setHealthScalein interfacePlayer
-
sendHealthUpdate
public void sendHealthUpdate(double health, int foodLevel, float saturationLevel) - Specified by:
sendHealthUpdatein interfacePlayer
-
sendHealthUpdate
public void sendHealthUpdate()- Specified by:
sendHealthUpdatein interfacePlayer
-
getSpectatorTarget
- Specified by:
getSpectatorTargetin interfacePlayer
-
setSpectatorTarget
- Specified by:
setSpectatorTargetin interfacePlayer
-
sendTitle
Deprecated. -
sendTitle
Deprecated. -
nextTitle
-
nextSubTitle
-
resetTitle
public void resetTitle()- Specified by:
resetTitlein interfacenet.kyori.adventure.audience.Audience- Specified by:
resetTitlein interfacePlayer
-
spawnParticle
public void spawnParticle(@NotNull @NotNull Particle particle, @NotNull @NotNull Location location, int count) - Specified by:
spawnParticlein interfacePlayer
-
spawnParticle
public void spawnParticle(@NotNull @NotNull Particle particle, double x, double y, double z, int count) - Specified by:
spawnParticlein interfacePlayer
-
spawnParticle
public <T> void spawnParticle(@NotNull @NotNull Particle particle, @NotNull @NotNull Location location, int count, T data) - Specified by:
spawnParticlein interfacePlayer
-
spawnParticle
public <T> void spawnParticle(@NotNull @NotNull Particle particle, double x, double y, double z, int count, T data) - Specified by:
spawnParticlein interfacePlayer
-
spawnParticle
public void spawnParticle(@NotNull @NotNull Particle particle, @NotNull @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ) - Specified by:
spawnParticlein interfacePlayer
-
spawnParticle
public void spawnParticle(@NotNull @NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ) - Specified by:
spawnParticlein interfacePlayer
-
spawnParticle
public <T> void spawnParticle(@NotNull @NotNull Particle particle, @NotNull @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, T data) - Specified by:
spawnParticlein interfacePlayer
-
spawnParticle
public <T> void spawnParticle(@NotNull @NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, T data) - Specified by:
spawnParticlein interfacePlayer
-
spawnParticle
public void spawnParticle(@NotNull @NotNull Particle particle, @NotNull @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, double extra) - Specified by:
spawnParticlein interfacePlayer
-
spawnParticle
public void spawnParticle(@NotNull @NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra) - Specified by:
spawnParticlein interfacePlayer
-
spawnParticle
public <T> void spawnParticle(@NotNull @NotNull Particle particle, @NotNull @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) - Specified by:
spawnParticlein interfacePlayer
-
spawnParticle
public <T> void spawnParticle(@NotNull @NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data) - Specified by:
spawnParticlein interfacePlayer
-
getAdvancementProgress
@NotNull public @NotNull AdvancementProgress getAdvancementProgress(@NotNull @NotNull Advancement advancement) - Specified by:
getAdvancementProgressin interfacePlayer
-
getLocale
-
getAffectsSpawning
public boolean getAffectsSpawning()- Specified by:
getAffectsSpawningin interfacePlayer
-
setAffectsSpawning
public void setAffectsSpawning(boolean affects) - Specified by:
setAffectsSpawningin interfacePlayer
-
getViewDistance
public int getViewDistance()- Specified by:
getViewDistancein interfacePlayer
-
setViewDistance
public void setViewDistance(int viewDistance) - Specified by:
setViewDistancein interfacePlayer
-
getSimulationDistance
public int getSimulationDistance()- Specified by:
getSimulationDistancein interfacePlayer
-
setSimulationDistance
public void setSimulationDistance(int simulationDistance) - Specified by:
setSimulationDistancein interfacePlayer
-
getNoTickViewDistance
Deprecated.- Specified by:
getNoTickViewDistancein interfacePlayer
-
setNoTickViewDistance
Deprecated.- Specified by:
setNoTickViewDistancein interfacePlayer
-
getSendViewDistance
public int getSendViewDistance()- Specified by:
getSendViewDistancein interfacePlayer
-
setSendViewDistance
public void setSendViewDistance(int viewDistance) - Specified by:
setSendViewDistancein interfacePlayer
-
isSwimming
public boolean isSwimming()- Specified by:
isSwimmingin interfaceLivingEntity- Overrides:
isSwimmingin classLivingEntityMock
-
setSwimming
public void setSwimming(boolean swimming) - Specified by:
setSwimmingin interfaceLivingEntity- Overrides:
setSwimmingin classLivingEntityMock
-
isRiptiding
public boolean isRiptiding()- Specified by:
isRiptidingin interfaceLivingEntity- Overrides:
isRiptidingin classLivingEntityMock
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistentin interfaceEntity- Overrides:
isPersistentin classEntityMock
-
setPersistent
public void setPersistent(boolean persistent) - Specified by:
setPersistentin interfaceEntity- Overrides:
setPersistentin classEntityMock
-
getPlayerListHeader
- Specified by:
getPlayerListHeaderin interfacePlayer
-
setPlayerListHeader
- Specified by:
setPlayerListHeaderin interfacePlayer
-
updateCommands
public void updateCommands()- Specified by:
updateCommandsin interfacePlayer
-
getTargetBlockExact
- Specified by:
getTargetBlockExactin interfaceLivingEntity- Overrides:
getTargetBlockExactin classLivingEntityMock
-
getTargetBlockExact
public Block getTargetBlockExact(int maxDistance, @NotNull @NotNull FluidCollisionMode fluidCollisionMode) - Specified by:
getTargetBlockExactin interfaceLivingEntity- Overrides:
getTargetBlockExactin classLivingEntityMock
-
rayTraceBlocks
- Specified by:
rayTraceBlocksin interfaceLivingEntity- Overrides:
rayTraceBlocksin classLivingEntityMock
-
rayTraceBlocks
public RayTraceResult rayTraceBlocks(double maxDistance, @NotNull @NotNull FluidCollisionMode fluidCollisionMode) - Specified by:
rayTraceBlocksin interfaceLivingEntity- Overrides:
rayTraceBlocksin classLivingEntityMock
-
getBeeStingerCooldown
public int getBeeStingerCooldown()- Specified by:
getBeeStingerCooldownin interfaceLivingEntity- Overrides:
getBeeStingerCooldownin classLivingEntityMock
-
setBeeStingerCooldown
public void setBeeStingerCooldown(int ticks) - Specified by:
setBeeStingerCooldownin interfaceLivingEntity- Overrides:
setBeeStingerCooldownin classLivingEntityMock
-
getBeeStingersInBody
public int getBeeStingersInBody()- Specified by:
getBeeStingersInBodyin interfaceLivingEntity- Overrides:
getBeeStingersInBodyin classLivingEntityMock
-
setBeeStingersInBody
public void setBeeStingersInBody(int count) - Specified by:
setBeeStingersInBodyin interfaceLivingEntity- Overrides:
setBeeStingersInBodyin classLivingEntityMock
-
getBoundingBox
- Specified by:
getBoundingBoxin interfaceEntity- Overrides:
getBoundingBoxin classEntityMock
-
getFacing
- Specified by:
getFacingin interfaceEntity- Overrides:
getFacingin classEntityMock
-
getClientViewDistance
public int getClientViewDistance()- Specified by:
getClientViewDistancein interfacePlayer
-
locale
-
getPose
- Specified by:
getPosein interfaceEntity- Overrides:
getPosein classEntityMock
-
openBook
-
setResourcePack
- Specified by:
setResourcePackin interfacePlayer
-
setResourcePack
public void setResourcePack(@NotNull @NotNull String url, @NotNull @NotNull String hash, boolean required) - Specified by:
setResourcePackin interfacePlayer
-
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 interfacePlayer
-
getResourcePackStatus
- Specified by:
getResourcePackStatusin interfacePlayer
-
getResourcePackHash
Deprecated.- Specified by:
getResourcePackHashin interfacePlayer
-
hasResourcePack
public boolean hasResourcePack()- Specified by:
hasResourcePackin interfacePlayer
-
getPlayerProfile
- Specified by:
getPlayerProfilein interfaceOfflinePlayer- Specified by:
getPlayerProfilein interfacePlayer
-
setPlayerProfile
- Specified by:
setPlayerProfilein interfacePlayer
-
getCooldownPeriod
public float getCooldownPeriod()- Specified by:
getCooldownPeriodin interfacePlayer
-
getCooledAttackStrength
public float getCooledAttackStrength(float adjustTicks) - Specified by:
getCooledAttackStrengthin interfacePlayer
-
resetCooldown
public void resetCooldown()- Specified by:
resetCooldownin interfacePlayer
-
getClientOption
- Specified by:
getClientOptionin interfacePlayer
-
boostElytra
- Specified by:
boostElytrain interfacePlayer
-
sendOpLevel
public void sendOpLevel(byte level) - Specified by:
sendOpLevelin interfacePlayer
-
addAdditionalChatCompletions
- Specified by:
addAdditionalChatCompletionsin interfacePlayer
-
removeAdditionalChatCompletions
- Specified by:
removeAdditionalChatCompletionsin interfacePlayer
-
getClientBrandName
- Specified by:
getClientBrandNamein interfacePlayer
-
teleport
public boolean teleport(@NotNull @NotNull Location location, @NotNull PlayerTeleportEvent.TeleportCause cause, boolean ignorePassengers, boolean dismount, @NotNull @NotNull RelativeTeleportFlag @NotNull ... teleportFlags) -
lookAt
-
lookAt
public void lookAt(@NotNull @NotNull Entity entity, @NotNull @NotNull LookAnchor playerAnchor, @NotNull @NotNull LookAnchor entityAnchor) -
attack
- Specified by:
attackin interfaceLivingEntity- Overrides:
attackin classLivingEntityMock
-
swingMainHand
public void swingMainHand()- Specified by:
swingMainHandin interfaceLivingEntity- Overrides:
swingMainHandin classLivingEntityMock
-
swingOffHand
public void swingOffHand()- Specified by:
swingOffHandin interfaceLivingEntity- Overrides:
swingOffHandin classLivingEntityMock
-
sendExperienceChange
public void sendExperienceChange(float progress) - Specified by:
sendExperienceChangein interfacePlayer
-
sendExperienceChange
public void sendExperienceChange(float progress, int level) - Specified by:
sendExperienceChangein interfacePlayer
-
sendBlockDamage
- Specified by:
sendBlockDamagein interfacePlayer
-
sendMultiBlockChange
- Specified by:
sendMultiBlockChangein interfacePlayer
-
sendMultiBlockChange
public void sendMultiBlockChange(@NotNull @NotNull Map<Location, BlockData> blockChanges, boolean suppressLightUpdates) - Specified by:
sendMultiBlockChangein interfacePlayer
-
getPing
public int getPing() -
teleport
public boolean teleport(@NotNull @NotNull Location location, @NotNull PlayerTeleportEvent.TeleportCause cause, boolean ignorePassengers, boolean dismount) - Specified by:
teleportin interfaceEntity- Overrides:
teleportin classEntityMock
-
sendEquipmentChange
public void sendEquipmentChange(@NotNull @NotNull LivingEntity entity, @NotNull @NotNull EquipmentSlot slot, @NotNull @NotNull ItemStack item) - Specified by:
sendEquipmentChangein interfacePlayer
-
isInRain
public boolean isInRain()- Specified by:
isInRainin interfaceEntity- Overrides:
isInRainin classEntityMock
-
isInBubbleColumn
public boolean isInBubbleColumn()- Specified by:
isInBubbleColumnin interfaceEntity- Overrides:
isInBubbleColumnin classEntityMock
-
isInWaterOrRain
public boolean isInWaterOrRain()- Specified by:
isInWaterOrRainin interfaceEntity- Overrides:
isInWaterOrRainin classEntityMock
-
isInWaterOrBubbleColumn
public boolean isInWaterOrBubbleColumn()- Specified by:
isInWaterOrBubbleColumnin interfaceEntity- Overrides:
isInWaterOrBubbleColumnin classEntityMock
-
isInLava
public boolean isInLava()- Specified by:
isInLavain interfaceEntity- Overrides:
isInLavain classEntityMock
-
isTicking
public boolean isTicking()- Specified by:
isTickingin interfaceEntity- Overrides:
isTickingin classEntityMock
-
registerAttribute
- Specified by:
registerAttributein interfaceAttributable- Overrides:
registerAttributein classLivingEntityMock
-
spigot
- Specified by:
spigotin interfaceCommandSender- Specified by:
spigotin interfaceEntity- Specified by:
spigotin interfacePlayer- Overrides:
spigotin classEntityMock
-