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, sleeping
deathTicks, health, maxHealth, movement, speed, taskManager
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 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
Message s 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, setXpSeed
addPotionEffect, 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, updatePotionEffectsMetadata
addPassenger, 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, updateBoundingBox
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
banPlayerFull, banPlayerFull, banPlayerFull, banPlayerFull, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP, banPlayerIP
closeInventory, closeInventory, getEnderChest, getGameMode, getInventory, getItemInHand, getItemOnCursor, getName, getOpenInventory, getShoulderEntityLeft, getShoulderEntityRight, getSleepTicks, isBlocking, isSleeping, openEnchanting, openInventory, openSign, openWorkbench, releaseLeftShoulderEntity, releaseRightShoulderEntity, setItemInHand, setShoulderEntityLeft, setShoulderEntityRight
addPotionEffect, 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, setShieldBlockingDelay
getHealth, getMaxHealth, resetMaxHealth
addPassenger, 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, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
public 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 GlowEntity
public void damage(double amount)
damage
in interface org.bukkit.entity.Damageable
damage
in class GlowEntity
public void damage(double amount, org.bukkit.entity.Entity cause)
damage
in interface org.bukkit.entity.Damageable
damage
in class GlowEntity
public void damage(double amount, org.bukkit.entity.Entity source, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
damage
in interface org.bukkit.entity.Damageable
damage
in class GlowLivingEntity
public void damage(double amount, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
damage
in interface org.bukkit.entity.Damageable
damage
in class GlowEntity
public boolean canTakeDamage(org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause)
GlowLivingEntity
Usually used to check environmental sources such as drowning.
canTakeDamage
in class GlowHumanEntity
damageCause
- the damage source to checkpublic void remove()
remove
in interface org.bukkit.entity.Entity
remove
in class GlowEntity
public void remove(boolean async)
async
- if true, the player's data is saved asynchronouslypublic boolean shouldSave()
GlowEntity
shouldSave
in class GlowEntity
public void pulse()
GlowEntity
pulse
in class GlowHumanEntity
protected void pulsePhysics()
pulsePhysics
in class GlowLivingEntity
protected void jump()
jump
in class GlowLivingEntity
public 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.Entity
setVelocity
in class GlowEntity
public void setSettings(ClientSettings settings)
settings
- The settings to set.public Map<String,Object> serialize()
serialize
in interface org.bukkit.configuration.serialization.ConfigurationSerializable
public org.bukkit.entity.EntityType getType()
getType
in interface org.bukkit.entity.Entity
getType
in class GlowEntity
public InetSocketAddress getAddress()
getAddress
in interface com.destroystokyo.paper.network.NetworkClient
getAddress
in interface org.bukkit.entity.Player
public int getProtocolVersion()
getProtocolVersion
in interface com.destroystokyo.paper.network.NetworkClient
@Nullable public InetSocketAddress getVirtualHost()
getVirtualHost
in interface com.destroystokyo.paper.network.NetworkClient
public boolean isOnline()
isOnline
in interface org.bukkit.OfflinePlayer
public boolean isBanned()
isBanned
in interface org.bukkit.OfflinePlayer
public boolean isWhitelisted()
isWhitelisted
in interface org.bukkit.OfflinePlayer
protected boolean hasDefaultLandingBehavior()
GlowEntity
GlowEntity.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 GlowEntity
GlowEntity.setOnGround(boolean)
from GlowEntity.setRawLocation(Location,
boolean)
; false otherwisepublic void setWhitelisted(boolean value)
setWhitelisted
in interface org.bukkit.OfflinePlayer
public org.bukkit.entity.Player getPlayer()
getPlayer
in interface org.bukkit.OfflinePlayer
public boolean hasPlayedBefore()
hasPlayedBefore
in interface org.bukkit.OfflinePlayer
public boolean isOp()
GlowHumanEntity
isOp
in interface org.bukkit.permissions.ServerOperator
isOp
in class GlowHumanEntity
public void setOp(boolean value)
GlowEntity
setOp
in interface org.bukkit.permissions.ServerOperator
setOp
in class GlowHumanEntity
public List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntity
Message
s which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage
in class GlowHumanEntity
public String getDisplayName()
getDisplayName
in interface org.bukkit.entity.Player
public void setDisplayName(String name)
setDisplayName
in interface org.bukkit.entity.Player
public String getPlayerListName()
getPlayerListName
in interface org.bukkit.entity.Player
public void setPlayerListName(String name)
setPlayerListName
in interface org.bukkit.entity.Player
public void setCompassTarget(org.bukkit.Location loc)
setCompassTarget
in interface org.bukkit.entity.Player
public org.bukkit.Location getBedSpawnLocation()
getBedSpawnLocation
in interface org.bukkit.entity.Player
getBedSpawnLocation
in interface org.bukkit.OfflinePlayer
public void setBedSpawnLocation(org.bukkit.Location bedSpawn)
setBedSpawnLocation
in interface org.bukkit.entity.Player
public void setBedSpawnLocation(org.bukkit.Location location, boolean force)
setBedSpawnLocation
in interface org.bukkit.entity.Player
public boolean isSleepingIgnored()
isSleepingIgnored
in interface org.bukkit.entity.Player
public void setSleepingIgnored(boolean isSleeping)
setSleepingIgnored
in interface org.bukkit.entity.Player
public void setGameMode(org.bukkit.GameMode mode)
GlowHumanEntity
setGameMode
in interface org.bukkit.entity.HumanEntity
setGameMode
in class GlowHumanEntity
public org.bukkit.inventory.ItemStack getActiveItem()
getActiveItem
in interface org.bukkit.entity.LivingEntity
getActiveItem
in class GlowLivingEntity
public void setUsageTime(int usageTime)
public int getItemUseRemainingTime()
getItemUseRemainingTime
in interface org.bukkit.entity.LivingEntity
getItemUseRemainingTime
in class GlowLivingEntity
public int getHandRaisedTime()
getHandRaisedTime
in interface org.bukkit.entity.LivingEntity
getHandRaisedTime
in class GlowLivingEntity
public boolean isHandRaised()
isHandRaised
in interface org.bukkit.entity.HumanEntity
isHandRaised
in interface org.bukkit.entity.LivingEntity
isHandRaised
in class GlowLivingEntity
public boolean isSneaking()
isSneaking
in interface org.bukkit.entity.Player
public void setSneaking(boolean sneak)
setSneaking
in interface org.bukkit.entity.Player
public boolean isSprinting()
isSprinting
in interface org.bukkit.entity.Player
public void setSprinting(boolean sprinting)
setSprinting
in interface org.bukkit.entity.Player
public double getEyeHeight()
getEyeHeight
in interface org.bukkit.entity.LivingEntity
getEyeHeight
in class GlowLivingEntity
public double getEyeHeight(boolean ignoreSneaking)
getEyeHeight
in interface org.bukkit.entity.LivingEntity
getEyeHeight
in class GlowLivingEntity
public boolean getAllowFlight()
getAllowFlight
in interface org.bukkit.entity.Player
public void setAllowFlight(boolean flight)
setAllowFlight
in interface org.bukkit.entity.Player
public void setFlying(boolean value)
setFlying
in interface org.bukkit.entity.Player
public void setFlySpeed(float value) throws IllegalArgumentException
setFlySpeed
in interface org.bukkit.entity.Player
IllegalArgumentException
public void setWalkSpeed(float value) throws IllegalArgumentException
setWalkSpeed
in interface org.bukkit.entity.Player
IllegalArgumentException
public void setLevel(int level)
setLevel
in interface org.bukkit.entity.Player
public void setTotalExperience(int exp)
setTotalExperience
in interface org.bukkit.entity.Player
public void giveExp(int xp)
giveExp
in interface org.bukkit.entity.Player
public void giveExp(int xp, boolean applyMending)
giveExp
in interface org.bukkit.entity.Player
public int applyMending(int amount)
applyMending
in interface org.bukkit.entity.Player
public void giveExpLevels(int amount)
giveExpLevels
in interface org.bukkit.entity.Player
public void setExp(float percentToLevel)
setExp
in interface org.bukkit.entity.Player
public int getExpToLevel()
getExpToLevel
in interface org.bukkit.entity.HumanEntity
getExpToLevel
in class GlowHumanEntity
public 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.Damageable
setHealth
in class GlowLivingEntity
public void setMaxHealth(double health)
setMaxHealth
in interface org.bukkit.entity.Damageable
setMaxHealth
in class GlowLivingEntity
public void setHealthScaled(boolean scale)
setHealthScaled
in interface org.bukkit.entity.Player
public void setHealthScale(double scale) throws IllegalArgumentException
setHealthScale
in interface org.bukkit.entity.Player
IllegalArgumentException
public org.bukkit.entity.Entity getSpectatorTarget()
getSpectatorTarget
in interface org.bukkit.entity.Player
public void setSpectatorTarget(org.bukkit.entity.Entity entity)
setSpectatorTarget
in interface org.bukkit.entity.Player
public 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.Player
public 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.Player
public boolean teleport(org.bukkit.Location location)
teleport
in interface org.bukkit.entity.Entity
teleport
in class GlowEntity
location
- 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.Entity
teleport
in class GlowEntity
public void endTeleport()
protected boolean teleportToSpawn()
GlowEntity
teleportToSpawn
in class GlowEntity
true
if the teleport was successful.protected boolean teleportToEnd()
GlowEntity
teleportToEnd
in class GlowEntity
true
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.CommandSender
sendMessage
in class GlowEntity
public void sendMessage(String[] messages)
sendMessage
in interface org.bukkit.command.CommandSender
sendMessage
in class GlowEntity
public void sendMessage(net.md_5.bungee.api.chat.BaseComponent component)
sendMessage
in interface org.bukkit.command.CommandSender
sendMessage
in interface org.bukkit.entity.Player
public void sendMessage(net.md_5.bungee.api.chat.BaseComponent... components)
sendMessage
in interface org.bukkit.command.CommandSender
sendMessage
in interface org.bukkit.entity.Player
public void sendMessage(net.md_5.bungee.api.ChatMessageType chatMessageType, net.md_5.bungee.api.chat.BaseComponent... baseComponents)
sendMessage
in interface org.bukkit.entity.Player
public void sendRawMessage(String message)
sendRawMessage
in interface org.bukkit.conversations.Conversable
sendRawMessage
in interface org.bukkit.entity.Player
public void sendActionBar(String message)
sendActionBar
in interface org.bukkit.entity.Player
public void sendActionBar(char alternateChar, String message)
sendActionBar
in interface org.bukkit.entity.Player
public void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count)
spawnParticle
in interface org.bukkit.entity.Player
public void spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count)
spawnParticle
in interface org.bukkit.entity.Player
public <T> void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, T data)
spawnParticle
in interface org.bukkit.entity.Player
public <T> void spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, T data)
spawnParticle
in interface org.bukkit.entity.Player
public void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ)
spawnParticle
in interface org.bukkit.entity.Player
public 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.Player
public <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.Player
public <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.Player
public 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.Player
public 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.Player
public <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.Player
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)
spawnParticle
in interface org.bukkit.entity.Player
public org.bukkit.advancement.AdvancementProgress getAdvancementProgress(org.bukkit.advancement.Advancement advancement)
getAdvancementProgress
in interface org.bukkit.entity.Player
public String getLocale()
getLocale
in interface org.bukkit.entity.Player
public boolean getAffectsSpawning()
getAffectsSpawning
in interface org.bukkit.entity.Player
public int getViewDistance()
getViewDistance
in interface org.bukkit.entity.Player
public void setViewDistance(int viewDistance)
setViewDistance
in interface org.bukkit.entity.Player
public void kickPlayer(String message)
kickPlayer
in interface org.bukkit.entity.Player
public void kickPlayer(String message, boolean async)
public boolean performCommand(String command)
performCommand
in interface org.bukkit.entity.Player
public void chat(String text)
chat
in interface org.bukkit.entity.Player
public 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.Player
public 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.Player
public void setResourcePack(String url)
setResourcePack
in interface org.bukkit.entity.Player
public void setResourcePack(String url, byte[] hash)
setResourcePack
in interface org.bukkit.entity.Player
public void setResourcePack(String url, String hash)
setResourcePack
in interface org.bukkit.entity.Player
public org.bukkit.event.player.PlayerResourcePackStatusEvent.Status getResourcePackStatus()
getResourcePackStatus
in interface org.bukkit.entity.Player
public void setResourcePackStatus(org.bukkit.event.player.PlayerResourcePackStatusEvent.Status status)
public String getResourcePackHash()
getResourcePackHash
in interface org.bukkit.entity.Player
public boolean hasResourcePack()
hasResourcePack
in interface org.bukkit.entity.Player
public com.destroystokyo.paper.profile.PlayerProfile getPlayerProfile()
getPlayerProfile
in interface org.bukkit.entity.Player
public void setPlayerProfile(com.destroystokyo.paper.profile.PlayerProfile playerProfile)
setPlayerProfile
in interface org.bukkit.entity.Player
public void playNote(org.bukkit.Location loc, org.bukkit.Instrument instrument, org.bukkit.Note note)
playNote
in interface org.bukkit.entity.Player
public void playNote(org.bukkit.Location loc, byte instrument, byte note)
playNote
in interface org.bukkit.entity.Player
public void playEffect(org.bukkit.Location loc, org.bukkit.Effect effect, int data)
playEffect
in interface org.bukkit.entity.Player
public <T> void playEffect(org.bukkit.Location loc, org.bukkit.Effect effect, T data)
playEffect
in interface org.bukkit.entity.Player
public void playSound(org.bukkit.Location location, org.bukkit.Sound sound, float volume, float pitch)
playSound
in interface org.bukkit.entity.Player
public void playSound(org.bukkit.Location location, String sound, float volume, float pitch)
playSound
in interface org.bukkit.entity.Player
public void playSound(org.bukkit.Location location, String sound, org.bukkit.SoundCategory category, float volume, float pitch)
playSound
in interface org.bukkit.entity.Player
public void playSound(org.bukkit.Location location, org.bukkit.Sound sound, org.bukkit.SoundCategory category, float volume, float pitch)
playSound
in interface org.bukkit.entity.Player
public void stopSound(org.bukkit.Sound sound)
stopSound
in interface org.bukkit.entity.Player
public void stopSound(org.bukkit.SoundCategory category)
public void stopSound(org.bukkit.Sound sound, org.bukkit.SoundCategory soundCategory)
stopSound
in interface org.bukkit.entity.Player
public void stopSound(String sound, org.bukkit.SoundCategory category)
stopSound
in interface org.bukkit.entity.Player
public void stopSound(org.bukkit.SoundCategory category, org.bukkit.Sound sound)
public void stopSound(String sound)
stopSound
in interface org.bukkit.entity.Player
public void stopAllSounds()
public org.bukkit.entity.Player.Spigot spigot()
spigot
in interface org.bukkit.command.CommandSender
spigot
in interface org.bukkit.entity.Entity
spigot
in interface org.bukkit.entity.Player
spigot
in class GlowEntity
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)
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.Player
public void sendBlockChange(org.bukkit.Location loc, int material, byte data)
sendBlockChange
in interface org.bukkit.entity.Player
public 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.Player
public void sendSignChange(org.bukkit.Location location, String[] lines) throws IllegalArgumentException
sendSignChange
in interface org.bukkit.entity.Player
IllegalArgumentException
public 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.Player
public void setPlayerListHeaderFooter(net.md_5.bungee.api.chat.BaseComponent[] header, net.md_5.bungee.api.chat.BaseComponent[] footer)
setPlayerListHeaderFooter
in interface org.bukkit.entity.Player
public void setPlayerListHeaderFooter(net.md_5.bungee.api.chat.BaseComponent header, net.md_5.bungee.api.chat.BaseComponent footer)
setPlayerListHeaderFooter
in interface org.bukkit.entity.Player
public void setTitleTimes(int fadeInTicks, int stayTicks, int fadeOutTicks)
setTitleTimes
in interface org.bukkit.entity.Player
public void setSubtitle(net.md_5.bungee.api.chat.BaseComponent[] subtitle)
setSubtitle
in interface org.bukkit.entity.Player
public void setSubtitle(net.md_5.bungee.api.chat.BaseComponent subtitle)
setSubtitle
in interface org.bukkit.entity.Player
public void showTitle(net.md_5.bungee.api.chat.BaseComponent[] title)
showTitle
in interface org.bukkit.entity.Player
public void showTitle(net.md_5.bungee.api.chat.BaseComponent title)
showTitle
in interface org.bukkit.entity.Player
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)
showTitle
in interface org.bukkit.entity.Player
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)
showTitle
in interface org.bukkit.entity.Player
public void sendTitle(com.destroystokyo.paper.Title title)
sendTitle
in interface org.bukkit.entity.Player
public void sendTitle(String title, String subtitle)
sendTitle
in interface org.bukkit.entity.Player
public void sendTitle(String title, String subtitle, int fadeIn, int stay, int fadeOut)
sendTitle
in interface org.bukkit.entity.Player
public 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.Player
public 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.Player
public boolean hasAchievement(org.bukkit.Achievement achievement)
hasAchievement
in interface org.bukkit.entity.Player
public void awardAchievement(org.bukkit.Achievement achievement)
awardAchievement
in interface org.bukkit.entity.Player
public 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.Player
public int getStatistic(org.bukkit.Statistic statistic) throws IllegalArgumentException
getStatistic
in interface org.bukkit.entity.Player
IllegalArgumentException
public int getStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material) throws IllegalArgumentException
getStatistic
in interface org.bukkit.entity.Player
IllegalArgumentException
public int getStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType) throws IllegalArgumentException
getStatistic
in interface org.bukkit.entity.Player
IllegalArgumentException
public void setStatistic(org.bukkit.Statistic statistic, int newValue) throws IllegalArgumentException
setStatistic
in interface org.bukkit.entity.Player
IllegalArgumentException
public void setStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material, int newValue) throws IllegalArgumentException
setStatistic
in interface org.bukkit.entity.Player
IllegalArgumentException
public void setStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType, int newValue)
setStatistic
in interface org.bukkit.entity.Player
public void incrementStatistic(org.bukkit.Statistic statistic)
incrementStatistic
in interface org.bukkit.entity.Player
public void incrementStatistic(org.bukkit.Statistic statistic, int amount)
incrementStatistic
in interface org.bukkit.entity.Player
public void incrementStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material)
incrementStatistic
in interface org.bukkit.entity.Player
public void incrementStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material, int amount)
incrementStatistic
in interface org.bukkit.entity.Player
public void incrementStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType) throws IllegalArgumentException
incrementStatistic
in interface org.bukkit.entity.Player
IllegalArgumentException
public void incrementStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType, int amount) throws IllegalArgumentException
incrementStatistic
in interface org.bukkit.entity.Player
IllegalArgumentException
public void decrementStatistic(org.bukkit.Statistic statistic) throws IllegalArgumentException
decrementStatistic
in interface org.bukkit.entity.Player
IllegalArgumentException
public void decrementStatistic(org.bukkit.Statistic statistic, int amount) throws IllegalArgumentException
decrementStatistic
in interface org.bukkit.entity.Player
IllegalArgumentException
public void decrementStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material) throws IllegalArgumentException
decrementStatistic
in interface org.bukkit.entity.Player
IllegalArgumentException
public void decrementStatistic(org.bukkit.Statistic statistic, org.bukkit.Material material, int amount) throws IllegalArgumentException
decrementStatistic
in interface org.bukkit.entity.Player
IllegalArgumentException
public void decrementStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType) throws IllegalArgumentException
decrementStatistic
in interface org.bukkit.entity.Player
IllegalArgumentException
public void decrementStatistic(org.bukkit.Statistic statistic, org.bukkit.entity.EntityType entityType, int amount)
decrementStatistic
in interface org.bukkit.entity.Player
public StatisticMap getStatisticMap()
public void sendStats()
public void updateInventory()
updateInventory
in interface org.bukkit.entity.Player
public 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)
GlowHumanEntity
setItemOnCursor
in interface org.bukkit.entity.HumanEntity
setItemOnCursor
in class GlowHumanEntity
public boolean hasCooldown(org.bukkit.Material material)
hasCooldown
in interface org.bukkit.entity.HumanEntity
public int getCooldown(org.bukkit.Material material)
getCooldown
in interface org.bukkit.entity.HumanEntity
public void setCooldown(org.bukkit.Material material, int ticks)
setCooldown
in interface org.bukkit.entity.HumanEntity
public org.bukkit.inventory.MainHand getMainHand()
getMainHand
in interface org.bukkit.entity.HumanEntity
public boolean setWindowProperty(org.bukkit.inventory.InventoryView.Property prop, int value)
setWindowProperty
in interface org.bukkit.entity.HumanEntity
setWindowProperty
in class GlowHumanEntity
public void openInventory(org.bukkit.inventory.InventoryView view)
openInventory
in interface org.bukkit.entity.HumanEntity
openInventory
in class GlowHumanEntity
public org.bukkit.inventory.InventoryView openMerchant(org.bukkit.entity.Villager villager, boolean b)
openMerchant
in interface org.bukkit.entity.HumanEntity
public org.bukkit.inventory.InventoryView openMerchant(org.bukkit.inventory.Merchant merchant, boolean b)
openMerchant
in interface org.bukkit.entity.HumanEntity
public GlowItem drop(org.bukkit.inventory.ItemStack stack)
GlowHumanEntity
GlowItem
in the world, as if this HumanEntity had dropped it.
Note that this does NOT remove the item from the inventory.
drop
in class GlowHumanEntity
stack
- The item to droppublic void setPlayerTime(long time, boolean relative)
setPlayerTime
in interface org.bukkit.entity.Player
public long getPlayerTime()
getPlayerTime
in interface org.bukkit.entity.Player
public long getPlayerTimeOffset()
getPlayerTimeOffset
in interface org.bukkit.entity.Player
public void resetPlayerTime()
resetPlayerTime
in interface org.bukkit.entity.Player
public void sendTime()
TimeMessage
with the time of day.public org.bukkit.WeatherType getPlayerWeather()
getPlayerWeather
in interface org.bukkit.entity.Player
public void setPlayerWeather(org.bukkit.WeatherType type)
setPlayerWeather
in interface org.bukkit.entity.Player
public void resetPlayerWeather()
resetPlayerWeather
in interface org.bukkit.entity.Player
public 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.Player
public void hidePlayer(org.bukkit.plugin.Plugin plugin, org.bukkit.entity.Player player)
hidePlayer
in interface org.bukkit.entity.Player
public void showPlayer(org.bukkit.entity.Player player)
showPlayer
in interface org.bukkit.entity.Player
public void showPlayer(org.bukkit.plugin.Plugin plugin, org.bukkit.entity.Player player)
showPlayer
in interface org.bukkit.entity.Player
public boolean canSee(org.bukkit.entity.Player player)
canSee
in interface org.bukkit.entity.Player
public void stopHidingDisconnectedPlayer(org.bukkit.entity.Player player)
player
- The disconnected playerpublic org.bukkit.scoreboard.Scoreboard getScoreboard()
getScoreboard
in interface org.bukkit.entity.Player
public void setScoreboard(org.bukkit.scoreboard.Scoreboard scoreboard) throws IllegalArgumentException, IllegalStateException
setScoreboard
in interface org.bukkit.entity.Player
IllegalArgumentException
IllegalStateException
public boolean isConversing()
isConversing
in interface org.bukkit.conversations.Conversable
public void acceptConversationInput(String input)
acceptConversationInput
in interface org.bukkit.conversations.Conversable
public boolean beginConversation(org.bukkit.conversations.Conversation conversation)
beginConversation
in interface org.bukkit.conversations.Conversable
public void abandonConversation(org.bukkit.conversations.Conversation conversation)
abandonConversation
in interface org.bukkit.conversations.Conversable
public void abandonConversation(org.bukkit.conversations.Conversation conversation, org.bukkit.conversations.ConversationAbandonedEvent details)
abandonConversation
in interface org.bukkit.conversations.Conversable
public void sendPluginMessage(org.bukkit.plugin.Plugin source, String channel, byte[] message)
sendPluginMessage
in interface org.bukkit.plugin.messaging.PluginMessageRecipient
public Set<String> getListeningPluginChannels()
getListeningPluginChannels
in interface org.bukkit.plugin.messaging.PluginMessageRecipient
public 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)
GlowEntity
setOnGround
in class GlowLivingEntity
onGround
- true if this entity is now on the ground; false otherwisepublic void resetTitle()
resetTitle
in interface org.bukkit.entity.Player
public 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.Player
public 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.OfflinePlayer
public long getLastPlayed()
getLastPlayed
in interface org.bukkit.OfflinePlayer
public PlayerRecipeMonitor getRecipeMonitor()
public void setAffectsSpawning(boolean affectsSpawning)
setAffectsSpawning
in interface org.bukkit.entity.Player
public long getJoinTime()
public int getTotalExperience()
getTotalExperience
in interface org.bukkit.entity.Player
public int getLevel()
getLevel
in interface org.bukkit.entity.Player
public float getExp()
getExp
in interface org.bukkit.entity.Player
public int getFoodLevel()
getFoodLevel
in interface org.bukkit.entity.Player
public float getExhaustion()
getExhaustion
in interface org.bukkit.entity.Player
public void setExhaustion(float exhaustion)
setExhaustion
in interface org.bukkit.entity.Player
public float getSaturation()
getSaturation
in interface org.bukkit.entity.Player
public boolean isHealthScaled()
isHealthScaled
in interface org.bukkit.entity.Player
public double getHealthScale()
getHealthScale
in interface org.bukkit.entity.Player
public boolean isSeenCredits()
public void setSeenCredits(boolean seenCredits)
public boolean isPlayerTimeRelative()
isPlayerTimeRelative
in interface org.bukkit.entity.Player
public org.bukkit.Location getCompassTarget()
getCompassTarget
in interface org.bukkit.entity.Player
public boolean isBedSpawnForced()
public boolean isFlying()
isFlying
in interface org.bukkit.entity.Player
public float getFlySpeed()
getFlySpeed
in interface org.bukkit.entity.Player
public float getWalkSpeed()
getWalkSpeed
in interface org.bukkit.entity.Player
public 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.