Package net.glowstone.entity
Class GlowPlayer
java.lang.Object
net.glowstone.entity.GlowEntity
net.glowstone.entity.GlowLivingEntity
net.glowstone.entity.GlowHumanEntity
net.glowstone.entity.GlowPlayer
- All Implemented Interfaces:
com.destroystokyo.paper.network.NetworkClient,net.kyori.adventure.audience.Audience,net.kyori.adventure.identity.Identified,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
Represents an in-game player.
-
Nested Class Summary
Nested 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
FieldsModifier and TypeFieldDescriptionbooleanstatic final intMax distance of a fishing hook.org.bukkit.LocationFields inherited from class net.glowstone.entity.GlowHumanEntity
permissions, sleepingFields inherited from class net.glowstone.entity.GlowLivingEntity
deathTicks, health, maxHealth, movement, speed, taskManagerFields inherited from class net.glowstone.entity.GlowEntity
active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock -
Constructor Summary
ConstructorsConstructorDescriptionGlowPlayer(GlowSession session, GlowPlayerProfile profile, PlayerDataService.PlayerReader reader) Creates a new player and adds it to the world. -
Method Summary
Modifier and TypeMethodDescriptionvoidabandonConversation(org.bukkit.conversations.Conversation conversation) voidabandonConversation(org.bukkit.conversations.Conversation conversation, org.bukkit.conversations.ConversationAbandonedEvent details) voidacceptConversationInput(String input) voidaddBossBar(org.bukkit.boss.BossBar bar) Add a boss bar.voidaddChannel(String channel) Add a listening channel to this player.voidaddExhaustion(float exhaustion) Increases the exhaustion counter, but applies the maximum.voidaddMoveExhaustion(org.bukkit.Location move) Add the exhaustion for sprinting from the given location to the current location, if this player is sprinting.intapplyMending(int amount) booleanbeginConversation(org.bukkit.conversations.Conversation conversation) @Nullable org.bukkit.entity.FireworkboostElytra(@NotNull org.bukkit.inventory.ItemStack itemStack) booleancanSee(org.bukkit.entity.Player player) booleancanSeeChunk(GlowChunk.Key chunk) Checks whether the player can see the given chunk.booleancanSeeEntity(GlowEntity entity) Checks whether the player can see the given entity.booleancanTakeDamage(org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause) Get whether this entity should take damage from the specified source.voidvoidSays a message (or runs a command).booleancheckSignLocation(org.bukkit.Location loc) Check that the specified location matches that of the last opened sign editor, and if so, clears the last opened sign editor.voidList<com.flowpowered.network.Message>Creates a list ofMessages which can be sent to a client to spawn this entity.voiddamage(double amount) voiddamage(double amount, org.bukkit.entity.Entity cause) voiddamage(double amount, org.bukkit.entity.Entity source, @NotNull org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) voiddamage(double amount, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) voiddecrementStatistic(org.bukkit.Statistic statistic) voiddecrementStatistic(org.bukkit.Statistic statistic, int amount) voiddecrementStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType) voiddecrementStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType, int amount) voiddecrementStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material) voiddecrementStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material, int amount) 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 component) drop(org.bukkit.inventory.ItemStack stack) Spawns a newGlowItemin the world, as if this HumanEntity had dropped it.booleandropItem(boolean b) voidenchanted(int clicked) Updates level after enchanting.voidFinishes the teleport process.voidThis player enters the specified bed and is marked as sleeping.org.bukkit.inventory.ItemStackorg.bukkit.advancement.AdvancementProgressgetAdvancementProgress(org.bukkit.advancement.Advancement advancement) booleanbooleanfloat@NotNull org.bukkit.Locationorg.bukkit.LocationCollection<org.bukkit.boss.BossBar>Returns a collection of the boss bars this player sees.@NotNull org.bukkit.util.BoundingBox@Nullable String<T> TgetClientOption(@NotNull com.destroystokyo.paper.ClientOption<T> clientOption) intorg.bukkit.LocationThe player's compass target.intgetCooldown(org.bukkit.Material material) floatfloatgetCooledAttackStrength(float adjustTicks) Returns the current fishing hook.The one block the player is currently digging.@NotNull Set<org.bukkit.NamespacedKey>intThe player's ender pearl cooldown game tick counter.@NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReasonfloatThe player's current exhaustion level.floatgetExp()The progress made to the next level, from 0 to 1.intdoubledoublegetEyeHeight(boolean ignoreSneaking) longThe time the player first played, or 0 if unknown.floatThe player's base flight speed.intThe human entity's current food level.intdoubleThe scale at which to display the player's health.floatThe entity's hurt direction (angle).intlongThe time the player joined, in milliseconds, to be saved as last played time.longlongThe time the player last played, or 0 if unknown.longintgetLevel()The current level (or skill point amount) of the player.org.bukkit.inventory.MainHandintGets the currently open window ID.intgetPing()org.bukkit.entity.Playercom.destroystokyo.paper.profile.PlayerProfilelonglongorg.bukkit.WeatherType@Nullable org.bukkit.Locationintorg.bukkit.event.player.PlayerResourcePackStatusEvent.StatusintfloatThe player's current saturation level.org.bukkit.scoreboard.ScoreboardThe network session attached to this player.org.bukkit.entity.EntityintintintgetStatistic(org.bukkit.Statistic statistic) intgetStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType) intgetStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material) com.destroystokyo.paper.TitlegetTitle()intCumulative amount of experience points the player has collected.@NotNull Set<org.bukkit.entity.Player>org.bukkit.entity.EntityTypegetType()Collection<org.bukkit.inventory.Recipe>Recipes this player has unlocked.intorg.bukkit.inventory.ItemStackThe one itemstack the player is currently usage and associated time.intGet a UserListItemMessage entry representing adding this player.intfloatThe player's base walking speed.voidgiveExp(int xp) voidgiveExp(int xp, boolean applyMending) voidgiveExpLevels(int amount) booleanhasCooldown(org.bukkit.Material material) protected booleanIf true,GlowEntity.setRawLocation(Location, boolean)withfalltrue will callGlowEntity.setOnGround(boolean)according to whether or not our location is inside a solid block.booleanhasDiscoveredRecipe(@NotNull org.bukkit.NamespacedKey namespacedKey) booleanbooleanbooleanvoidhidePlayer(org.bukkit.entity.Player player) voidhidePlayer(org.bukkit.plugin.Plugin plugin, org.bukkit.entity.Player player) voidvoidincrementStatistic(org.bukkit.Statistic statistic) voidincrementStatistic(org.bukkit.Statistic statistic, int amount) voidincrementStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType) voidincrementStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType, int amount) voidincrementStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material) voidincrementStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material, int amount) booleanisBanned()booleanWhether to use the bed spawn even if there is no bed block.booleanbooleanbooleanisFlying()Whether the player is currently flying.booleanbooleanWhether to perform special scaling of the player's health.booleanReturns true if the player is inside a water block.booleanisOnline()booleanisOp()Whether this human is considered an op.booleanWhether the time offset is relative.booleanIf this player has seen the end credits.booleanbooleanbooleanbooleanvoidjoin(GlowSession session, PlayerDataService.PlayerReader reader) Loads the player's state and sends the messages that are necessary on login.protected voidjump()voidkick(@Nullable net.kyori.adventure.text.Component component) voidkickPlayer(String message) voidkickPlayer(String message, boolean async) booleanknowsRecipe(org.bukkit.inventory.Recipe recipe) Checks to see if the player knows this recipe.booleanlearnRecipe(org.bukkit.inventory.Recipe recipe, boolean notify) Teach the player a new recipe.voidleaveBed(boolean setSpawn) This player leaves their bed causing them to quit sleeping.voidloadData()@NotNull Localelocale()@Nullable org.bukkit.inventory.InventoryViewopenAnvil(@Nullable org.bukkit.Location location, boolean b) voidopenBook(@NotNull org.bukkit.inventory.ItemStack itemStack) @Nullable org.bukkit.inventory.InventoryViewopenCartographyTable(@Nullable org.bukkit.Location location, boolean b) @Nullable org.bukkit.inventory.InventoryViewopenGrindstone(@Nullable org.bukkit.Location location, boolean b) voidopenInventory(org.bukkit.inventory.InventoryView view) @Nullable org.bukkit.inventory.InventoryViewopenLoom(@Nullable org.bukkit.Location location, boolean b) org.bukkit.inventory.InventoryViewopenMerchant(org.bukkit.entity.Villager villager, boolean b) org.bukkit.inventory.InventoryViewopenMerchant(org.bukkit.inventory.Merchant merchant, boolean b) voidopenSignEditor(org.bukkit.Location loc) Open the sign editor interface at the specified location.@Nullable org.bukkit.inventory.InventoryViewopenSmithingTable(@Nullable org.bukkit.Location location, boolean b) @Nullable org.bukkit.inventory.InventoryViewopenStonecutter(@Nullable org.bukkit.Location location, boolean b) booleanperformCommand(String command) voidplayAnimationToSelf(org.bukkit.EntityAnimation animation) voidplayEffect(org.bukkit.Location loc, org.bukkit.Effect effect, int data) <T> voidplayEffect(org.bukkit.Location loc, org.bukkit.Effect effect, T data) @Nullable net.kyori.adventure.text.Component@Nullable net.kyori.adventure.text.Component@Nullable net.kyori.adventure.text.ComponentvoidplayerListName(@Nullable net.kyori.adventure.text.Component component) voidplayNote(org.bukkit.Location loc, byte instrument, byte note) voidplayNote(org.bukkit.Location loc, org.bukkit.Instrument instrument, org.bukkit.Note note) voidvoidplaySound(org.bukkit.Location location, String sound, org.bukkit.SoundCategory category, float volume, float pitch) voidplaySound(org.bukkit.Location location, org.bukkit.Sound sound, float volume, float pitch) voidplaySound(org.bukkit.Location location, org.bukkit.Sound sound, org.bukkit.SoundCategory category, float volume, float pitch) voidpulse()Called every game cycle.protected voidvoidremove()Kicks this player.voidremove(boolean async) Handle player disconnection.voidremoveBossBar(org.bukkit.boss.BossBar bar) Remove a boss bar.voidremoveChannel(String channel) Remove a listening channel from this player.voidvoidvoidvoidvoidrespawn()Respawn the player after they have died.voidsaveData()voidsaveData(boolean async) Saves the players current location, health, inventory, motion, and other information into the username.dat file, in the world/player folder.voidsendActionBar(char alternateChar, String message) voidsendActionBar(@NotNull String message) voidsendActionBar(@NotNull net.md_5.bungee.api.chat.BaseComponent... components) voidsendBlockChange(@NotNull org.bukkit.Location loc, @NotNull org.bukkit.block.data.BlockData blockData) voidsendBlockChange(@NotNull org.bukkit.Location loc, org.bukkit.Material type, byte data) voidsendBlockChange(BlockChangeMessage message) Sends the givenBlockChangeMessageif it's in a chunk this player can see.voidsendBlockChangeForce(BlockChangeMessage message) Deprecated.voidsendBlockDamage(@NotNull org.bukkit.Location location, float v) voidsendBlockEntityChange(org.bukkit.Location location, GlowBlockEntity type, CompoundTag nbt) Send a block entity change to the given location.booleansendChunkChange(org.bukkit.Location loc, int sx, int sy, int sz, byte[] data) voidsendExperienceChange(float v) voidsendExperienceChange(float v, int i) voidsendItemChange(int slot, org.bukkit.inventory.ItemStack item) Sends aSetWindowSlotMessageto update the contents of an inventory slot.voidsendMap(org.bukkit.map.MapView map) voidsendMessage(@NotNull String message) voidsendMessage(@NotNull net.md_5.bungee.api.chat.BaseComponent component) voidsendMessage(String[] messages) voidsendMessage(UUID sender, @NotNull String message) voidsendMessage(UUID sender, @NotNull String[] messages) voidsendMessage(net.md_5.bungee.api.chat.BaseComponent... components) voidsendMessage(net.md_5.bungee.api.ChatMessageType type, net.md_5.bungee.api.chat.BaseComponent... components) voidsendMessages(UUID sender, String... messages) voidsendOpLevel(byte b) voidsendPluginMessage(org.bukkit.plugin.Plugin source, String channel, byte[] message) voidvoidsendRawMessage(@NotNull String message) voidsendRawMessage(UUID sender, @NotNull String message) voidsendRawMessages(String senderName, String... messages) voidsendRawMessages(net.md_5.bungee.api.ChatMessageType type, String... messages) voidsendSignChange(@NotNull org.bukkit.Location location, @Nullable String[] strings, @NotNull org.bukkit.DyeColor dyeColor) voidsendSignChange(@NotNull org.bukkit.Location location, @Nullable List<net.kyori.adventure.text.Component> list) voidsendSignChange(@NotNull org.bukkit.Location location, @Nullable List<net.kyori.adventure.text.Component> list, @NotNull org.bukkit.DyeColor dyeColor) voidsendSignChange(SignEntity sign, org.bukkit.Location location, TextMessage[] lines) Send a sign change, similar tosendSignChange(Location, String[]), but using complete TextMessages instead of strings.voidsendSignChange(org.bukkit.Location location, String[] lines) voidvoidvoidsendTime()Sends aTimeMessagewith the time of day.voidSend the player their current title.voidsendTitle(com.destroystokyo.paper.Title title) voidsendTitle(com.destroystokyo.paper.Title.Builder title) Send the player a title base on aTitle.Builder.voidvoidvoidSends aStateChangeMessagewith the current weather.voidsetAffectsSpawning(boolean affectsSpawning) voidsetAllowFlight(boolean flight) voidsetBedSpawnLocation(org.bukkit.Location bedSpawn) voidsetBedSpawnLocation(org.bukkit.Location location, boolean force) voidsetCompassTarget(org.bukkit.Location loc) voidsetCooldown(org.bukkit.Material material, int ticks) voidsetCurrentFishingHook(GlowFishingHook fishingHook) Removes the current fishing hook, if any, and sets a new one.voidsetDigging(GlowBlock block) Starts breaking a block.voidsetDisplayName(String name) voidsetEnderPearlCooldown(int enderPearlCooldown) The player's ender pearl cooldown game tick counter.voidsetExhaustion(float exhaustion) The player's current exhaustion level.voidsetExp(float percentToLevel) voidsetFlying(boolean value) voidsetFlySpeed(float value) voidsetFoodLevel(int food) voidsetFoodLevelAndSaturation(int food, float saturation) Updates the hunger bar and hunger saturation.voidsetGameMode(org.bukkit.GameMode mode) The player's active game mode.voidsetHealth(double health) voidsetHealthScale(double scale) voidsetHealthScaled(boolean scale) voidsetHurtDirection(float hurtDirection) The entity's hurt direction (angle).voidsetItemOnCursor(org.bukkit.inventory.ItemStack item) The item the player has on their cursor.voidsetLevel(int level) voidsetMaxHealth(double health) voidsetOnGround(boolean onGround) Sets the on-ground flag and clears fall distance.voidsetOp(boolean value) Whether this entity has operator permissions.voidsetPlayerListFooter(String playerListFooter) voidsetPlayerListHeader(String playerListHeader) voidsetPlayerListHeaderFooter(String header, String footer) voidsetPlayerListHeaderFooter(net.md_5.bungee.api.chat.BaseComponent[] header, net.md_5.bungee.api.chat.BaseComponent[] footer) voidsetPlayerListHeaderFooter(net.md_5.bungee.api.chat.BaseComponent header, net.md_5.bungee.api.chat.BaseComponent footer) voidsetPlayerListName(String name) voidsetPlayerProfile(com.destroystokyo.paper.profile.PlayerProfile playerProfile) voidsetPlayerTime(long time, boolean relative) voidsetPlayerWeather(org.bukkit.WeatherType type) voidsetResourcePack(String url) voidsetResourcePack(String url, byte[] hash) voidsetResourcePack(String url, String hash) voidsetResourcePackStatus(org.bukkit.event.player.PlayerResourcePackStatusEvent.Status status) voidsetRotation(float yaw, float pitch) voidsetSaturatedRegenRate(int i) voidsetSaturation(float value) voidsetScoreboard(org.bukkit.scoreboard.Scoreboard scoreboard) voidsetSeenCredits(boolean seenCredits) If this player has seen the end credits.voidsetSettings(ClientSettings settings) Set this player's client settings.voidsetSleepingIgnored(boolean isSleeping) voidsetSneaking(boolean sneak) voidsetSpectatorTarget(org.bukkit.entity.Entity entity) voidsetSprinting(boolean sprinting) voidsetStarvationRate(int i) voidsetStatistic(org.bukkit.Statistic statistic, int newValue) voidsetStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType, int newValue) voidsetStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material, int newValue) voidsetSubtitle(net.md_5.bungee.api.chat.BaseComponent subtitle) voidsetSubtitle(net.md_5.bungee.api.chat.BaseComponent[] subtitle) voidsetTexturePack(String url) Deprecated.voidsetTitleTimes(int fadeInTicks, int stayTicks, int fadeOutTicks) voidsetTotalExperience(int exp) voidsetUnsaturatedRegenRate(int i) voidsetUsageItem(org.bukkit.inventory.ItemStack usageItem) The one itemstack the player is currently usage and associated time.voidsetUsageTime(int usageTime) voidsetVelocity(org.bukkit.util.Vector velocity) voidsetViewDistance(int viewDistance) voidsetWalkSpeed(float value) voidsetWhitelisted(boolean value) booleansetWindowProperty(org.bukkit.inventory.InventoryView.Property prop, int value) booleanChecks whether this entity should be saved as part of the world.voidshowParticle(org.bukkit.Location loc, org.bukkit.Effect particle, org.bukkit.material.MaterialData material, float offsetX, float offsetY, float offsetZ, float speed, int amount) Sends aPlayParticleMessageto display the given particle.voidshowPlayer(org.bukkit.entity.Player player) voidshowPlayer(org.bukkit.plugin.Plugin plugin, org.bukkit.entity.Player player) voidshowTitle(net.md_5.bungee.api.chat.BaseComponent title) voidshowTitle(net.md_5.bungee.api.chat.BaseComponent[] title) voidshowTitle(net.md_5.bungee.api.chat.BaseComponent[] title, net.md_5.bungee.api.chat.BaseComponent[] subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks) voidshowTitle(net.md_5.bungee.api.chat.BaseComponent title, net.md_5.bungee.api.chat.BaseComponent subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks) booleansleep(@NotNull org.bukkit.Location location, boolean force) voidspawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count) voidspawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ) voidspawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra) <T> voidspawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) <T> voidspawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, T data) <T> voidspawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, T data) voidspawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count) voidspawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ) voidspawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, double extra) <T> voidspawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) <T> voidspawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, T data) <T> voidspawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, T data) org.bukkit.entity.Player.Spigotspigot()voidstopHidingDisconnectedPlayer(org.bukkit.entity.Player player) Called when a player hidden to this player disconnects.voidvoidvoidstopSound(org.bukkit.Sound sound) voidstopSound(org.bukkit.SoundCategory category, org.bukkit.Sound sound) voidstopSound(org.bukkit.Sound sound, org.bukkit.SoundCategory soundCategory) booleanteleport(org.bukkit.Location location) Teleport the player.booleanteleport(org.bukkit.Location location, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) protected booleanTeleport this entity to the End.protected booleanTeleport this entity to the spawn point of the main world.toString()booleanundiscoverRecipe(@NotNull org.bukkit.NamespacedKey recipe) intundiscoverRecipes(@NotNull Collection<org.bukkit.NamespacedKey> recipes) booleanunlearnRecipe(org.bukkit.inventory.Recipe recipe) Remove a recipe from the player's known recipes.voidvoidvoidupdateTitle(com.destroystokyo.paper.Title title) voidupdateTitle(TitleMessage.Action action, Object... value) Update a specific attribute of the player's title.voidwakeup(boolean setSpawnLocation) Methods inherited from class net.glowstone.entity.GlowHumanEntity
addAttachment, addAttachment, addAttachment, addAttachment, closeInventory, closeInventory, dropItemInHand, getEffectivePermissions, getEnderChest, getEquipment, getGameMode, getInventory, getItemInHand, getItemOnCursor, getLeftShoulderTag, getName, getOpenInventory, getProfile, getRightShoulderTag, getShoulderEntityLeft, getShoulderEntityRight, getSleepTicks, getUniqueId, getXpSeed, hasPermission, hasPermission, isBlocking, isPermissionSet, isPermissionSet, isSleeping, openEnchanting, openInventory, openSign, openWorkbench, recalculatePermissions, releaseLeftShoulderEntity, releaseRightShoulderEntity, removeAttachment, setFireTicks, setItemInHand, setLeftShoulderTag, setRightShoulderTag, setShoulderEntityLeft, setShoulderEntityRight, setUniqueId, setXpSeedMethods inherited from class net.glowstone.entity.GlowLivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, clearActiveItem, clearActivePotionEffects, createUpdateMessage, entityInteract, getAbsorptionAmount, getActivePotionEffects, getAmbientDelay, getAmbientSound, getArrowCooldown, getArrowsInBody, getArrowsStuck, getAttribute, getAttributeManager, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDeathTicks, getEquipmentMonitor, getEyeLocation, getHeadYaw, getHealth, getHurtSound, getKiller, getLastDamage, getLastDamager, getLastTwoTargetBlocks, getLineOfSight, getMaxHealth, getMaximumAir, getMaximumNoDamageTicks, getMemory, getMovement, getNoDamageTicks, getPlayerDamageTick, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getSoundPitch, getSoundVolume, getSpeed, getState, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockInfo, getTargetEntity, getTargetEntityInfo, getTaskManager, getVelocityFromMovement, hasAI, hasLineOfSight, hasPotionEffect, isArthropod, isCollidable, isFallFlying, isGliding, isInvisible, isJumping, isRiptiding, isSwimming, isUndead, isWithinSolidBlock, launchProjectile, launchProjectile, launchProjectile, launchProjectile, playAnimation, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, registerAttribute, removePotionEffect, reset, resetMaxHealth, setAbsorptionAmount, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setCanPickupItems, setCollidable, setFallFlying, setGliding, setHeadYaw, setInvisible, setJumping, setKiller, setLastDamage, setLastDamager, setMaximumAir, setMaximumNoDamageTicks, setMemory, setMovement, setNoDamageTicks, setPlayerDamageTick, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSpeed, setState, setSwimming, swingMainHand, swingOffHand, tryUseTotem, updatePotionEffectsMetadataMethods inherited from class net.glowstone.entity.GlowEntity
addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, customName, customName, eject, equals, fromMobSpawner, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEntityId, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getVehicle, getVelocity, getWidth, getWorld, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInMaterial, isInRain, isInsideVehicle, isInvulnerable, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isLeashed, isOnGround, isPersistent, isRemoved, isSilent, isTeleported, isTicking, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, removeMetadata, removePassenger, removeScoreboardTag, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setPassenger, setPersistent, setPortalCooldown, setRawLocation, setRawLocation, setSilent, setSize, setTicksLived, teleport, teleport, updateBoundingBoxMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.attribute.Attributable
getAttribute, registerAttributeMethods inherited from interface net.kyori.adventure.audience.Audience
hideBossBar, openBook, openBook, playSound, playSound, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSoundMethods inherited from interface org.bukkit.command.CommandSender
sendMessageMethods inherited from interface org.bukkit.entity.Damageable
getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmountMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInRain, isInsideVehicle, isInvulnerable, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isPersistent, isSilent, isTicking, isValid, leaveVehicle, playEffect, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setSilent, setTicksLived, teleport, teleport, teleportAsync, teleportAsyncMethods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEventMethods inherited from interface org.bukkit.entity.HumanEntity
closeInventory, closeInventory, getEnderChest, getGameMode, getInventory, getItemInHand, getItemOnCursor, getName, getOpenInventory, getShoulderEntityLeft, getShoulderEntityRight, getSleepTicks, isBlocking, openEnchanting, openInventory, openSign, openWorkbench, releaseLeftShoulderEntity, releaseRightShoulderEntity, setItemInHand, setShoulderEntityLeft, setShoulderEntityRightMethods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, clearActiveItem, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getCanPickupItems, getCategory, getCollidableExemptions, getEquipment, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isInvisible, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, playAnimation, playPickupItemAnimation, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setCanPickupItems, setCollidable, setGliding, setInvisible, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, swingMainHand, swingOffHandMethods 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, getName, getUniqueIdMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, 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, isOnGroundMethods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
-
Field Details
-
HOOK_MAX_DISTANCE
public static final int HOOK_MAX_DISTANCEMax distance of a fishing hook.- See Also:
-
teleportedTo
public org.bukkit.Location teleportedTo -
affectsSpawning
public boolean affectsSpawning
-
-
Constructor Details
-
GlowPlayer
public GlowPlayer(GlowSession session, GlowPlayerProfile profile, PlayerDataService.PlayerReader reader) Creates a new player and adds it to the world.- Parameters:
session- The player's session.profile- The player's profile with name and UUID information.reader- The PlayerReader to be used to initialize the player.
-
-
Method Details
-
hasJoined
public boolean hasJoined() -
getCurrentFishingHook
Returns the current fishing hook.- Returns:
- the current fishing hook, or null if not fishing
-
setCurrentFishingHook
Removes the current fishing hook, if any, and sets a new one.- Parameters:
fishingHook- the new fishing hook, or null to stop fishing
-
join
Loads the player's state and sends the messages that are necessary on login.- Parameters:
session- the player's sessionreader- the source of the player's saved state
-
toString
- Overrides:
toStringin classGlowEntity
-
damage
public void damage(double amount) - Specified by:
damagein interfaceorg.bukkit.entity.Damageable- Overrides:
damagein classGlowEntity
-
damage
public void damage(double amount, org.bukkit.entity.Entity cause) - Specified by:
damagein interfaceorg.bukkit.entity.Damageable- Overrides:
damagein classGlowEntity
-
damage
public void damage(double amount, org.bukkit.entity.Entity source, @NotNull @NotNull org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) - Specified by:
damagein interfaceorg.bukkit.entity.Damageable- Overrides:
damagein classGlowLivingEntity
-
damage
public void damage(double amount, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) - Specified by:
damagein interfaceorg.bukkit.entity.Damageable- Overrides:
damagein classGlowEntity
-
canTakeDamage
public boolean canTakeDamage(org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause) Description copied from class:GlowLivingEntityGet whether this entity should take damage from the specified source.Usually used to check environmental sources such as drowning.
- Overrides:
canTakeDamagein classGlowHumanEntity- Parameters:
damageCause- the damage source to check- Returns:
- whether this entity can take damage from the source
-
remove
public void remove()Kicks this player.- Specified by:
removein interfaceorg.bukkit.entity.Entity- Overrides:
removein classGlowEntity
-
remove
public void remove(boolean async) Handle player disconnection.- Parameters:
async- if true, the player's data is saved asynchronously
-
shouldSave
public boolean shouldSave()Description copied from class:GlowEntityChecks whether this entity should be saved as part of the world.- Overrides:
shouldSavein classGlowEntity- Returns:
- True if the entity should be saved.
-
pulse
public void pulse()Description copied from class:GlowEntityCalled every game cycle. Subclasses should implement this to implement periodic functionality e.g. mob AI.- Overrides:
pulsein classGlowHumanEntity
-
pulsePhysics
protected void pulsePhysics()- Overrides:
pulsePhysicsin classGlowLivingEntity
-
jump
protected void jump()- Overrides:
jumpin classGlowLivingEntity
-
respawn
public void respawn()Respawn the player after they have died. -
canSeeChunk
Checks whether the player can see the given chunk.- Parameters:
chunk- The chunk to check.- Returns:
- If the chunk is known to the player's client.
-
canSeeEntity
Checks whether the player can see the given entity.- Parameters:
entity- The entity to check.- Returns:
- If the entity is known to the player's client.
-
openSignEditor
public void openSignEditor(org.bukkit.Location loc) Open the sign editor interface at the specified location.- Parameters:
loc- The location to open the editor at
-
checkSignLocation
public boolean checkSignLocation(org.bukkit.Location loc) Check that the specified location matches that of the last opened sign editor, and if so, clears the last opened sign editor.- Parameters:
loc- The location to check- Returns:
- Whether the location matched.
-
getUserListEntry
Get a UserListItemMessage entry representing adding this player.- Returns:
- The entry (action ADD_PLAYER) with this player's information.
-
setVelocity
public void setVelocity(org.bukkit.util.Vector velocity) - Specified by:
setVelocityin interfaceorg.bukkit.entity.Entity- Overrides:
setVelocityin classGlowEntity
-
getBoundingBox
@NotNull public @NotNull org.bukkit.util.BoundingBox getBoundingBox()- Specified by:
getBoundingBoxin interfaceorg.bukkit.entity.Entity- Overrides:
getBoundingBoxin classGlowEntity
-
setRotation
public void setRotation(float yaw, float pitch) - Specified by:
setRotationin interfaceorg.bukkit.entity.Entity- Overrides:
setRotationin classGlowEntity
-
setSettings
Set this player's client settings.- Parameters:
settings- The settings to set.
-
serialize
- Specified by:
serializein interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable
-
getType
public org.bukkit.entity.EntityType getType()- Specified by:
getTypein interfaceorg.bukkit.entity.Entity- Overrides:
getTypein classGlowEntity
-
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
-
isOnline
public boolean isOnline()- Specified by:
isOnlinein interfaceorg.bukkit.OfflinePlayer
-
isBanned
public boolean isBanned()- Specified by:
isBannedin interfaceorg.bukkit.OfflinePlayer
-
isWhitelisted
public boolean isWhitelisted()- Specified by:
isWhitelistedin interfaceorg.bukkit.OfflinePlayer
-
setWhitelisted
public void setWhitelisted(boolean value) - Specified by:
setWhitelistedin interfaceorg.bukkit.OfflinePlayer
-
hasDefaultLandingBehavior
protected boolean hasDefaultLandingBehavior()Description copied from class:GlowEntityIf true,GlowEntity.setRawLocation(Location, boolean)withfalltrue will callGlowEntity.setOnGround(boolean)according to whether or not our location is inside a solid block.- Overrides:
hasDefaultLandingBehaviorin classGlowEntity- Returns:
- true to call
GlowEntity.setOnGround(boolean)fromGlowEntity.setRawLocation(Location, boolean); false otherwise
-
getPlayer
public org.bukkit.entity.Player getPlayer()- Specified by:
getPlayerin interfaceorg.bukkit.OfflinePlayer
-
hasPlayedBefore
public boolean hasPlayedBefore()- Specified by:
hasPlayedBeforein interfaceorg.bukkit.OfflinePlayer
-
isOp
public boolean isOp()Description copied from class:GlowHumanEntityWhether this human is considered an op.- Specified by:
isOpin interfaceorg.bukkit.permissions.ServerOperator- Overrides:
isOpin classGlowHumanEntity
-
setOp
public void setOp(boolean value) Description copied from class:GlowEntityWhether this entity has operator permissions.- Specified by:
setOpin interfaceorg.bukkit.permissions.ServerOperator- Overrides:
setOpin classGlowHumanEntity
-
createSpawnMessage
Description copied from class:GlowEntityCreates a list ofMessages which can be sent to a client to spawn this entity. Implementations in concrete subclasses may return a shallowly immutable list.- Overrides:
createSpawnMessagein classGlowHumanEntity- Returns:
- A list of messages which can spawn this entity.
-
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 component) - Specified by:
displayNamein interfaceorg.bukkit.entity.Player
-
getDisplayName
- Specified by:
getDisplayNamein interfaceorg.bukkit.entity.Player
-
setDisplayName
- Specified by:
setDisplayNamein interfaceorg.bukkit.entity.Player
-
playerListName
public void playerListName(@Nullable @Nullable net.kyori.adventure.text.Component component) - Specified by:
playerListNamein interfaceorg.bukkit.entity.Player
-
playerListName
@Nullable public @Nullable 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
- Specified by:
getPlayerListNamein interfaceorg.bukkit.entity.Player
-
setPlayerListName
- Specified by:
setPlayerListNamein interfaceorg.bukkit.entity.Player
-
setCompassTarget
public void setCompassTarget(org.bukkit.Location loc) - Specified by:
setCompassTargetin interfaceorg.bukkit.entity.Player
-
getBedSpawnLocation
public org.bukkit.Location getBedSpawnLocation()- Specified by:
getBedSpawnLocationin interfaceorg.bukkit.OfflinePlayer- Specified by:
getBedSpawnLocationin interfaceorg.bukkit.entity.Player
-
setBedSpawnLocation
public void setBedSpawnLocation(org.bukkit.Location bedSpawn) - Specified by:
setBedSpawnLocationin interfaceorg.bukkit.entity.Player
-
setBedSpawnLocation
public void setBedSpawnLocation(org.bukkit.Location location, boolean force) - Specified by:
setBedSpawnLocationin interfaceorg.bukkit.entity.Player
-
getLastLogin
public long getLastLogin()- Specified by:
getLastLoginin interfaceorg.bukkit.OfflinePlayer
-
getLastSeen
public long getLastSeen()- Specified by:
getLastSeenin interfaceorg.bukkit.OfflinePlayer
-
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
-
isSleepingIgnored
public boolean isSleepingIgnored()- Specified by:
isSleepingIgnoredin interfaceorg.bukkit.entity.Player
-
setSleepingIgnored
public void setSleepingIgnored(boolean isSleeping) - Specified by:
setSleepingIgnoredin interfaceorg.bukkit.entity.Player
-
setGameMode
public void setGameMode(org.bukkit.GameMode mode) Description copied from class:GlowHumanEntityThe player's active game mode.- Specified by:
setGameModein interfaceorg.bukkit.entity.HumanEntity- Overrides:
setGameModein classGlowHumanEntity
-
getActiveItem
public org.bukkit.inventory.ItemStack getActiveItem()- Specified by:
getActiveItemin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getActiveItemin classGlowLivingEntity
-
setUsageTime
public void setUsageTime(int usageTime) -
getItemUseRemainingTime
public int getItemUseRemainingTime()- Specified by:
getItemUseRemainingTimein interfaceorg.bukkit.entity.LivingEntity- Overrides:
getItemUseRemainingTimein classGlowLivingEntity
-
getHandRaisedTime
public int getHandRaisedTime()- Specified by:
getHandRaisedTimein interfaceorg.bukkit.entity.LivingEntity- Overrides:
getHandRaisedTimein classGlowLivingEntity
-
isHandRaised
public boolean isHandRaised()- Specified by:
isHandRaisedin interfaceorg.bukkit.entity.HumanEntity- Specified by:
isHandRaisedin interfaceorg.bukkit.entity.LivingEntity- Overrides:
isHandRaisedin classGlowLivingEntity
-
isSneaking
public boolean isSneaking()- Specified by:
isSneakingin interfaceorg.bukkit.entity.Player
-
setSneaking
public void setSneaking(boolean sneak) - Specified by:
setSneakingin interfaceorg.bukkit.entity.Player
-
isSprinting
public boolean isSprinting()- Specified by:
isSprintingin interfaceorg.bukkit.entity.Player
-
setSprinting
public void setSprinting(boolean sprinting) - Specified by:
setSprintingin interfaceorg.bukkit.entity.Player
-
getEyeHeight
public double getEyeHeight()- Specified by:
getEyeHeightin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getEyeHeightin classGlowLivingEntity
-
getEyeHeight
public double getEyeHeight(boolean ignoreSneaking) - Specified by:
getEyeHeightin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getEyeHeightin classGlowLivingEntity
-
getAllowFlight
public boolean getAllowFlight()- Specified by:
getAllowFlightin interfaceorg.bukkit.entity.Player
-
setAllowFlight
public void setAllowFlight(boolean flight) - Specified by:
setAllowFlightin interfaceorg.bukkit.entity.Player
-
setFlying
public void setFlying(boolean value) - Specified by:
setFlyingin interfaceorg.bukkit.entity.Player
-
setFlySpeed
- Specified by:
setFlySpeedin interfaceorg.bukkit.entity.Player- Throws:
IllegalArgumentException
-
setWalkSpeed
- Specified by:
setWalkSpeedin interfaceorg.bukkit.entity.Player- Throws:
IllegalArgumentException
-
setLevel
public void setLevel(int level) - Specified by:
setLevelin interfaceorg.bukkit.entity.Player
-
setTotalExperience
public void setTotalExperience(int exp) - Specified by:
setTotalExperiencein interfaceorg.bukkit.entity.Player
-
sendExperienceChange
public void sendExperienceChange(float v) - Specified by:
sendExperienceChangein interfaceorg.bukkit.entity.Player
-
sendExperienceChange
public void sendExperienceChange(float v, int i) - Specified by:
sendExperienceChangein interfaceorg.bukkit.entity.Player
-
giveExp
public void giveExp(int xp) - Specified by:
giveExpin interfaceorg.bukkit.entity.Player
-
giveExp
public void giveExp(int xp, 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
-
setExp
public void setExp(float percentToLevel) - Specified by:
setExpin interfaceorg.bukkit.entity.Player
-
getExpToLevel
public int getExpToLevel()- Specified by:
getExpToLevelin interfaceorg.bukkit.entity.HumanEntity- Overrides:
getExpToLevelin classGlowHumanEntity
-
getAttackCooldown
public float getAttackCooldown()- Specified by:
getAttackCooldownin interfaceorg.bukkit.entity.HumanEntity
-
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
-
hasDiscoveredRecipe
public boolean hasDiscoveredRecipe(@NotNull @NotNull org.bukkit.NamespacedKey namespacedKey) - Specified by:
hasDiscoveredRecipein interfaceorg.bukkit.entity.HumanEntity
-
getDiscoveredRecipes
- Specified by:
getDiscoveredRecipesin interfaceorg.bukkit.entity.HumanEntity
-
dropItem
public boolean dropItem(boolean b) - Specified by:
dropItemin interfaceorg.bukkit.entity.HumanEntity
-
getUnlockedRecipes
Recipes this player has unlocked.- Returns:
- An immutable list of unlocked recipes.
-
learnRecipe
public boolean learnRecipe(org.bukkit.inventory.Recipe recipe, boolean notify) Teach the player a new recipe.- Parameters:
recipe- The recipe to be added to learnt recipesnotify- If the player should be notified of the recipes learnt- Returns:
- If this recipe was not learned already.
-
unlearnRecipe
public boolean unlearnRecipe(org.bukkit.inventory.Recipe recipe) Remove a recipe from the player's known recipes.- Parameters:
recipe- The recipe to be removed from learnt recipes- Returns:
- If this recipe was learned before it was removed.
-
knowsRecipe
public boolean knowsRecipe(org.bukkit.inventory.Recipe recipe) Checks to see if the player knows this recipe.- Parameters:
recipe- The recipe to check- Returns:
- If the player knows the recipe
-
setHealth
public void setHealth(double health) - Specified by:
setHealthin interfaceorg.bukkit.entity.Damageable- Overrides:
setHealthin classGlowLivingEntity
-
setMaxHealth
public void setMaxHealth(double health) - Specified by:
setMaxHealthin interfaceorg.bukkit.entity.Damageable- Overrides:
setMaxHealthin classGlowLivingEntity
-
setHealthScaled
public void setHealthScaled(boolean scale) - Specified by:
setHealthScaledin interfaceorg.bukkit.entity.Player
-
setHealthScale
- Specified by:
setHealthScalein interfaceorg.bukkit.entity.Player- Throws:
IllegalArgumentException
-
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
-
setFoodLevelAndSaturation
public void setFoodLevelAndSaturation(int food, float saturation) Updates the hunger bar and hunger saturation.- Parameters:
food- the amount of food (in half-icons on the hunger bar)saturation- the amount of food saturation (in half-icons of food it will save)
-
setFoodLevel
public void setFoodLevel(int food) - Specified by:
setFoodLevelin interfaceorg.bukkit.entity.HumanEntity
-
getSaturatedRegenRate
public int getSaturatedRegenRate()- Specified by:
getSaturatedRegenRatein interfaceorg.bukkit.entity.HumanEntity
-
setSaturatedRegenRate
public void setSaturatedRegenRate(int i) - Specified by:
setSaturatedRegenRatein interfaceorg.bukkit.entity.HumanEntity
-
getUnsaturatedRegenRate
public int getUnsaturatedRegenRate()- Specified by:
getUnsaturatedRegenRatein interfaceorg.bukkit.entity.HumanEntity
-
setUnsaturatedRegenRate
public void setUnsaturatedRegenRate(int i) - Specified by:
setUnsaturatedRegenRatein interfaceorg.bukkit.entity.HumanEntity
-
getStarvationRate
public int getStarvationRate()- Specified by:
getStarvationRatein interfaceorg.bukkit.entity.HumanEntity
-
setStarvationRate
public void setStarvationRate(int i) - Specified by:
setStarvationRatein interfaceorg.bukkit.entity.HumanEntity
-
addExhaustion
public void addExhaustion(float exhaustion) Increases the exhaustion counter, but applies the maximum.- Parameters:
exhaustion- the amount of exhaustion to add
-
addMoveExhaustion
public void addMoveExhaustion(org.bukkit.Location move) Add the exhaustion for sprinting from the given location to the current location, if this player is sprinting.- Parameters:
move- the previous location
-
setSaturation
public void setSaturation(float value) - Specified by:
setSaturationin interfaceorg.bukkit.entity.HumanEntity
-
teleport
public boolean teleport(org.bukkit.Location location) Teleport the player.- Specified by:
teleportin interfaceorg.bukkit.entity.Entity- Overrides:
teleportin classGlowEntity- Parameters:
location- The destination to teleport to.- Returns:
- Whether the teleport was a success.
-
teleport
public boolean teleport(org.bukkit.Location location, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) - Specified by:
teleportin interfaceorg.bukkit.entity.Entity- Overrides:
teleportin classGlowEntity
-
endTeleport
public void endTeleport()Finishes the teleport process. -
teleportToSpawn
protected boolean teleportToSpawn()Description copied from class:GlowEntityTeleport this entity to the spawn point of the main world. This is used to teleport out of the End.- Overrides:
teleportToSpawnin classGlowEntity- Returns:
trueif the teleport was successful.
-
teleportToEnd
protected boolean teleportToEnd()Description copied from class:GlowEntityTeleport this entity to the End. If no End world is loaded this does nothing.- Overrides:
teleportToEndin classGlowEntity- Returns:
trueif the teleport was successful.
-
enterBed
This player enters the specified bed and is marked as sleeping.- Parameters:
block- the bed
-
leaveBed
public void leaveBed(boolean setSpawn) This player leaves their bed causing them to quit sleeping.- Parameters:
setSpawn- Whether to set the bed spawn of the player
-
sendMessage
- Specified by:
sendMessagein interfaceorg.bukkit.command.CommandSender- Overrides:
sendMessagein classGlowEntity
-
sendMessage
- Specified by:
sendMessagein interfaceorg.bukkit.command.CommandSender- Overrides:
sendMessagein classGlowEntity
-
sendMessage
public void sendMessage(@NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent component) - Specified by:
sendMessagein interfaceorg.bukkit.command.CommandSender- Specified by:
sendMessagein interfaceorg.bukkit.entity.Player
-
sendMessage
public void sendMessage(net.md_5.bungee.api.chat.BaseComponent... components) - Specified by:
sendMessagein interfaceorg.bukkit.command.CommandSender- Specified by:
sendMessagein interfaceorg.bukkit.entity.Player
-
sendMessage
public void sendMessage(net.md_5.bungee.api.ChatMessageType type, net.md_5.bungee.api.chat.BaseComponent... components) - Specified by:
sendMessagein interfaceorg.bukkit.entity.Player
-
sendMessage
- Specified by:
sendMessagein interfaceorg.bukkit.command.CommandSender- Overrides:
sendMessagein classGlowEntity
-
sendMessage
- Specified by:
sendMessagein interfaceorg.bukkit.command.CommandSender- Overrides:
sendMessagein classGlowEntity
-
sendMessages
-
sendRawMessages
-
sendRawMessages
-
sendRawMessage
- Specified by:
sendRawMessagein interfaceorg.bukkit.conversations.Conversable- Specified by:
sendRawMessagein interfaceorg.bukkit.entity.Player
-
sendRawMessage
- Specified by:
sendRawMessagein interfaceorg.bukkit.conversations.Conversable
-
sendActionBar
- Specified by:
sendActionBarin interfaceorg.bukkit.entity.Player
-
sendActionBar
- Specified by:
sendActionBarin interfaceorg.bukkit.entity.Player
-
sendActionBar
public void sendActionBar(@NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent... components) - Specified by:
sendActionBarin interfaceorg.bukkit.entity.Player
-
spawnParticle
public void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count) - Specified by:
spawnParticlein interfaceorg.bukkit.entity.Player
-
spawnParticle
public void spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count) - Specified by:
spawnParticlein interfaceorg.bukkit.entity.Player
-
spawnParticle
public <T> void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, T data) - Specified by:
spawnParticlein interfaceorg.bukkit.entity.Player
-
spawnParticle
public <T> void spawnParticle(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(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ) - Specified by:
spawnParticlein interfaceorg.bukkit.entity.Player
-
spawnParticle
public void spawnParticle(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(org.bukkit.Particle particle, 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(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(org.bukkit.Particle particle, 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(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(org.bukkit.Particle particle, 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(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
public org.bukkit.advancement.AdvancementProgress getAdvancementProgress(org.bukkit.advancement.Advancement advancement) - Specified by:
getAdvancementProgressin interfaceorg.bukkit.entity.Player
-
getClientViewDistance
public int getClientViewDistance()- Specified by:
getClientViewDistancein interfaceorg.bukkit.entity.Player
-
locale
- Specified by:
localein interfaceorg.bukkit.entity.Player
-
getPing
public int getPing()- Specified by:
getPingin interfaceorg.bukkit.entity.Player
-
getLocale
- Specified by:
getLocalein interfaceorg.bukkit.entity.Player
-
getAffectsSpawning
public boolean getAffectsSpawning()- Specified by:
getAffectsSpawningin interfaceorg.bukkit.entity.Player
-
updateCommands
public void updateCommands()- Specified by:
updateCommandsin interfaceorg.bukkit.entity.Player
-
openBook
public void openBook(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) - Specified by:
openBookin 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
-
kickPlayer
- Specified by:
kickPlayerin interfaceorg.bukkit.entity.Player
-
kickPlayer
-
kick
public void kick(@Nullable @Nullable net.kyori.adventure.text.Component component) - Specified by:
kickin interfaceorg.bukkit.entity.Player
-
performCommand
- Specified by:
performCommandin interfaceorg.bukkit.entity.Player
-
chat
- Specified by:
chatin interfaceorg.bukkit.entity.Player
-
chat
Says a message (or runs a command).- Parameters:
text- message sent by the player.async- whether the message was received asynchronously.
-
saveData
public void saveData()- Specified by:
saveDatain interfaceorg.bukkit.entity.Player
-
saveData
public void saveData(boolean async) Saves the players current location, health, inventory, motion, and other information into the username.dat file, in the world/player folder.- Parameters:
async- if true, save asynchronously; if false, block until saved
-
loadData
public void loadData()- Specified by:
loadDatain interfaceorg.bukkit.entity.Player
-
setTexturePack
Deprecated.- Specified by:
setTexturePackin interfaceorg.bukkit.entity.Player
-
setResourcePack
- Specified by:
setResourcePackin interfaceorg.bukkit.entity.Player
-
setResourcePack
- Specified by:
setResourcePackin interfaceorg.bukkit.entity.Player
-
setResourcePack
- Specified by:
setResourcePackin interfaceorg.bukkit.entity.Player
-
getResourcePackStatus
public org.bukkit.event.player.PlayerResourcePackStatusEvent.Status getResourcePackStatus()- Specified by:
getResourcePackStatusin interfaceorg.bukkit.entity.Player
-
setResourcePackStatus
public void setResourcePackStatus(org.bukkit.event.player.PlayerResourcePackStatusEvent.Status status) -
getResourcePackHash
- Specified by:
getResourcePackHashin interfaceorg.bukkit.entity.Player
-
hasResourcePack
public boolean hasResourcePack()- Specified by:
hasResourcePackin interfaceorg.bukkit.entity.Player
-
getPlayerProfile
public com.destroystokyo.paper.profile.PlayerProfile getPlayerProfile()- Specified by:
getPlayerProfilein interfaceorg.bukkit.entity.Player
-
setPlayerProfile
public void setPlayerProfile(com.destroystokyo.paper.profile.PlayerProfile playerProfile) - 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> clientOption) - Specified by:
getClientOptionin interfaceorg.bukkit.entity.Player
-
boostElytra
@Nullable public @Nullable org.bukkit.entity.Firework boostElytra(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) - Specified by:
boostElytrain interfaceorg.bukkit.entity.Player
-
sendOpLevel
public void sendOpLevel(byte b) - Specified by:
sendOpLevelin interfaceorg.bukkit.entity.Player
-
getTrackedPlayers
- Specified by:
getTrackedPlayersin interfaceorg.bukkit.entity.Player
-
getClientBrandName
- Specified by:
getClientBrandNamein interfaceorg.bukkit.entity.Player
-
playNote
public void playNote(org.bukkit.Location loc, org.bukkit.Instrument instrument, org.bukkit.Note note) - Specified by:
playNotein interfaceorg.bukkit.entity.Player
-
playNote
public void playNote(org.bukkit.Location loc, byte instrument, byte note) - Specified by:
playNotein interfaceorg.bukkit.entity.Player
-
playEffect
public void playEffect(org.bukkit.Location loc, org.bukkit.Effect effect, int data) - Specified by:
playEffectin interfaceorg.bukkit.entity.Player
-
playEffect
public <T> void playEffect(org.bukkit.Location loc, org.bukkit.Effect effect, T data) - Specified by:
playEffectin interfaceorg.bukkit.entity.Player
-
playSound
public void playSound(org.bukkit.Location location, org.bukkit.Sound sound, float volume, float pitch) - Specified by:
playSoundin interfaceorg.bukkit.entity.Player
-
playSound
- Specified by:
playSoundin interfaceorg.bukkit.entity.Player
-
playSound
public void playSound(org.bukkit.Location location, String sound, org.bukkit.SoundCategory category, float volume, float pitch) - Specified by:
playSoundin interfaceorg.bukkit.entity.Player
-
playSound
public void playSound(org.bukkit.Location location, org.bukkit.Sound sound, org.bukkit.SoundCategory category, float volume, float pitch) - Specified by:
playSoundin interfaceorg.bukkit.entity.Player
-
stopSound
public void stopSound(org.bukkit.Sound sound) - Specified by:
stopSoundin interfaceorg.bukkit.entity.Player
-
stopSound
public void stopSound(org.bukkit.Sound sound, org.bukkit.SoundCategory soundCategory) - Specified by:
stopSoundin interfaceorg.bukkit.entity.Player
-
stopSound
- Specified by:
stopSoundin interfaceorg.bukkit.entity.Player
-
stopSound
public void stopSound(org.bukkit.SoundCategory category, org.bukkit.Sound sound) -
stopSound
- Specified by:
stopSoundin interfaceorg.bukkit.entity.Player
-
spigot
public 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 classGlowEntity
-
getEntitySpawnReason
public @NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason getEntitySpawnReason()- Specified by:
getEntitySpawnReasonin interfaceorg.bukkit.entity.Entity- Overrides:
getEntitySpawnReasonin classGlowEntity
-
showParticle
public void showParticle(org.bukkit.Location loc, org.bukkit.Effect particle, org.bukkit.material.MaterialData material, float offsetX, float offsetY, float offsetZ, float speed, int amount) Sends aPlayParticleMessageto display the given particle.- Parameters:
loc- the locationparticle- the particle typematerial- the item or block dataoffsetX- TODO: document this parameteroffsetY- TODO: document this parameteroffsetZ- TODO: document this parameterspeed- TODO: document this parameteramount- the number of particles
-
sendBlockChange
public void sendBlockChange(@NotNull @NotNull org.bukkit.Location loc, org.bukkit.Material type, byte data) - Specified by:
sendBlockChangein interfaceorg.bukkit.entity.Player
-
sendBlockChange
public void sendBlockChange(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.block.data.BlockData blockData) - Specified by:
sendBlockChangein interfaceorg.bukkit.entity.Player
-
sendBlockChange
Sends the givenBlockChangeMessageif it's in a chunk this player can see.- Parameters:
message- the message to send
-
sendBlockChangeForce
Deprecated. -
sendBlockDamage
public void sendBlockDamage(@NotNull @NotNull org.bukkit.Location location, float v) - Specified by:
sendBlockDamagein interfaceorg.bukkit.entity.Player
-
sendChunkChange
public boolean sendChunkChange(org.bukkit.Location loc, int sx, int sy, int sz, byte[] data) - Specified by:
sendChunkChangein interfaceorg.bukkit.entity.Player
-
sendSignChange
public void sendSignChange(@NotNull @NotNull org.bukkit.Location location, @Nullable @Nullable List<net.kyori.adventure.text.Component> list) throws IllegalArgumentException - Specified by:
sendSignChangein interfaceorg.bukkit.entity.Player- Throws:
IllegalArgumentException
-
sendSignChange
public void sendSignChange(@NotNull @NotNull org.bukkit.Location location, @Nullable @Nullable List<net.kyori.adventure.text.Component> list, @NotNull @NotNull org.bukkit.DyeColor dyeColor) throws IllegalArgumentException - Specified by:
sendSignChangein interfaceorg.bukkit.entity.Player- Throws:
IllegalArgumentException
-
sendSignChange
public void sendSignChange(org.bukkit.Location location, String[] lines) throws IllegalArgumentException - Specified by:
sendSignChangein interfaceorg.bukkit.entity.Player- Throws:
IllegalArgumentException
-
sendSignChange
public void sendSignChange(@NotNull @NotNull org.bukkit.Location location, @Nullable @Nullable String[] strings, @NotNull @NotNull org.bukkit.DyeColor dyeColor) throws IllegalArgumentException - Specified by:
sendSignChangein interfaceorg.bukkit.entity.Player- Throws:
IllegalArgumentException
-
sendSignChange
public void sendSignChange(SignEntity sign, org.bukkit.Location location, TextMessage[] lines) throws IllegalArgumentException Send a sign change, similar tosendSignChange(Location, String[]), but using complete TextMessages instead of strings.- Parameters:
sign- the signlocation- the location of the signlines- the new text on the sign or null to clear it- Throws:
IllegalArgumentException- if location is nullIllegalArgumentException- if lines is non-null and has a length less than 4
-
sendBlockEntityChange
public void sendBlockEntityChange(org.bukkit.Location location, GlowBlockEntity type, CompoundTag nbt) Send a block entity change to the given location.- Parameters:
location- The location of the block entity.type- The type of block entity being sent.nbt- The NBT structure to send to the client.
-
sendMap
public void sendMap(org.bukkit.map.MapView map) - Specified by:
sendMapin interfaceorg.bukkit.entity.Player
-
setTitleTimes
public void setTitleTimes(int fadeInTicks, int stayTicks, int fadeOutTicks) - Specified by:
setTitleTimesin interfaceorg.bukkit.entity.Player
-
setSubtitle
public void setSubtitle(net.md_5.bungee.api.chat.BaseComponent[] subtitle) - Specified by:
setSubtitlein interfaceorg.bukkit.entity.Player
-
setSubtitle
public void setSubtitle(net.md_5.bungee.api.chat.BaseComponent subtitle) - Specified by:
setSubtitlein interfaceorg.bukkit.entity.Player
-
showTitle
public void showTitle(net.md_5.bungee.api.chat.BaseComponent[] title) - Specified by:
showTitlein interfaceorg.bukkit.entity.Player
-
showTitle
public void showTitle(net.md_5.bungee.api.chat.BaseComponent title) - Specified by:
showTitlein interfaceorg.bukkit.entity.Player
-
showTitle
public void showTitle(net.md_5.bungee.api.chat.BaseComponent[] title, net.md_5.bungee.api.chat.BaseComponent[] subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks) - Specified by:
showTitlein interfaceorg.bukkit.entity.Player
-
showTitle
public void showTitle(net.md_5.bungee.api.chat.BaseComponent title, net.md_5.bungee.api.chat.BaseComponent subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks) - Specified by:
showTitlein interfaceorg.bukkit.entity.Player
-
sendTitle
public void sendTitle(com.destroystokyo.paper.Title title) - Specified by:
sendTitlein interfaceorg.bukkit.entity.Player
-
sendTitle
- Specified by:
sendTitlein interfaceorg.bukkit.entity.Player
-
sendTitle
- Specified by:
sendTitlein interfaceorg.bukkit.entity.Player
-
sendTitle
public void sendTitle(com.destroystokyo.paper.Title.Builder title) Send the player a title base on aTitle.Builder.- Parameters:
title- theTitle.Builderto send the player
-
sendTitle
public void sendTitle()Send the player their current title. -
updateTitle
public void updateTitle(com.destroystokyo.paper.Title title) - Specified by:
updateTitlein interfaceorg.bukkit.entity.Player
-
updateTitle
Update a specific attribute of the player's title.- Parameters:
action- the attribute to updatevalue- the value of the attribute
-
hideTitle
public void hideTitle()- Specified by:
hideTitlein interfaceorg.bukkit.entity.Player
-
getStatistic
- Specified by:
getStatisticin interfaceorg.bukkit.OfflinePlayer- Throws:
IllegalArgumentException
-
getStatistic
public int getStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material) throws IllegalArgumentException - Specified by:
getStatisticin interfaceorg.bukkit.OfflinePlayer- Throws:
IllegalArgumentException
-
getStatistic
public int getStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType) throws IllegalArgumentException - Specified by:
getStatisticin interfaceorg.bukkit.OfflinePlayer- Throws:
IllegalArgumentException
-
setStatistic
public void setStatistic(org.bukkit.Statistic statistic, int newValue) throws IllegalArgumentException - Specified by:
setStatisticin interfaceorg.bukkit.OfflinePlayer- Throws:
IllegalArgumentException
-
setStatistic
public void setStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material, int newValue) throws IllegalArgumentException - Specified by:
setStatisticin interfaceorg.bukkit.OfflinePlayer- Throws:
IllegalArgumentException
-
setStatistic
public void setStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType, int newValue) - Specified by:
setStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(org.bukkit.Statistic statistic) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(org.bukkit.Statistic statistic, int amount) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material, int amount) - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
incrementStatistic
public void incrementStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType) throws IllegalArgumentException - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer- Throws:
IllegalArgumentException
-
incrementStatistic
public void incrementStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType, int amount) throws IllegalArgumentException - Specified by:
incrementStatisticin interfaceorg.bukkit.OfflinePlayer- Throws:
IllegalArgumentException
-
decrementStatistic
- Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer- Throws:
IllegalArgumentException
-
decrementStatistic
public void decrementStatistic(org.bukkit.Statistic statistic, int amount) throws IllegalArgumentException - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer- Throws:
IllegalArgumentException
-
decrementStatistic
public void decrementStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material) throws IllegalArgumentException - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer- Throws:
IllegalArgumentException
-
decrementStatistic
public void decrementStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material, int amount) throws IllegalArgumentException - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer- Throws:
IllegalArgumentException
-
decrementStatistic
public void decrementStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType) throws IllegalArgumentException - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer- Throws:
IllegalArgumentException
-
decrementStatistic
public void decrementStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType, int amount) - Specified by:
decrementStatisticin interfaceorg.bukkit.OfflinePlayer
-
getStatisticMap
-
sendStats
public void sendStats() -
updateInventory
public void updateInventory()- Specified by:
updateInventoryin interfaceorg.bukkit.entity.Player
-
sendItemChange
public void sendItemChange(int slot, org.bukkit.inventory.ItemStack item) Sends aSetWindowSlotMessageto update the contents of an inventory slot.- Parameters:
slot- the slot IDitem- the new contents
-
setItemOnCursor
public void setItemOnCursor(org.bukkit.inventory.ItemStack item) Description copied from class:GlowHumanEntityThe item the player has on their cursor.- Specified by:
setItemOnCursorin interfaceorg.bukkit.entity.HumanEntity- Overrides:
setItemOnCursorin classGlowHumanEntity
-
hasCooldown
public boolean hasCooldown(org.bukkit.Material material) - Specified by:
hasCooldownin interfaceorg.bukkit.entity.HumanEntity
-
getCooldown
public int getCooldown(org.bukkit.Material material) - Specified by:
getCooldownin interfaceorg.bukkit.entity.HumanEntity
-
setCooldown
public void setCooldown(org.bukkit.Material material, int ticks) - Specified by:
setCooldownin interfaceorg.bukkit.entity.HumanEntity
-
isDeeplySleeping
public boolean isDeeplySleeping()- Specified by:
isDeeplySleepingin interfaceorg.bukkit.entity.HumanEntity
-
getPotentialBedLocation
@Nullable public @Nullable org.bukkit.Location getPotentialBedLocation()- Specified by:
getPotentialBedLocationin interfaceorg.bukkit.entity.HumanEntity
-
getMainHand
public org.bukkit.inventory.MainHand getMainHand()- Specified by:
getMainHandin interfaceorg.bukkit.entity.HumanEntity
-
setWindowProperty
public boolean setWindowProperty(org.bukkit.inventory.InventoryView.Property prop, int value) - Specified by:
setWindowPropertyin interfaceorg.bukkit.entity.HumanEntity- Overrides:
setWindowPropertyin classGlowHumanEntity
-
openInventory
public void openInventory(org.bukkit.inventory.InventoryView view) - Specified by:
openInventoryin interfaceorg.bukkit.entity.HumanEntity- Overrides:
openInventoryin classGlowHumanEntity
-
openMerchant
public org.bukkit.inventory.InventoryView openMerchant(org.bukkit.entity.Villager villager, boolean b) - Specified by:
openMerchantin interfaceorg.bukkit.entity.HumanEntity
-
openMerchant
public org.bukkit.inventory.InventoryView openMerchant(org.bukkit.inventory.Merchant merchant, boolean b) - Specified by:
openMerchantin interfaceorg.bukkit.entity.HumanEntity
-
openAnvil
@Nullable public @Nullable org.bukkit.inventory.InventoryView openAnvil(@Nullable @Nullable org.bukkit.Location location, boolean b) - Specified by:
openAnvilin interfaceorg.bukkit.entity.HumanEntity
-
openCartographyTable
@Nullable public @Nullable org.bukkit.inventory.InventoryView openCartographyTable(@Nullable @Nullable org.bukkit.Location location, boolean b) - Specified by:
openCartographyTablein interfaceorg.bukkit.entity.HumanEntity
-
openGrindstone
@Nullable public @Nullable org.bukkit.inventory.InventoryView openGrindstone(@Nullable @Nullable org.bukkit.Location location, boolean b) - Specified by:
openGrindstonein interfaceorg.bukkit.entity.HumanEntity
-
openLoom
@Nullable public @Nullable org.bukkit.inventory.InventoryView openLoom(@Nullable @Nullable org.bukkit.Location location, boolean b) - Specified by:
openLoomin interfaceorg.bukkit.entity.HumanEntity
-
openSmithingTable
@Nullable public @Nullable org.bukkit.inventory.InventoryView openSmithingTable(@Nullable @Nullable org.bukkit.Location location, boolean b) - Specified by:
openSmithingTablein interfaceorg.bukkit.entity.HumanEntity
-
openStonecutter
@Nullable public @Nullable org.bukkit.inventory.InventoryView openStonecutter(@Nullable @Nullable org.bukkit.Location location, boolean b) - Specified by:
openStonecutterin interfaceorg.bukkit.entity.HumanEntity
-
drop
Description copied from class:GlowHumanEntitySpawns a newGlowItemin the world, as if this HumanEntity had dropped it.Note that this does NOT remove the item from the inventory.
- Overrides:
dropin classGlowHumanEntity- Parameters:
stack- The item to drop- Returns:
- the GlowItem that was generated, or null if the spawning was cancelled
-
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
-
resetPlayerTime
public void resetPlayerTime()- Specified by:
resetPlayerTimein interfaceorg.bukkit.entity.Player
-
sendTime
public void sendTime()Sends aTimeMessagewith the time of day. -
getPlayerWeather
public org.bukkit.WeatherType getPlayerWeather()- Specified by:
getPlayerWeatherin interfaceorg.bukkit.entity.Player
-
setPlayerWeather
public void setPlayerWeather(org.bukkit.WeatherType type) - Specified by:
setPlayerWeatherin interfaceorg.bukkit.entity.Player
-
resetPlayerWeather
public void resetPlayerWeather()- Specified by:
resetPlayerWeatherin interfaceorg.bukkit.entity.Player
-
sendWeather
public void sendWeather()Sends aStateChangeMessagewith the current weather. -
sendRainDensity
public void sendRainDensity() -
sendSkyDarkness
public void sendSkyDarkness() -
hidePlayer
public void hidePlayer(org.bukkit.entity.Player player) - Specified by:
hidePlayerin interfaceorg.bukkit.entity.Player
-
hidePlayer
public void hidePlayer(org.bukkit.plugin.Plugin plugin, org.bukkit.entity.Player player) - Specified by:
hidePlayerin interfaceorg.bukkit.entity.Player
-
showPlayer
public void showPlayer(org.bukkit.entity.Player player) - Specified by:
showPlayerin interfaceorg.bukkit.entity.Player
-
showPlayer
public void showPlayer(org.bukkit.plugin.Plugin plugin, org.bukkit.entity.Player player) - Specified by:
showPlayerin interfaceorg.bukkit.entity.Player
-
canSee
public boolean canSee(org.bukkit.entity.Player player) - Specified by:
canSeein interfaceorg.bukkit.entity.Player
-
stopHidingDisconnectedPlayer
public void stopHidingDisconnectedPlayer(org.bukkit.entity.Player player) Called when a player hidden to this player disconnects. This is necessary so the player is visible again after they reconnected.- Parameters:
player- The disconnected player
-
getScoreboard
public org.bukkit.scoreboard.Scoreboard getScoreboard()- Specified by:
getScoreboardin interfaceorg.bukkit.entity.Player
-
setScoreboard
public void setScoreboard(org.bukkit.scoreboard.Scoreboard scoreboard) throws IllegalArgumentException, IllegalStateException - Specified by:
setScoreboardin interfaceorg.bukkit.entity.Player- Throws:
IllegalArgumentExceptionIllegalStateException
-
isConversing
public boolean isConversing()- Specified by:
isConversingin interfaceorg.bukkit.conversations.Conversable
-
acceptConversationInput
- Specified by:
acceptConversationInputin interfaceorg.bukkit.conversations.Conversable
-
beginConversation
public boolean beginConversation(org.bukkit.conversations.Conversation conversation) - Specified by:
beginConversationin interfaceorg.bukkit.conversations.Conversable
-
abandonConversation
public void abandonConversation(org.bukkit.conversations.Conversation conversation) - Specified by:
abandonConversationin interfaceorg.bukkit.conversations.Conversable
-
abandonConversation
public void abandonConversation(org.bukkit.conversations.Conversation conversation, org.bukkit.conversations.ConversationAbandonedEvent details) - Specified by:
abandonConversationin interfaceorg.bukkit.conversations.Conversable
-
sendPluginMessage
- Specified by:
sendPluginMessagein interfaceorg.bukkit.plugin.messaging.PluginMessageRecipient
-
getListeningPluginChannels
- Specified by:
getListeningPluginChannelsin interfaceorg.bukkit.plugin.messaging.PluginMessageRecipient
-
addChannel
Add a listening channel to this player.- Parameters:
channel- The channel to add.
-
removeChannel
Remove a listening channel from this player.- Parameters:
channel- The channel to remove.
-
enchanted
public void enchanted(int clicked) Updates level after enchanting.- Parameters:
clicked- the enchanting-table slot used: 0 for top, 1 for middle, 2 for bottom
-
getTitle
public com.destroystokyo.paper.Title getTitle() -
clearTitle
public void clearTitle()- Specified by:
clearTitlein interfacenet.kyori.adventure.audience.Audience
-
setOnGround
public void setOnGround(boolean onGround) Description copied from class:GlowEntitySets the on-ground flag and clears fall distance.- Overrides:
setOnGroundin classGlowLivingEntity- Parameters:
onGround- true if this entity is now on the ground; false otherwise
-
resetTitle
public void resetTitle()- Specified by:
resetTitlein interfacenet.kyori.adventure.audience.Audience- Specified by:
resetTitlein interfaceorg.bukkit.entity.Player
-
setDigging
Starts breaking a block.- Parameters:
block- the block to start breaking
-
isInWater
public boolean isInWater()Returns true if the player is inside a water block.- Specified by:
isInWaterin interfaceorg.bukkit.entity.Entity- Overrides:
isInWaterin classGlowEntity- Returns:
- True if entity is in water.
-
playAnimationToSelf
public void playAnimationToSelf(org.bukkit.EntityAnimation animation) - Specified by:
playAnimationToSelfin interfaceorg.bukkit.entity.Player
-
addBossBar
public void addBossBar(org.bukkit.boss.BossBar bar) Add a boss bar.- Parameters:
bar- the boss bar to add
-
removeBossBar
public void removeBossBar(org.bukkit.boss.BossBar bar) Remove a boss bar.- Parameters:
bar- the boss bar to remove
-
getBossBars
Returns a collection of the boss bars this player sees.- Returns:
- the boss bars this player sees
-
getOpenWindowId
public int getOpenWindowId()Gets the currently open window ID.- Returns:
- the currently open window ID, -1 if there is no open window
-
getSession
The network session attached to this player.- Returns:
- The GlowSession of the player.
-
getFirstPlayed
public long getFirstPlayed()The time the player first played, or 0 if unknown.- Specified by:
getFirstPlayedin interfaceorg.bukkit.OfflinePlayer
-
getLastPlayed
public long getLastPlayed()The time the player last played, or 0 if unknown.- Specified by:
getLastPlayedin interfaceorg.bukkit.OfflinePlayer
-
getRecipeMonitor
-
setAffectsSpawning
public void setAffectsSpawning(boolean affectsSpawning) - Specified by:
setAffectsSpawningin interfaceorg.bukkit.entity.Player
-
getJoinTime
public long getJoinTime()The time the player joined, in milliseconds, to be saved as last played time.- Returns:
- The player's join time.
-
getTotalExperience
public int getTotalExperience()Cumulative amount of experience points the player has collected.- Specified by:
getTotalExperiencein interfaceorg.bukkit.entity.Player
-
getLevel
public int getLevel()The current level (or skill point amount) of the player.- Specified by:
getLevelin interfaceorg.bukkit.entity.Player
-
getExp
public float getExp()The progress made to the next level, from 0 to 1.- Specified by:
getExpin interfaceorg.bukkit.entity.Player
-
getFoodLevel
public int getFoodLevel()The human entity's current food level.- Specified by:
getFoodLevelin interfaceorg.bukkit.entity.HumanEntity
-
getExhaustion
public float getExhaustion()The player's current exhaustion level.- Specified by:
getExhaustionin interfaceorg.bukkit.entity.HumanEntity
-
setExhaustion
public void setExhaustion(float exhaustion) The player's current exhaustion level.- Specified by:
setExhaustionin interfaceorg.bukkit.entity.HumanEntity
-
getSaturation
public float getSaturation()The player's current saturation level.- Specified by:
getSaturationin interfaceorg.bukkit.entity.HumanEntity
-
isHealthScaled
public boolean isHealthScaled()Whether to perform special scaling of the player's health.- Specified by:
isHealthScaledin interfaceorg.bukkit.entity.Player
-
getHealthScale
public double getHealthScale()The scale at which to display the player's health.- Specified by:
getHealthScalein interfaceorg.bukkit.entity.Player
-
isSeenCredits
public boolean isSeenCredits()If this player has seen the end credits. -
setSeenCredits
public void setSeenCredits(boolean seenCredits) If this player has seen the end credits. -
isPlayerTimeRelative
public boolean isPlayerTimeRelative()Whether the time offset is relative.- Specified by:
isPlayerTimeRelativein interfaceorg.bukkit.entity.Player
-
getCompassTarget
public org.bukkit.Location getCompassTarget()The player's compass target.- Specified by:
getCompassTargetin interfaceorg.bukkit.entity.Player
-
isBedSpawnForced
public boolean isBedSpawnForced()Whether to use the bed spawn even if there is no bed block.- Returns:
- Whether the player is forced to spawn at their bed.
-
getHurtDirection
public float getHurtDirection()Description copied from class:GlowLivingEntityThe entity's hurt direction (angle).- Specified by:
getHurtDirectionin interfaceorg.bukkit.entity.LivingEntity- Overrides:
getHurtDirectionin classGlowLivingEntity
-
setHurtDirection
public void setHurtDirection(float hurtDirection) Description copied from class:GlowLivingEntityThe entity's hurt direction (angle).- Specified by:
setHurtDirectionin interfaceorg.bukkit.entity.LivingEntity- Overrides:
setHurtDirectionin classGlowLivingEntity
-
isFlying
public boolean isFlying()Whether the player is currently flying.- Specified by:
isFlyingin interfaceorg.bukkit.entity.Player
-
getFlySpeed
public float getFlySpeed()The player's base flight speed.- Specified by:
getFlySpeedin interfaceorg.bukkit.entity.Player
-
getWalkSpeed
public float getWalkSpeed()The player's base walking speed.- Specified by:
getWalkSpeedin interfaceorg.bukkit.entity.Player
-
getDigging
The one block the player is currently digging. -
getUsageItem
public org.bukkit.inventory.ItemStack getUsageItem()The one itemstack the player is currently usage and associated time. -
setUsageItem
public void setUsageItem(org.bukkit.inventory.ItemStack usageItem) The one itemstack the player is currently usage and associated time. -
getUsageTime
public int getUsageTime() -
getStartingUsageTime
public int getStartingUsageTime() -
getEnderPearlCooldown
public int getEnderPearlCooldown()The player's ender pearl cooldown game tick counter. 1 second, or 20 game ticks by default. The player can use ender pearl again if equals 0. -
setEnderPearlCooldown
public void setEnderPearlCooldown(int enderPearlCooldown) The player's ender pearl cooldown game tick counter. 1 second, or 20 game ticks by default. The player can use ender pearl again if equals 0. -
getPlayerListHeader
- Specified by:
getPlayerListHeaderin interfaceorg.bukkit.entity.Player
-
setPlayerListHeader
- Specified by:
setPlayerListHeaderin interfaceorg.bukkit.entity.Player
-