public class GlowPlayer extends GlowHumanEntity implements org.bukkit.entity.Player
| Modifier and Type | Field and Description |
|---|---|
boolean |
affectsSpawning |
static int |
HOOK_MAX_DISTANCE
Max distance of a fishing hook.
|
org.bukkit.Location |
teleportedTo |
permissions, sleepingdeathTicks, health, maxHealth, movement, speed, taskManageractive, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock| Constructor and Description |
|---|
GlowPlayer(GlowSession session,
GlowPlayerProfile profile,
PlayerDataService.PlayerReader reader)
Creates a new player and adds it to the world.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abandonConversation(org.bukkit.conversations.Conversation conversation) |
void |
abandonConversation(org.bukkit.conversations.Conversation conversation,
org.bukkit.conversations.ConversationAbandonedEvent details) |
void |
acceptConversationInput(String input) |
void |
addBossBar(org.bukkit.boss.BossBar bar)
Add a boss bar.
|
void |
addChannel(String channel)
Add a listening channel to this player.
|
void |
addExhaustion(float exhaustion)
Increases the exhaustion counter, but applies the maximum.
|
void |
addMoveExhaustion(org.bukkit.Location move)
Add the exhaustion for sprinting from the given location to the current location, if this
player is sprinting.
|
int |
applyMending(int amount) |
void |
awardAchievement(org.bukkit.Achievement achievement) |
boolean |
awardAchievement(org.bukkit.Achievement achievement,
boolean awardParents)
Awards the given achievement if the player already has the parent achievement, otherwise does
nothing.
|
boolean |
beginConversation(org.bukkit.conversations.Conversation conversation) |
boolean |
canSee(org.bukkit.entity.Player player) |
boolean |
canSeeChunk(GlowChunk.Key chunk)
Checks whether the player can see the given chunk.
|
boolean |
canSeeEntity(GlowEntity entity)
Checks whether the player can see the given entity.
|
boolean |
canTakeDamage(org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause)
Get whether this entity should take damage from the specified source.
|
void |
chat(String text) |
void |
chat(String text,
boolean async)
Says a message (or runs a command).
|
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.
|
void |
clearTitle() |
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Messages which can be sent to a client to spawn this entity. |
void |
damage(double amount) |
void |
damage(double amount,
org.bukkit.entity.Entity cause) |
void |
damage(double amount,
org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) |
void |
damage(double amount,
org.bukkit.entity.Entity source,
org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) |
void |
decrementStatistic(org.bukkit.Statistic statistic) |
void |
decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType) |
void |
decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType,
int amount) |
void |
decrementStatistic(org.bukkit.Statistic statistic,
int amount) |
void |
decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material) |
void |
decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material,
int amount) |
GlowItem |
drop(org.bukkit.inventory.ItemStack stack)
Spawns a new
GlowItem in the world, as if this HumanEntity had dropped it. |
void |
enchanted(int clicked)
Updates level after enchanting.
|
void |
endTeleport()
Finishes the teleport process.
|
void |
enterBed(GlowBlock block)
This player enters the specified bed and is marked as sleeping.
|
org.bukkit.inventory.ItemStack |
getActiveItem() |
InetSocketAddress |
getAddress() |
org.bukkit.advancement.AdvancementProgress |
getAdvancementProgress(org.bukkit.advancement.Advancement advancement) |
boolean |
getAffectsSpawning() |
boolean |
getAllowFlight() |
org.bukkit.Location |
getBedSpawnLocation() |
Collection<org.bukkit.boss.BossBar> |
getBossBars()
Returns a collection of the boss bars this player sees.
|
org.bukkit.Location |
getCompassTarget()
The player's compass target.
|
int |
getCooldown(org.bukkit.Material material) |
GlowFishingHook |
getCurrentFishingHook()
Returns the current fishing hook.
|
GlowBlock |
getDigging()
The one block the player is currently digging.
|
String |
getDisplayName() |
int |
getEnderPearlCooldown()
The player's ender pearl cooldown game tick counter.
|
float |
getExhaustion()
The player's current exhaustion level.
|
float |
getExp()
The progress made to the next level, from 0 to 1.
|
int |
getExpToLevel() |
double |
getEyeHeight() |
double |
getEyeHeight(boolean ignoreSneaking) |
long |
getFirstPlayed()
The time the player first played, or 0 if unknown.
|
float |
getFlySpeed()
The player's base flight speed.
|
int |
getFoodLevel()
The human entity's current food level.
|
int |
getHandRaisedTime() |
double |
getHealthScale()
The scale at which to display the player's health.
|
int |
getItemUseRemainingTime() |
long |
getJoinTime()
The time the player joined, in milliseconds, to be saved as last played time.
|
long |
getLastPlayed()
The time the player last played, or 0 if unknown.
|
int |
getLevel()
The current level (or skill point amount) of the player.
|
Set<String> |
getListeningPluginChannels() |
String |
getLocale() |
org.bukkit.inventory.MainHand |
getMainHand() |
int |
getOpenWindowId()
Gets the currently open window ID.
|
org.bukkit.entity.Player |
getPlayer() |
String |
getPlayerListName() |
com.destroystokyo.paper.profile.PlayerProfile |
getPlayerProfile() |
long |
getPlayerTime() |
long |
getPlayerTimeOffset() |
org.bukkit.WeatherType |
getPlayerWeather() |
int |
getProtocolVersion() |
PlayerRecipeMonitor |
getRecipeMonitor() |
String |
getResourcePackHash() |
org.bukkit.event.player.PlayerResourcePackStatusEvent.Status |
getResourcePackStatus() |
float |
getSaturation()
The player's current saturation level.
|
org.bukkit.scoreboard.Scoreboard |
getScoreboard() |
GlowSession |
getSession()
The network session attached to this player.
|
org.bukkit.entity.Entity |
getSpectatorTarget() |
int |
getStartingUsageTime() |
int |
getStatistic(org.bukkit.Statistic statistic) |
int |
getStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType) |
int |
getStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material) |
StatisticMap |
getStatisticMap() |
com.destroystokyo.paper.Title |
getTitle() |
int |
getTotalExperience()
Cumulative amount of experience points the player has collected.
|
org.bukkit.entity.EntityType |
getType() |
Collection<org.bukkit.inventory.Recipe> |
getUnlockedRecipes()
Recipes this player has unlocked.
|
org.bukkit.inventory.ItemStack |
getUsageItem()
The one itemstack the player is currently usage and associated time.
|
int |
getUsageTime() |
UserListItemMessage.Entry |
getUserListEntry()
Get a UserListItemMessage entry representing adding this player.
|
int |
getViewDistance() |
InetSocketAddress |
getVirtualHost() |
float |
getWalkSpeed()
The player's base walking speed.
|
void |
giveExp(int xp) |
void |
giveExp(int xp,
boolean applyMending) |
void |
giveExpLevels(int amount) |
boolean |
hasAchievement(org.bukkit.Achievement achievement) |
boolean |
hasCooldown(org.bukkit.Material material) |
protected boolean |
hasDefaultLandingBehavior()
If true,
GlowEntity.setRawLocation(Location, boolean) with fall true will call
GlowEntity.setOnGround(boolean) according to whether or not our location is inside a solid
block. |
boolean |
hasJoined() |
boolean |
hasPlayedBefore() |
boolean |
hasResourcePack() |
void |
hidePlayer(org.bukkit.entity.Player player) |
void |
hidePlayer(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player player) |
void |
hideTitle() |
void |
incrementStatistic(org.bukkit.Statistic statistic) |
void |
incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType) |
void |
incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType,
int amount) |
void |
incrementStatistic(org.bukkit.Statistic statistic,
int amount) |
void |
incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material) |
void |
incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material,
int amount) |
boolean |
isBanned() |
boolean |
isBedSpawnForced()
Whether to use the bed spawn even if there is no bed block.
|
boolean |
isConversing() |
boolean |
isFlying()
Whether the player is currently flying.
|
boolean |
isHandRaised() |
boolean |
isHealthScaled()
Whether to perform special scaling of the player's health.
|
boolean |
isInWater()
Returns true if the player is inside a water block.
|
boolean |
isOnline() |
boolean |
isOp()
Whether this human is considered an op.
|
boolean |
isPlayerTimeRelative()
Whether the time offset is relative.
|
boolean |
isSeenCredits()
If this player has seen the end credits.
|
boolean |
isSleepingIgnored() |
boolean |
isSneaking() |
boolean |
isSprinting() |
boolean |
isWhitelisted() |
void |
join(GlowSession session,
PlayerDataService.PlayerReader reader)
Loads the player's state and sends the messages that are necessary on login.
|
protected void |
jump() |
void |
kickPlayer(String message) |
void |
kickPlayer(String message,
boolean async) |
boolean |
knowsRecipe(org.bukkit.inventory.Recipe recipe)
Checks to see if the player knows this recipe.
|
boolean |
learnRecipe(org.bukkit.inventory.Recipe recipe,
boolean notify)
Teach the player a new recipe.
|
void |
leaveBed(boolean setSpawn)
This player leaves their bed causing them to quit sleeping.
|
void |
loadData() |
void |
openInventory(org.bukkit.inventory.InventoryView view) |
org.bukkit.inventory.InventoryView |
openMerchant(org.bukkit.inventory.Merchant merchant,
boolean b) |
org.bukkit.inventory.InventoryView |
openMerchant(org.bukkit.entity.Villager villager,
boolean b) |
void |
openSignEditor(org.bukkit.Location loc)
Open the sign editor interface at the specified location.
|
boolean |
performCommand(String command) |
void |
playAnimationToSelf(org.bukkit.EntityAnimation animation) |
void |
playEffect(org.bukkit.Location loc,
org.bukkit.Effect effect,
int data) |
<T> void |
playEffect(org.bukkit.Location loc,
org.bukkit.Effect effect,
T data) |
void |
playNote(org.bukkit.Location loc,
byte instrument,
byte note) |
void |
playNote(org.bukkit.Location loc,
org.bukkit.Instrument instrument,
org.bukkit.Note note) |
void |
playSound(org.bukkit.Location location,
org.bukkit.Sound sound,
float volume,
float pitch) |
void |
playSound(org.bukkit.Location location,
org.bukkit.Sound sound,
org.bukkit.SoundCategory category,
float volume,
float pitch) |
void |
playSound(org.bukkit.Location location,
String sound,
float volume,
float pitch) |
void |
playSound(org.bukkit.Location location,
String sound,
org.bukkit.SoundCategory category,
float volume,
float pitch) |
void |
pulse()
Called every game cycle.
|
protected void |
pulsePhysics() |
void |
remove()
Kicks this player.
|
void |
remove(boolean async)
Handle player disconnection.
|
void |
removeAchievement(org.bukkit.Achievement achievement) |
void |
removeBossBar(org.bukkit.boss.BossBar bar)
Remove a boss bar.
|
void |
removeChannel(String channel)
Remove a listening channel from this player.
|
void |
resetPlayerTime() |
void |
resetPlayerWeather() |
void |
resetTitle() |
void |
respawn()
Respawn the player after they have died.
|
void |
saveData() |
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.
|
void |
sendActionBar(char alternateChar,
String message) |
void |
sendActionBar(String message) |
void |
sendBlockChange(BlockChangeMessage message)
Sends the given
BlockChangeMessage if it's in a chunk this player can see. |
void |
sendBlockChange(org.bukkit.Location loc,
int material,
byte data) |
void |
sendBlockChange(org.bukkit.Location loc,
org.bukkit.Material material,
byte data) |
void |
sendBlockChangeForce(BlockChangeMessage message)
Deprecated.
|
void |
sendBlockEntityChange(org.bukkit.Location location,
GlowBlockEntity type,
CompoundTag nbt)
Send a block entity change to the given location.
|
boolean |
sendChunkChange(org.bukkit.Location loc,
int sx,
int sy,
int sz,
byte[] data) |
void |
sendItemChange(int slot,
org.bukkit.inventory.ItemStack item)
Sends a
SetWindowSlotMessage to update the contents of an inventory slot. |
void |
sendMap(org.bukkit.map.MapView map) |
void |
sendMessage(net.md_5.bungee.api.chat.BaseComponent... components) |
void |
sendMessage(net.md_5.bungee.api.chat.BaseComponent component) |
void |
sendMessage(net.md_5.bungee.api.ChatMessageType chatMessageType,
net.md_5.bungee.api.chat.BaseComponent... baseComponents) |
void |
sendMessage(String message) |
void |
sendMessage(String[] messages) |
void |
sendPluginMessage(org.bukkit.plugin.Plugin source,
String channel,
byte[] message) |
void |
sendRainDensity() |
void |
sendRawMessage(String message) |
void |
sendSignChange(org.bukkit.Location location,
String[] lines) |
void |
sendSignChange(SignEntity sign,
org.bukkit.Location location,
TextMessage[] lines)
Send a sign change, similar to
sendSignChange(Location, String[]), but using
complete TextMessages instead of strings. |
void |
sendSkyDarkness() |
void |
sendStats() |
void |
sendTime()
Sends a
TimeMessage with the time of day. |
void |
sendTitle()
Send the player their current title.
|
void |
sendTitle(String title,
String subtitle) |
void |
sendTitle(String title,
String subtitle,
int fadeIn,
int stay,
int fadeOut) |
void |
sendTitle(com.destroystokyo.paper.Title.Builder title)
Send the player a title base on a
Title.Builder. |
void |
sendTitle(com.destroystokyo.paper.Title title) |
void |
sendWeather()
Sends a
StateChangeMessage with the current weather. |
Map<String,Object> |
serialize() |
void |
setAffectsSpawning(boolean affectsSpawning) |
void |
setAllowFlight(boolean flight) |
void |
setBedSpawnLocation(org.bukkit.Location bedSpawn) |
void |
setBedSpawnLocation(org.bukkit.Location location,
boolean force) |
void |
setCompassTarget(org.bukkit.Location loc) |
void |
setCooldown(org.bukkit.Material material,
int ticks) |
void |
setCurrentFishingHook(GlowFishingHook fishingHook)
Removes the current fishing hook, if any, and sets a new one.
|
void |
setDigging(GlowBlock block)
Starts breaking a block.
|
void |
setDisplayName(String name) |
void |
setEnderPearlCooldown(int enderPearlCooldown)
The player's ender pearl cooldown game tick counter.
|
void |
setExhaustion(float exhaustion)
The player's current exhaustion level.
|
void |
setExp(float percentToLevel) |
void |
setFlying(boolean value) |
void |
setFlySpeed(float value) |
void |
setFoodLevel(int food) |
void |
setFoodLevelAndSaturation(int food,
float saturation)
Updates the hunger bar and hunger saturation.
|
void |
setGameMode(org.bukkit.GameMode mode)
The player's active game mode.
|
void |
setHealth(double health) |
void |
setHealthScale(double scale) |
void |
setHealthScaled(boolean scale) |
void |
setItemOnCursor(org.bukkit.inventory.ItemStack item)
The item the player has on their cursor.
|
void |
setLevel(int level) |
void |
setMaxHealth(double health) |
void |
setOnGround(boolean onGround)
Sets the on-ground flag and clears fall distance.
|
void |
setOp(boolean value)
Whether this entity has operator permissions.
|
void |
setPlayerListHeaderFooter(net.md_5.bungee.api.chat.BaseComponent[] header,
net.md_5.bungee.api.chat.BaseComponent[] footer) |
void |
setPlayerListHeaderFooter(net.md_5.bungee.api.chat.BaseComponent header,
net.md_5.bungee.api.chat.BaseComponent footer) |
void |
setPlayerListName(String name) |
void |
setPlayerProfile(com.destroystokyo.paper.profile.PlayerProfile playerProfile) |
void |
setPlayerTime(long time,
boolean relative) |
void |
setPlayerWeather(org.bukkit.WeatherType type) |
void |
setResourcePack(String url) |
void |
setResourcePack(String url,
byte[] hash) |
void |
setResourcePack(String url,
String hash) |
void |
setResourcePackStatus(org.bukkit.event.player.PlayerResourcePackStatusEvent.Status status) |
void |
setSaturation(float value) |
void |
setScoreboard(org.bukkit.scoreboard.Scoreboard scoreboard) |
void |
setSeenCredits(boolean seenCredits)
If this player has seen the end credits.
|
void |
setSettings(ClientSettings settings)
Set this player's client settings.
|
void |
setSleepingIgnored(boolean isSleeping) |
void |
setSneaking(boolean sneak) |
void |
setSpectatorTarget(org.bukkit.entity.Entity entity) |
void |
setSprinting(boolean sprinting) |
void |
setStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType,
int newValue) |
void |
setStatistic(org.bukkit.Statistic statistic,
int newValue) |
void |
setStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material,
int newValue) |
void |
setSubtitle(net.md_5.bungee.api.chat.BaseComponent subtitle) |
void |
setSubtitle(net.md_5.bungee.api.chat.BaseComponent[] subtitle) |
void |
setTexturePack(String url)
Deprecated.
|
void |
setTitleTimes(int fadeInTicks,
int stayTicks,
int fadeOutTicks) |
void |
setTotalExperience(int exp) |
void |
setUsageItem(org.bukkit.inventory.ItemStack usageItem)
The one itemstack the player is currently usage and associated time.
|
void |
setUsageTime(int usageTime) |
void |
setVelocity(org.bukkit.util.Vector velocity) |
void |
setViewDistance(int viewDistance) |
void |
setWalkSpeed(float value) |
void |
setWhitelisted(boolean value) |
boolean |
setWindowProperty(org.bukkit.inventory.InventoryView.Property prop,
int value) |
boolean |
shouldSave()
Checks whether this entity should be saved as part of the world.
|
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 a
PlayParticleMessage to display the given particle. |
void |
showPlayer(org.bukkit.entity.Player player) |
void |
showPlayer(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player player) |
void |
showTitle(net.md_5.bungee.api.chat.BaseComponent title) |
void |
showTitle(net.md_5.bungee.api.chat.BaseComponent[] title) |
void |
showTitle(net.md_5.bungee.api.chat.BaseComponent[] title,
net.md_5.bungee.api.chat.BaseComponent[] subtitle,
int fadeInTicks,
int stayTicks,
int fadeOutTicks) |
void |
showTitle(net.md_5.bungee.api.chat.BaseComponent title,
net.md_5.bungee.api.chat.BaseComponent subtitle,
int fadeInTicks,
int stayTicks,
int fadeOutTicks) |
void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count) |
void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ) |
void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
T data) |
void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count) |
void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ) |
void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
T data) |
org.bukkit.entity.Player.Spigot |
spigot() |
void |
stopAllSounds() |
void |
stopHidingDisconnectedPlayer(org.bukkit.entity.Player player)
Called when a player hidden to this player disconnects.
|
void |
stopSound(org.bukkit.Sound sound) |
void |
stopSound(org.bukkit.SoundCategory category) |
void |
stopSound(org.bukkit.SoundCategory category,
org.bukkit.Sound sound) |
void |
stopSound(org.bukkit.Sound sound,
org.bukkit.SoundCategory soundCategory) |
void |
stopSound(String sound) |
void |
stopSound(String sound,
org.bukkit.SoundCategory category) |
boolean |
teleport(org.bukkit.Location location)
Teleport the player.
|
boolean |
teleport(org.bukkit.Location location,
org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) |
protected boolean |
teleportToEnd()
Teleport this entity to the End.
|
protected boolean |
teleportToSpawn()
Teleport this entity to the spawn point of the main world.
|
String |
toString() |
boolean |
unlearnRecipe(org.bukkit.inventory.Recipe recipe)
Remove a recipe from the player's known recipes.
|
void |
updateInventory() |
void |
updateTitle(com.destroystokyo.paper.Title title) |
void |
updateTitle(TitleMessage.Action action,
Object... value)
Update a specific attribute of the player's title.
|
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, setXpSeedaddPotionEffect, addPotionEffect, addPotionEffects, clearActivePotionEffects, createUpdateMessage, entityInteract, getActivePotionEffects, getAmbientDelay, getAmbientSound, getArrowsStuck, getAttribute, getAttributeManager, getCanPickupItems, getDeathSound, getDeathTicks, getEquipmentMonitor, getEyeLocation, getHeadYaw, getHealth, getHurtSound, getKiller, getLastDamage, getLastDamager, getLastTwoTargetBlocks, getLastTwoTargetBlocks, getLineOfSight, getMaxHealth, getMaximumAir, getMaximumNoDamageTicks, getMovement, getNoDamageTicks, getPlayerDamageTick, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getSoundPitch, getSoundVolume, getSpeed, getState, getTargetBlock, getTargetBlock, getTaskManager, getVelocityFromMovement, hasAI, hasLineOfSight, hasPotionEffect, isArthropod, isCollidable, isFallFlying, isGliding, isUndead, isWithinSolidBlock, launchProjectile, launchProjectile, launchProjectile, launchProjectile, playAnimation, removePotionEffect, reset, resetMaxHealth, setAI, setArrowsStuck, setCanPickupItems, setCollidable, setFallFlying, setGliding, setHeadYaw, setKiller, setLastDamage, setLastDamager, setMaximumAir, setMaximumNoDamageTicks, setMovement, setNoDamageTicks, setPlayerDamageTick, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSpeed, setState, tryUseTotem, updatePotionEffectsMetadataaddPassenger, addScoreboardTag, collide, createAfterSpawnMessage, 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, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getVehicle, getVelocity, getWidth, getWorld, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isLeashed, isOnGround, isRemoved, isSilent, isTeleported, 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, setPortalCooldown, setRawLocation, setRawLocation, setSilent, setSize, setTicksLived, teleport, teleport, updateBoundingBoxclone, finalize, getClass, notify, notifyAll, wait, wait, waitbanPlayerFull, banPlayerFull, banPlayerFull, banPlayerFull, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIPcloseInventory, closeInventory, getEnderChest, getGameMode, getInventory, getItemInHand, getItemOnCursor, getName, getOpenInventory, getShoulderEntityLeft, getShoulderEntityRight, getSleepTicks, isBlocking, isSleeping, openEnchanting, openInventory, openSign, openWorkbench, releaseLeftShoulderEntity, releaseRightShoulderEntity, setItemInHand, setShoulderEntityLeft, setShoulderEntityRightaddPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getArrowsStuck, getCanPickupItems, getEquipment, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, playAnimation, removePotionEffect, setAI, setArrowsStuck, setCanPickupItems, setCollidable, setGliding, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelaygetHealth, getMaxHealth, resetMaxHealthaddPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadataaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentpublic static final int HOOK_MAX_DISTANCE
public org.bukkit.Location teleportedTo
public boolean affectsSpawning
public GlowPlayer(GlowSession session, GlowPlayerProfile profile, PlayerDataService.PlayerReader reader)
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.public GlowFishingHook getCurrentFishingHook()
public boolean hasJoined()
public void join(GlowSession session, PlayerDataService.PlayerReader reader)
session - the player's sessionreader - the source of the player's saved statepublic String toString()
toString in class GlowEntitypublic void damage(double amount)
damage in interface org.bukkit.entity.Damageabledamage in class GlowEntitypublic void damage(double amount,
org.bukkit.entity.Entity cause)
damage in interface org.bukkit.entity.Damageabledamage in class GlowEntitypublic void damage(double amount,
org.bukkit.entity.Entity source,
org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
damage in interface org.bukkit.entity.Damageabledamage in class GlowLivingEntitypublic void damage(double amount,
org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
damage in interface org.bukkit.entity.Damageabledamage in class GlowEntitypublic boolean canTakeDamage(org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause)
GlowLivingEntityUsually used to check environmental sources such as drowning.
canTakeDamage in class GlowHumanEntitydamageCause - the damage source to checkpublic void remove()
remove in interface org.bukkit.entity.Entityremove in class GlowEntitypublic void remove(boolean async)
async - if true, the player's data is saved asynchronouslypublic boolean shouldSave()
GlowEntityshouldSave in class GlowEntitypublic void pulse()
GlowEntitypulse in class GlowHumanEntityprotected void pulsePhysics()
pulsePhysics in class GlowLivingEntityprotected void jump()
jump in class GlowLivingEntitypublic void respawn()
public boolean canSeeChunk(GlowChunk.Key chunk)
chunk - The chunk to check.public boolean canSeeEntity(GlowEntity entity)
entity - The entity to check.public void openSignEditor(org.bukkit.Location loc)
loc - The location to open the editor atpublic boolean checkSignLocation(org.bukkit.Location loc)
loc - The location to checkpublic UserListItemMessage.Entry getUserListEntry()
public void setVelocity(org.bukkit.util.Vector velocity)
setVelocity in interface org.bukkit.entity.EntitysetVelocity in class GlowEntitypublic void setSettings(ClientSettings settings)
settings - The settings to set.public Map<String,Object> serialize()
serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializablepublic org.bukkit.entity.EntityType getType()
getType in interface org.bukkit.entity.EntitygetType in class GlowEntitypublic InetSocketAddress getAddress()
getAddress in interface com.destroystokyo.paper.network.NetworkClientgetAddress in interface org.bukkit.entity.Playerpublic int getProtocolVersion()
getProtocolVersion in interface com.destroystokyo.paper.network.NetworkClient@Nullable public InetSocketAddress getVirtualHost()
getVirtualHost in interface com.destroystokyo.paper.network.NetworkClientpublic boolean isOnline()
isOnline in interface org.bukkit.OfflinePlayerpublic boolean isBanned()
isBanned in interface org.bukkit.OfflinePlayerpublic boolean isWhitelisted()
isWhitelisted in interface org.bukkit.OfflinePlayerprotected boolean hasDefaultLandingBehavior()
GlowEntityGlowEntity.setRawLocation(Location, boolean) with fall true will call
GlowEntity.setOnGround(boolean) according to whether or not our location is inside a solid
block.hasDefaultLandingBehavior in class GlowEntityGlowEntity.setOnGround(boolean) from GlowEntity.setRawLocation(Location,
boolean); false otherwisepublic void setWhitelisted(boolean value)
setWhitelisted in interface org.bukkit.OfflinePlayerpublic org.bukkit.entity.Player getPlayer()
getPlayer in interface org.bukkit.OfflinePlayerpublic boolean hasPlayedBefore()
hasPlayedBefore in interface org.bukkit.OfflinePlayerpublic boolean isOp()
GlowHumanEntityisOp in interface org.bukkit.permissions.ServerOperatorisOp in class GlowHumanEntitypublic void setOp(boolean value)
GlowEntitysetOp in interface org.bukkit.permissions.ServerOperatorsetOp in class GlowHumanEntitypublic List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntityMessages which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage in class GlowHumanEntitypublic String getDisplayName()
getDisplayName in interface org.bukkit.entity.Playerpublic void setDisplayName(String name)
setDisplayName in interface org.bukkit.entity.Playerpublic String getPlayerListName()
getPlayerListName in interface org.bukkit.entity.Playerpublic void setPlayerListName(String name)
setPlayerListName in interface org.bukkit.entity.Playerpublic void setCompassTarget(org.bukkit.Location loc)
setCompassTarget in interface org.bukkit.entity.Playerpublic org.bukkit.Location getBedSpawnLocation()
getBedSpawnLocation in interface org.bukkit.entity.PlayergetBedSpawnLocation in interface org.bukkit.OfflinePlayerpublic void setBedSpawnLocation(org.bukkit.Location bedSpawn)
setBedSpawnLocation in interface org.bukkit.entity.Playerpublic void setBedSpawnLocation(org.bukkit.Location location,
boolean force)
setBedSpawnLocation in interface org.bukkit.entity.Playerpublic boolean isSleepingIgnored()
isSleepingIgnored in interface org.bukkit.entity.Playerpublic void setSleepingIgnored(boolean isSleeping)
setSleepingIgnored in interface org.bukkit.entity.Playerpublic void setGameMode(org.bukkit.GameMode mode)
GlowHumanEntitysetGameMode in interface org.bukkit.entity.HumanEntitysetGameMode in class GlowHumanEntitypublic org.bukkit.inventory.ItemStack getActiveItem()
getActiveItem in interface org.bukkit.entity.LivingEntitygetActiveItem in class GlowLivingEntitypublic void setUsageTime(int usageTime)
public int getItemUseRemainingTime()
getItemUseRemainingTime in interface org.bukkit.entity.LivingEntitygetItemUseRemainingTime in class GlowLivingEntitypublic int getHandRaisedTime()
getHandRaisedTime in interface org.bukkit.entity.LivingEntitygetHandRaisedTime in class GlowLivingEntitypublic boolean isHandRaised()
isHandRaised in interface org.bukkit.entity.HumanEntityisHandRaised in interface org.bukkit.entity.LivingEntityisHandRaised in class GlowLivingEntitypublic boolean isSneaking()
isSneaking in interface org.bukkit.entity.Playerpublic void setSneaking(boolean sneak)
setSneaking in interface org.bukkit.entity.Playerpublic boolean isSprinting()
isSprinting in interface org.bukkit.entity.Playerpublic void setSprinting(boolean sprinting)
setSprinting in interface org.bukkit.entity.Playerpublic double getEyeHeight()
getEyeHeight in interface org.bukkit.entity.LivingEntitygetEyeHeight in class GlowLivingEntitypublic double getEyeHeight(boolean ignoreSneaking)
getEyeHeight in interface org.bukkit.entity.LivingEntitygetEyeHeight in class GlowLivingEntitypublic boolean getAllowFlight()
getAllowFlight in interface org.bukkit.entity.Playerpublic void setAllowFlight(boolean flight)
setAllowFlight in interface org.bukkit.entity.Playerpublic void setFlying(boolean value)
setFlying in interface org.bukkit.entity.Playerpublic void setFlySpeed(float value)
throws IllegalArgumentException
setFlySpeed in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void setWalkSpeed(float value)
throws IllegalArgumentException
setWalkSpeed in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void setLevel(int level)
setLevel in interface org.bukkit.entity.Playerpublic void setTotalExperience(int exp)
setTotalExperience in interface org.bukkit.entity.Playerpublic void giveExp(int xp)
giveExp in interface org.bukkit.entity.Playerpublic void giveExp(int xp,
boolean applyMending)
giveExp in interface org.bukkit.entity.Playerpublic int applyMending(int amount)
applyMending in interface org.bukkit.entity.Playerpublic void giveExpLevels(int amount)
giveExpLevels in interface org.bukkit.entity.Playerpublic void setExp(float percentToLevel)
setExp in interface org.bukkit.entity.Playerpublic int getExpToLevel()
getExpToLevel in interface org.bukkit.entity.HumanEntitygetExpToLevel in class GlowHumanEntitypublic Collection<org.bukkit.inventory.Recipe> getUnlockedRecipes()
public boolean learnRecipe(org.bukkit.inventory.Recipe recipe,
boolean notify)
recipe - The recipe to be added to learnt recipesnotify - If the player should be notified of the recipes learntpublic boolean unlearnRecipe(org.bukkit.inventory.Recipe recipe)
recipe - The recipe to be removed from learnt recipespublic boolean knowsRecipe(org.bukkit.inventory.Recipe recipe)
recipe - The recipe to checkpublic void setHealth(double health)
setHealth in interface org.bukkit.entity.DamageablesetHealth in class GlowLivingEntitypublic void setMaxHealth(double health)
setMaxHealth in interface org.bukkit.entity.DamageablesetMaxHealth in class GlowLivingEntitypublic void setHealthScaled(boolean scale)
setHealthScaled in interface org.bukkit.entity.Playerpublic void setHealthScale(double scale)
throws IllegalArgumentException
setHealthScale in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic org.bukkit.entity.Entity getSpectatorTarget()
getSpectatorTarget in interface org.bukkit.entity.Playerpublic void setSpectatorTarget(org.bukkit.entity.Entity entity)
setSpectatorTarget in interface org.bukkit.entity.Playerpublic void setFoodLevelAndSaturation(int food,
float saturation)
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)public void setFoodLevel(int food)
setFoodLevel in interface org.bukkit.entity.Playerpublic void addExhaustion(float exhaustion)
exhaustion - the amount of exhaustion to addpublic void addMoveExhaustion(org.bukkit.Location move)
move - the previous locationpublic void setSaturation(float value)
setSaturation in interface org.bukkit.entity.Playerpublic boolean teleport(org.bukkit.Location location)
teleport in interface org.bukkit.entity.Entityteleport in class GlowEntitylocation - The destination to teleport to.public boolean teleport(org.bukkit.Location location,
org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause)
teleport in interface org.bukkit.entity.Entityteleport in class GlowEntitypublic void endTeleport()
protected boolean teleportToSpawn()
GlowEntityteleportToSpawn in class GlowEntitytrue if the teleport was successful.protected boolean teleportToEnd()
GlowEntityteleportToEnd in class GlowEntitytrue if the teleport was successful.public void enterBed(GlowBlock block)
block - the bedpublic void leaveBed(boolean setSpawn)
setSpawn - Whether to set the bed spawn of the playerpublic void sendMessage(String message)
sendMessage in interface org.bukkit.command.CommandSendersendMessage in class GlowEntitypublic void sendMessage(String[] messages)
sendMessage in interface org.bukkit.command.CommandSendersendMessage in class GlowEntitypublic void sendMessage(net.md_5.bungee.api.chat.BaseComponent component)
sendMessage in interface org.bukkit.command.CommandSendersendMessage in interface org.bukkit.entity.Playerpublic void sendMessage(net.md_5.bungee.api.chat.BaseComponent... components)
sendMessage in interface org.bukkit.command.CommandSendersendMessage in interface org.bukkit.entity.Playerpublic void sendMessage(net.md_5.bungee.api.ChatMessageType chatMessageType,
net.md_5.bungee.api.chat.BaseComponent... baseComponents)
sendMessage in interface org.bukkit.entity.Playerpublic void sendRawMessage(String message)
sendRawMessage in interface org.bukkit.conversations.ConversablesendRawMessage in interface org.bukkit.entity.Playerpublic void sendActionBar(String message)
sendActionBar in interface org.bukkit.entity.Playerpublic void sendActionBar(char alternateChar,
String message)
sendActionBar in interface org.bukkit.entity.Playerpublic void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count)
spawnParticle in interface org.bukkit.entity.Playerpublic void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count)
spawnParticle in interface org.bukkit.entity.Playerpublic <T> void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
T data)
spawnParticle in interface org.bukkit.entity.Playerpublic <T> void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
T data)
spawnParticle in interface org.bukkit.entity.Playerpublic void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ)
spawnParticle in interface org.bukkit.entity.Playerpublic void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ)
spawnParticle in interface org.bukkit.entity.Playerpublic <T> void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
T data)
spawnParticle in interface org.bukkit.entity.Playerpublic <T> void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
T data)
spawnParticle in interface org.bukkit.entity.Playerpublic void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra)
spawnParticle in interface org.bukkit.entity.Playerpublic void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra)
spawnParticle in interface org.bukkit.entity.Playerpublic <T> void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data)
spawnParticle in interface org.bukkit.entity.Playerpublic <T> void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data)
spawnParticle in interface org.bukkit.entity.Playerpublic org.bukkit.advancement.AdvancementProgress getAdvancementProgress(org.bukkit.advancement.Advancement advancement)
getAdvancementProgress in interface org.bukkit.entity.Playerpublic String getLocale()
getLocale in interface org.bukkit.entity.Playerpublic boolean getAffectsSpawning()
getAffectsSpawning in interface org.bukkit.entity.Playerpublic int getViewDistance()
getViewDistance in interface org.bukkit.entity.Playerpublic void setViewDistance(int viewDistance)
setViewDistance in interface org.bukkit.entity.Playerpublic void kickPlayer(String message)
kickPlayer in interface org.bukkit.entity.Playerpublic void kickPlayer(String message, boolean async)
public boolean performCommand(String command)
performCommand in interface org.bukkit.entity.Playerpublic void chat(String text)
chat in interface org.bukkit.entity.Playerpublic void chat(String text, boolean async)
text - message sent by the player.async - whether the message was received asynchronously.public void saveData()
saveData in interface org.bukkit.entity.Playerpublic void saveData(boolean async)
async - if true, save asynchronously; if false, block until savedpublic void loadData()
loadData in interface org.bukkit.entity.Player@Deprecated public void setTexturePack(String url)
setTexturePack in interface org.bukkit.entity.Playerpublic void setResourcePack(String url)
setResourcePack in interface org.bukkit.entity.Playerpublic void setResourcePack(String url, byte[] hash)
setResourcePack in interface org.bukkit.entity.Playerpublic void setResourcePack(String url, String hash)
setResourcePack in interface org.bukkit.entity.Playerpublic org.bukkit.event.player.PlayerResourcePackStatusEvent.Status getResourcePackStatus()
getResourcePackStatus in interface org.bukkit.entity.Playerpublic void setResourcePackStatus(org.bukkit.event.player.PlayerResourcePackStatusEvent.Status status)
public String getResourcePackHash()
getResourcePackHash in interface org.bukkit.entity.Playerpublic boolean hasResourcePack()
hasResourcePack in interface org.bukkit.entity.Playerpublic com.destroystokyo.paper.profile.PlayerProfile getPlayerProfile()
getPlayerProfile in interface org.bukkit.entity.Playerpublic void setPlayerProfile(com.destroystokyo.paper.profile.PlayerProfile playerProfile)
setPlayerProfile in interface org.bukkit.entity.Playerpublic void playNote(org.bukkit.Location loc,
org.bukkit.Instrument instrument,
org.bukkit.Note note)
playNote in interface org.bukkit.entity.Playerpublic void playNote(org.bukkit.Location loc,
byte instrument,
byte note)
playNote in interface org.bukkit.entity.Playerpublic void playEffect(org.bukkit.Location loc,
org.bukkit.Effect effect,
int data)
playEffect in interface org.bukkit.entity.Playerpublic <T> void playEffect(org.bukkit.Location loc,
org.bukkit.Effect effect,
T data)
playEffect in interface org.bukkit.entity.Playerpublic void playSound(org.bukkit.Location location,
org.bukkit.Sound sound,
float volume,
float pitch)
playSound in interface org.bukkit.entity.Playerpublic void playSound(org.bukkit.Location location,
String sound,
float volume,
float pitch)
playSound in interface org.bukkit.entity.Playerpublic void playSound(org.bukkit.Location location,
String sound,
org.bukkit.SoundCategory category,
float volume,
float pitch)
playSound in interface org.bukkit.entity.Playerpublic void playSound(org.bukkit.Location location,
org.bukkit.Sound sound,
org.bukkit.SoundCategory category,
float volume,
float pitch)
playSound in interface org.bukkit.entity.Playerpublic void stopSound(org.bukkit.Sound sound)
stopSound in interface org.bukkit.entity.Playerpublic void stopSound(org.bukkit.SoundCategory category)
public void stopSound(org.bukkit.Sound sound,
org.bukkit.SoundCategory soundCategory)
stopSound in interface org.bukkit.entity.Playerpublic void stopSound(String sound, org.bukkit.SoundCategory category)
stopSound in interface org.bukkit.entity.Playerpublic void stopSound(org.bukkit.SoundCategory category,
org.bukkit.Sound sound)
public void stopSound(String sound)
stopSound in interface org.bukkit.entity.Playerpublic void stopAllSounds()
public org.bukkit.entity.Player.Spigot spigot()
spigot in interface org.bukkit.command.CommandSenderspigot in interface org.bukkit.entity.Entityspigot in interface org.bukkit.entity.Playerspigot in class GlowEntitypublic 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)
PlayParticleMessage to display the given particle.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 particlespublic void sendBlockChange(org.bukkit.Location loc,
org.bukkit.Material material,
byte data)
sendBlockChange in interface org.bukkit.entity.Playerpublic void sendBlockChange(org.bukkit.Location loc,
int material,
byte data)
sendBlockChange in interface org.bukkit.entity.Playerpublic void sendBlockChange(BlockChangeMessage message)
BlockChangeMessage if it's in a chunk this player can see.message - the message to send@Deprecated public void sendBlockChangeForce(BlockChangeMessage message)
public boolean sendChunkChange(org.bukkit.Location loc,
int sx,
int sy,
int sz,
byte[] data)
sendChunkChange in interface org.bukkit.entity.Playerpublic void sendSignChange(org.bukkit.Location location,
String[] lines)
throws IllegalArgumentException
sendSignChange in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void sendSignChange(SignEntity sign, org.bukkit.Location location, TextMessage[] lines) throws IllegalArgumentException
sendSignChange(Location, String[]), but using
complete TextMessages instead of strings.sign - the signlocation - the location of the signlines - the new text on the sign or null to clear itIllegalArgumentException - if location is nullIllegalArgumentException - if lines is non-null and has a length less than 4public void sendBlockEntityChange(org.bukkit.Location location,
GlowBlockEntity type,
CompoundTag nbt)
location - The location of the block entity.type - The type of block entity being sent.nbt - The NBT structure to send to the client.public void sendMap(org.bukkit.map.MapView map)
sendMap in interface org.bukkit.entity.Playerpublic void setPlayerListHeaderFooter(net.md_5.bungee.api.chat.BaseComponent[] header,
net.md_5.bungee.api.chat.BaseComponent[] footer)
setPlayerListHeaderFooter in interface org.bukkit.entity.Playerpublic void setPlayerListHeaderFooter(net.md_5.bungee.api.chat.BaseComponent header,
net.md_5.bungee.api.chat.BaseComponent footer)
setPlayerListHeaderFooter in interface org.bukkit.entity.Playerpublic void setTitleTimes(int fadeInTicks,
int stayTicks,
int fadeOutTicks)
setTitleTimes in interface org.bukkit.entity.Playerpublic void setSubtitle(net.md_5.bungee.api.chat.BaseComponent[] subtitle)
setSubtitle in interface org.bukkit.entity.Playerpublic void setSubtitle(net.md_5.bungee.api.chat.BaseComponent subtitle)
setSubtitle in interface org.bukkit.entity.Playerpublic void showTitle(net.md_5.bungee.api.chat.BaseComponent[] title)
showTitle in interface org.bukkit.entity.Playerpublic void showTitle(net.md_5.bungee.api.chat.BaseComponent title)
showTitle in interface org.bukkit.entity.Playerpublic void showTitle(net.md_5.bungee.api.chat.BaseComponent[] title,
net.md_5.bungee.api.chat.BaseComponent[] subtitle,
int fadeInTicks,
int stayTicks,
int fadeOutTicks)
showTitle in interface org.bukkit.entity.Playerpublic void showTitle(net.md_5.bungee.api.chat.BaseComponent title,
net.md_5.bungee.api.chat.BaseComponent subtitle,
int fadeInTicks,
int stayTicks,
int fadeOutTicks)
showTitle in interface org.bukkit.entity.Playerpublic void sendTitle(com.destroystokyo.paper.Title title)
sendTitle in interface org.bukkit.entity.Playerpublic void sendTitle(String title, String subtitle)
sendTitle in interface org.bukkit.entity.Playerpublic void sendTitle(String title, String subtitle, int fadeIn, int stay, int fadeOut)
sendTitle in interface org.bukkit.entity.Playerpublic void sendTitle(com.destroystokyo.paper.Title.Builder title)
Title.Builder.title - the Title.Builder to send the playerpublic void sendTitle()
public void updateTitle(com.destroystokyo.paper.Title title)
updateTitle in interface org.bukkit.entity.Playerpublic void updateTitle(TitleMessage.Action action, Object... value)
action - the attribute to updatevalue - the value of the attributepublic void hideTitle()
hideTitle in interface org.bukkit.entity.Playerpublic boolean hasAchievement(org.bukkit.Achievement achievement)
hasAchievement in interface org.bukkit.entity.Playerpublic void awardAchievement(org.bukkit.Achievement achievement)
awardAchievement in interface org.bukkit.entity.Playerpublic boolean awardAchievement(org.bukkit.Achievement achievement,
boolean awardParents)
If awardParents is true, award the player all parent achievements and the given
achievement, making this method equivalent to awardAchievement(Achievement).
achievement - the achievement to award.awardParents - whether parent achievements should be awarded.true if the achievement was awarded, false otherwisepublic void removeAchievement(org.bukkit.Achievement achievement)
removeAchievement in interface org.bukkit.entity.Playerpublic int getStatistic(org.bukkit.Statistic statistic)
throws IllegalArgumentException
getStatistic in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic int getStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material)
throws IllegalArgumentException
getStatistic in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic int getStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType)
throws IllegalArgumentException
getStatistic in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void setStatistic(org.bukkit.Statistic statistic,
int newValue)
throws IllegalArgumentException
setStatistic in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void setStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material,
int newValue)
throws IllegalArgumentException
setStatistic in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void setStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType,
int newValue)
setStatistic in interface org.bukkit.entity.Playerpublic void incrementStatistic(org.bukkit.Statistic statistic)
incrementStatistic in interface org.bukkit.entity.Playerpublic void incrementStatistic(org.bukkit.Statistic statistic,
int amount)
incrementStatistic in interface org.bukkit.entity.Playerpublic void incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material)
incrementStatistic in interface org.bukkit.entity.Playerpublic void incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material,
int amount)
incrementStatistic in interface org.bukkit.entity.Playerpublic void incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType)
throws IllegalArgumentException
incrementStatistic in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void incrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType,
int amount)
throws IllegalArgumentException
incrementStatistic in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void decrementStatistic(org.bukkit.Statistic statistic)
throws IllegalArgumentException
decrementStatistic in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void decrementStatistic(org.bukkit.Statistic statistic,
int amount)
throws IllegalArgumentException
decrementStatistic in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material)
throws IllegalArgumentException
decrementStatistic in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.Material material,
int amount)
throws IllegalArgumentException
decrementStatistic in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType)
throws IllegalArgumentException
decrementStatistic in interface org.bukkit.entity.PlayerIllegalArgumentExceptionpublic void decrementStatistic(org.bukkit.Statistic statistic,
org.bukkit.entity.EntityType entityType,
int amount)
decrementStatistic in interface org.bukkit.entity.Playerpublic StatisticMap getStatisticMap()
public void sendStats()
public void updateInventory()
updateInventory in interface org.bukkit.entity.Playerpublic void sendItemChange(int slot,
org.bukkit.inventory.ItemStack item)
SetWindowSlotMessage to update the contents of an inventory slot.slot - the slot IDitem - the new contentspublic void setItemOnCursor(org.bukkit.inventory.ItemStack item)
GlowHumanEntitysetItemOnCursor in interface org.bukkit.entity.HumanEntitysetItemOnCursor in class GlowHumanEntitypublic boolean hasCooldown(org.bukkit.Material material)
hasCooldown in interface org.bukkit.entity.HumanEntitypublic int getCooldown(org.bukkit.Material material)
getCooldown in interface org.bukkit.entity.HumanEntitypublic void setCooldown(org.bukkit.Material material,
int ticks)
setCooldown in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.MainHand getMainHand()
getMainHand in interface org.bukkit.entity.HumanEntitypublic boolean setWindowProperty(org.bukkit.inventory.InventoryView.Property prop,
int value)
setWindowProperty in interface org.bukkit.entity.HumanEntitysetWindowProperty in class GlowHumanEntitypublic void openInventory(org.bukkit.inventory.InventoryView view)
openInventory in interface org.bukkit.entity.HumanEntityopenInventory in class GlowHumanEntitypublic org.bukkit.inventory.InventoryView openMerchant(org.bukkit.entity.Villager villager,
boolean b)
openMerchant in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.InventoryView openMerchant(org.bukkit.inventory.Merchant merchant,
boolean b)
openMerchant in interface org.bukkit.entity.HumanEntitypublic GlowItem drop(org.bukkit.inventory.ItemStack stack)
GlowHumanEntityGlowItem in the world, as if this HumanEntity had dropped it.
Note that this does NOT remove the item from the inventory.
drop in class GlowHumanEntitystack - The item to droppublic void setPlayerTime(long time,
boolean relative)
setPlayerTime in interface org.bukkit.entity.Playerpublic long getPlayerTime()
getPlayerTime in interface org.bukkit.entity.Playerpublic long getPlayerTimeOffset()
getPlayerTimeOffset in interface org.bukkit.entity.Playerpublic void resetPlayerTime()
resetPlayerTime in interface org.bukkit.entity.Playerpublic void sendTime()
TimeMessage with the time of day.public org.bukkit.WeatherType getPlayerWeather()
getPlayerWeather in interface org.bukkit.entity.Playerpublic void setPlayerWeather(org.bukkit.WeatherType type)
setPlayerWeather in interface org.bukkit.entity.Playerpublic void resetPlayerWeather()
resetPlayerWeather in interface org.bukkit.entity.Playerpublic void sendWeather()
StateChangeMessage with the current weather.public void sendRainDensity()
public void sendSkyDarkness()
public void hidePlayer(org.bukkit.entity.Player player)
hidePlayer in interface org.bukkit.entity.Playerpublic void hidePlayer(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player player)
hidePlayer in interface org.bukkit.entity.Playerpublic void showPlayer(org.bukkit.entity.Player player)
showPlayer in interface org.bukkit.entity.Playerpublic void showPlayer(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player player)
showPlayer in interface org.bukkit.entity.Playerpublic boolean canSee(org.bukkit.entity.Player player)
canSee in interface org.bukkit.entity.Playerpublic void stopHidingDisconnectedPlayer(org.bukkit.entity.Player player)
player - The disconnected playerpublic org.bukkit.scoreboard.Scoreboard getScoreboard()
getScoreboard in interface org.bukkit.entity.Playerpublic void setScoreboard(org.bukkit.scoreboard.Scoreboard scoreboard)
throws IllegalArgumentException,
IllegalStateException
setScoreboard in interface org.bukkit.entity.PlayerIllegalArgumentExceptionIllegalStateExceptionpublic boolean isConversing()
isConversing in interface org.bukkit.conversations.Conversablepublic void acceptConversationInput(String input)
acceptConversationInput in interface org.bukkit.conversations.Conversablepublic boolean beginConversation(org.bukkit.conversations.Conversation conversation)
beginConversation in interface org.bukkit.conversations.Conversablepublic void abandonConversation(org.bukkit.conversations.Conversation conversation)
abandonConversation in interface org.bukkit.conversations.Conversablepublic void abandonConversation(org.bukkit.conversations.Conversation conversation,
org.bukkit.conversations.ConversationAbandonedEvent details)
abandonConversation in interface org.bukkit.conversations.Conversablepublic void sendPluginMessage(org.bukkit.plugin.Plugin source,
String channel,
byte[] message)
sendPluginMessage in interface org.bukkit.plugin.messaging.PluginMessageRecipientpublic Set<String> getListeningPluginChannels()
getListeningPluginChannels in interface org.bukkit.plugin.messaging.PluginMessageRecipientpublic void addChannel(String channel)
channel - The channel to add.public void removeChannel(String channel)
channel - The channel to remove.public void enchanted(int clicked)
clicked - the enchanting-table slot used: 0 for top, 1 for middle, 2 for bottompublic com.destroystokyo.paper.Title getTitle()
public void clearTitle()
public void setOnGround(boolean onGround)
GlowEntitysetOnGround in class GlowLivingEntityonGround - true if this entity is now on the ground; false otherwisepublic void resetTitle()
resetTitle in interface org.bukkit.entity.Playerpublic void setDigging(GlowBlock block)
block - the block to start breakingpublic boolean isInWater()
public void playAnimationToSelf(org.bukkit.EntityAnimation animation)
playAnimationToSelf in interface org.bukkit.entity.Playerpublic void addBossBar(org.bukkit.boss.BossBar bar)
bar - the boss bar to addpublic void removeBossBar(org.bukkit.boss.BossBar bar)
bar - the boss bar to removepublic Collection<org.bukkit.boss.BossBar> getBossBars()
public int getOpenWindowId()
public void setCurrentFishingHook(GlowFishingHook fishingHook)
fishingHook - the new fishing hook, or null to stop fishingpublic GlowSession getSession()
public long getFirstPlayed()
getFirstPlayed in interface org.bukkit.OfflinePlayerpublic long getLastPlayed()
getLastPlayed in interface org.bukkit.OfflinePlayerpublic PlayerRecipeMonitor getRecipeMonitor()
public void setAffectsSpawning(boolean affectsSpawning)
setAffectsSpawning in interface org.bukkit.entity.Playerpublic long getJoinTime()
public int getTotalExperience()
getTotalExperience in interface org.bukkit.entity.Playerpublic int getLevel()
getLevel in interface org.bukkit.entity.Playerpublic float getExp()
getExp in interface org.bukkit.entity.Playerpublic int getFoodLevel()
getFoodLevel in interface org.bukkit.entity.Playerpublic float getExhaustion()
getExhaustion in interface org.bukkit.entity.Playerpublic void setExhaustion(float exhaustion)
setExhaustion in interface org.bukkit.entity.Playerpublic float getSaturation()
getSaturation in interface org.bukkit.entity.Playerpublic boolean isHealthScaled()
isHealthScaled in interface org.bukkit.entity.Playerpublic double getHealthScale()
getHealthScale in interface org.bukkit.entity.Playerpublic boolean isSeenCredits()
public void setSeenCredits(boolean seenCredits)
public boolean isPlayerTimeRelative()
isPlayerTimeRelative in interface org.bukkit.entity.Playerpublic org.bukkit.Location getCompassTarget()
getCompassTarget in interface org.bukkit.entity.Playerpublic boolean isBedSpawnForced()
public boolean isFlying()
isFlying in interface org.bukkit.entity.Playerpublic float getFlySpeed()
getFlySpeed in interface org.bukkit.entity.Playerpublic float getWalkSpeed()
getWalkSpeed in interface org.bukkit.entity.Playerpublic GlowBlock getDigging()
public org.bukkit.inventory.ItemStack getUsageItem()
public void setUsageItem(org.bukkit.inventory.ItemStack usageItem)
public int getUsageTime()
public int getStartingUsageTime()
public int getEnderPearlCooldown()
public void setEnderPearlCooldown(int enderPearlCooldown)
Copyright © 2021. All rights reserved.