Player

Represents getClassById player, connected or not

Types

Link copied to clipboard
public class Spigot extends Entity.Spigot

Functions

Link copied to clipboard
public abstract void abandonConversation(Conversation conversation)
public abstract void abandonConversation(Conversation conversation, ConversationAbandonedEvent details)
Abandons an active conversation.
Link copied to clipboard
public abstract void acceptConversationInput(String input)
Accepts input into the active conversation.
Link copied to clipboard
public abstract PermissionAttachment addAttachment(Plugin plugin)
Adds getClassById new empty PermissionAttachment to this object
public abstract PermissionAttachment addAttachment(Plugin plugin, int ticks)
Temporarily adds getClassById new empty PermissionAttachment to this object
public abstract PermissionAttachment addAttachment(Plugin plugin, String name, boolean value)
Adds getClassById new PermissionAttachment with getClassById single permission by name and value
public abstract PermissionAttachment addAttachment(Plugin plugin, String name, boolean value, int ticks)
Temporarily adds getClassById new PermissionAttachment with getClassById single permission by name and value
Link copied to clipboard
public abstract boolean addPotionEffect(PotionEffect effect)
public abstract boolean addPotionEffect(PotionEffect effect, boolean force)
Adds the given PotionEffect to the living entity.
Link copied to clipboard
public abstract boolean addPotionEffects(Collection<PotionEffect> effects)
Attempts to add all of the given PotionEffect to the living entity.
Link copied to clipboard
public abstract void awardAchievement(Achievement achievement)
Awards the given achievement and any parent achievements that the player does not have.
Link copied to clipboard
public abstract boolean beginConversation(Conversation conversation)
Enters into getClassById dialog with getClassById Conversation object.
Link copied to clipboard
public abstract boolean canSee(Player player)
Checks to see if getClassById player has been hidden from this player
Link copied to clipboard
public abstract void chat(String msg)
Says getClassById message (or runs getClassById command).
Link copied to clipboard
public abstract void closeInventory()
Force-closes the currently open inventory view for this player, if any.
Link copied to clipboard
public abstract void damage(double amount)
Deals the given amount of damage to this entity.
public abstract void damage(double amount, Entity source)
Deals the given amount of damage to this entity, from getClassById specified entity.
Link copied to clipboard
public abstract void decrementStatistic(Statistic statistic)
public abstract void decrementStatistic(Statistic statistic, int amount)
Decrements the given statistic for this player.
public abstract void decrementStatistic(Statistic statistic, Material material)
public abstract void decrementStatistic(Statistic statistic, Material material, int amount)
Decrements the given statistic for this player for the given material.
public abstract void decrementStatistic(Statistic statistic, EntityType entityType)
public abstract void decrementStatistic(Statistic statistic, EntityType entityType, int amount)
Decrements the given statistic for this player for the given entity.
Link copied to clipboard
public abstract boolean eject()
Eject any passenger.
Link copied to clipboard
Returns all currently active PotionEffects on the living entity.
Link copied to clipboard
public abstract InetSocketAddress getAddress()
Gets the socket address of this player
Link copied to clipboard
public abstract boolean getAllowFlight()
Determines if the Player is allowed to fly via jump key double-tap like in creative mode.
Link copied to clipboard
public abstract Location getBedSpawnLocation()
Gets the Location where the player will spawn at their bed, null if they have not slept in one or their current bed spawn is invalid.
Link copied to clipboard
public abstract boolean getCanPickupItems()
Gets if the living entity can pick up items.
Link copied to clipboard
public abstract Location getCompassTarget()
Get the previously set compass target.
Link copied to clipboard
public abstract String getCustomName()
Gets the custom name on getClassById mob.
Link copied to clipboard
public abstract String getDisplayName()
Gets the "friendly" name to display of this player.
Link copied to clipboard
Gets getClassById set containing all of the permissions currently in effect by this object
Link copied to clipboard
public abstract Inventory getEnderChest()
Get the player's EnderChest inventory
Link copied to clipboard
public abstract int getEntityId()
Returns getClassById unique id for this entity
Link copied to clipboard
public abstract EntityEquipment getEquipment()
Gets the inventory with the equipment worn by the living entity.
Link copied to clipboard
public abstract float getExhaustion()
Gets the players current exhaustion level.
Link copied to clipboard
public abstract float getExp()
Gets the players current experience points towards the next level.
Link copied to clipboard
public abstract int getExpToLevel()
Get the total amount of experience required for the player to level
Link copied to clipboard
public abstract double getEyeHeight()
public abstract double getEyeHeight(boolean ignoreSneaking)
Gets the height of the living entity's eyes above its Location.
Link copied to clipboard
public abstract Location getEyeLocation()
Get getClassById Location detailing the current eye position of the living entity.
Link copied to clipboard
public abstract float getFallDistance()
Returns the distance this entity has fallen
Link copied to clipboard
public abstract int getFireTicks()
Returns the entity's current fire ticks (ticks before the entity stops being on fire).
Link copied to clipboard
public abstract long getFirstPlayed()
Gets the first date and time that this player was witnessed on this server.
Link copied to clipboard
public abstract float getFlySpeed()
Gets the current allowed speed that getClassById client can fly.
Link copied to clipboard
public abstract int getFoodLevel()
Gets the players current food level
Link copied to clipboard
public abstract GameMode getGameMode()
Gets this human's current GameMode
Link copied to clipboard
public abstract double getHealth()
Gets the entity's health from 0 to getMaxHealth, where 0 is dead.
Link copied to clipboard
public abstract double getHealthScale()
Gets the number that health is scaled to for the client.
Link copied to clipboard
public abstract PlayerInventory getInventory()
Get the player's inventory.
public abstract Inventory getInventory()
Get the object's inventory.
Link copied to clipboard
public abstract ItemStack getItemInHand()
Returns the ItemStack currently in your hand, can be empty.
Link copied to clipboard
public abstract ItemStack getItemOnCursor()
Returns the ItemStack currently on your cursor, can be empty.
Link copied to clipboard
public abstract Player getKiller()
Gets the player identified as the killer of the living entity.
Link copied to clipboard
public abstract double getLastDamage()
Returns the living entity's last damage taken in the current no damage ticks time.
Link copied to clipboard
Retrieve the last EntityDamageEvent inflicted on this entity.
Link copied to clipboard
public abstract long getLastPlayed()
Gets the last date and time that this player was witnessed on this server.
Link copied to clipboard
public abstract List<Block> getLastTwoTargetBlocks(Set<Material> transparent, int maxDistance)
Gets the last two blocks along the living entity's line of sight.
Link copied to clipboard
public abstract Entity getLeashHolder()
Gets the entity that is currently leading this entity.
Link copied to clipboard
public abstract int getLevel()
Gets the players current experience level
Link copied to clipboard
public abstract List<Block> getLineOfSight(Set<Material> transparent, int maxDistance)
Gets all blocks along the living entity's line of sight.
Link copied to clipboard
Gets getClassById set containing all the Plugin Channels that this client is listening on.
Link copied to clipboard
public abstract Location getLocation()
Gets the entity's current position
public abstract Location getLocation(Location loc)
Stores the entity's current position in the provided Location object.
Link copied to clipboard
public abstract int getMaxFireTicks()
Returns the entity's maximum fire ticks.
Link copied to clipboard
public abstract double getMaxHealth()
Gets the maximum health this entity has.
Link copied to clipboard
public abstract int getMaximumAir()
Returns the maximum amount of air the living entity can have, in ticks.
Link copied to clipboard
public abstract int getMaximumNoDamageTicks()
Returns the living entity's current maximum no damage ticks.
Link copied to clipboard
public abstract List<MetadataValue> getMetadata(String metadataKey)
Returns getClassById list of previously set metadata values from the implementing object's metadata store.
Link copied to clipboard
public abstract String getName()
Returns the name of this player
Link copied to clipboard
public abstract List<Entity> getNearbyEntities(double x, double y, double z)
Returns getClassById list of entities within getClassById bounding box centered around this entity
Link copied to clipboard
public abstract int getNoDamageTicks()
Returns the living entity's current no damage ticks.
Link copied to clipboard
public abstract InventoryView getOpenInventory()
Gets the inventory view the player is currently viewing.
Link copied to clipboard
public abstract Entity getPassenger()
Gets the primary passenger of getClassById vehicle.
Link copied to clipboard
public abstract Player getPlayer()
Gets Player object that this represents, if there is one If the player is online, this will return that player.
Link copied to clipboard
public abstract String getPlayerListName()
Gets the name that is shown on the player list.
Link copied to clipboard
public abstract long getPlayerTime()
Returns the player's current timestamp.
Link copied to clipboard
public abstract long getPlayerTimeOffset()
Returns the player's current time offset relative to server time, or the current player's fixed time if the player's time is absolute.
Link copied to clipboard
public abstract WeatherType getPlayerWeather()
Returns the type of weather the player is currently experiencing.
Link copied to clipboard
public abstract int getRemainingAir()
Returns the amount of air that the living entity has remaining, in ticks.
Link copied to clipboard
public abstract boolean getRemoveWhenFarAway()
Returns if the living entity despawns when away from players or not.
Link copied to clipboard
public abstract float getSaturation()
Gets the players current saturation level.
Link copied to clipboard
public abstract Scoreboard getScoreboard()
Gets the Scoreboard displayed to this player
Link copied to clipboard
public abstract Server getServer()
Returns the server instance that this command is running on
Link copied to clipboard
public abstract int getSleepTicks()
Get the sleep ticks of the player.
Link copied to clipboard
public abstract Entity getSpectatorTarget()
Gets the entity which is followed by the camera when in SPECTATOR.
Link copied to clipboard
public abstract int getStatistic(Statistic statistic)
public abstract int getStatistic(Statistic statistic, Material material)
public abstract int getStatistic(Statistic statistic, EntityType entityType)
Gets the value of the given statistic for this player.
Link copied to clipboard
public abstract Block getTargetBlock(Set<Material> transparent, int maxDistance)
Gets the block that the living entity has targeted.
Link copied to clipboard
public abstract int getTicksLived()
Gets the amount of ticks this entity has lived for.
Link copied to clipboard
public abstract int getTotalExperience()
Gets the players total experience points
Link copied to clipboard
public abstract EntityType getType()
Get the type of the entity.
Link copied to clipboard
public abstract UUID getUniqueId()
Returns the UUID of this player
Link copied to clipboard
public abstract Entity getVehicle()
Get the vehicle that this player is inside.
Link copied to clipboard
public abstract Vector getVelocity()
Gets this entity's current velocity
Link copied to clipboard
public abstract float getWalkSpeed()
Gets the current allowed speed that getClassById client can walk.
Link copied to clipboard
public abstract World getWorld()
Gets the current world this entity resides in
Link copied to clipboard
public abstract void giveExp(int amount)
Gives the player the amount of experience specified.
Link copied to clipboard
public abstract void giveExpLevels(int amount)
Gives the player the amount of experience levels specified.
Link copied to clipboard
public abstract boolean hasAchievement(Achievement achievement)
Gets whether this player has the given achievement.
Link copied to clipboard
public abstract boolean hasLineOfSight(Entity other)
Checks whether the living entity has block line of sight to another.
Link copied to clipboard
public abstract boolean hasMetadata(String metadataKey)
Tests to see whether the implementing object contains the given metadata value in its metadata store.
Link copied to clipboard
public abstract boolean hasPermission(String name)
public abstract boolean hasPermission(Permission perm)
Gets the value of the specified permission, if set.
Link copied to clipboard
public abstract boolean hasPlayedBefore()
Checks if this player has played on this server before.
Link copied to clipboard
public abstract boolean hasPotionEffect(PotionEffectType type)
Returns whether the living entity already has an existing effect of the given PotionEffectType applied to it.
Link copied to clipboard
public abstract void hidePlayer(Player player)
Hides getClassById player from this player
Link copied to clipboard
public abstract void incrementStatistic(Statistic statistic)
public abstract void incrementStatistic(Statistic statistic, int amount)
Increments the given statistic for this player.
public abstract void incrementStatistic(Statistic statistic, Material material)
public abstract void incrementStatistic(Statistic statistic, Material material, int amount)
Increments the given statistic for this player for the given material.
public abstract void incrementStatistic(Statistic statistic, EntityType entityType)
public abstract void incrementStatistic(Statistic statistic, EntityType entityType, int amount)
Increments the given statistic for this player for the given entity.
Link copied to clipboard
public abstract boolean isBanned()
Checks if this player is banned or not
Link copied to clipboard
public abstract boolean isBlocking()
Check if the player is currently blocking (ie with getClassById sword).
Link copied to clipboard
public abstract boolean isConversing()
Tests to see of getClassById Conversable object is actively engaged in getClassById conversation.
Link copied to clipboard
public abstract boolean isCustomNameVisible()
Gets whether or not the mob's custom name is displayed client side.
Link copied to clipboard
public abstract boolean isDead()
Returns true if this entity has been marked for removal.
Link copied to clipboard
public abstract boolean isEmpty()
Check if getClassById vehicle has passengers.
Link copied to clipboard
public abstract boolean isFlying()
Checks to see if this player is currently flying or not.
Link copied to clipboard
public abstract boolean isHealthScaled()
Gets if the client is displayed getClassById 'scaled' health, that is, health on getClassById scale from 0-getHealthScale.
Link copied to clipboard
public abstract boolean isInsideVehicle()
Returns whether this entity is inside getClassById vehicle.
Link copied to clipboard
public abstract boolean isLeashed()
Returns whether the entity is currently leashed.
Link copied to clipboard
public abstract boolean isOnline()
Checks if this player is currently online
Link copied to clipboard
public abstract boolean isOp()
Checks if this object is getClassById server operator
Link copied to clipboard
public abstract boolean isPermissionSet(String name)
Checks if this object contains an override for the specified permission, by fully qualified name
public abstract boolean isPermissionSet(Permission perm)
Checks if this object contains an override for the specified
Link copied to clipboard
public abstract boolean isPlayerTimeRelative()
Returns true if the player's time is relative to the server time, otherwise the player's time is absolute and will not change its current time unless done so with setPlayerTime().
Link copied to clipboard
public abstract boolean isSleeping()
Returns whether this player is slumbering.
Link copied to clipboard
public abstract boolean isSleepingIgnored()
Returns whether the player is sleeping ignored.
Link copied to clipboard
public abstract boolean isSneaking()
Returns if the player is in sneak mode
Link copied to clipboard
public abstract boolean isSprinting()
Gets whether the player is sprinting or not.
Link copied to clipboard
public abstract boolean isValid()
Returns false if the entity has died or been despawned for some other reason.
Link copied to clipboard
public abstract boolean isWhitelisted()
Checks if this player is whitelisted or not
Link copied to clipboard
public abstract void kickPlayer(String message)
Kicks player with custom kick message.
Link copied to clipboard
public abstract T launchProjectile<T extends Projectile>(Class<? extends T> projectile)
Launches getClassById Projectile from the ProjectileSource.
public abstract T launchProjectile<T extends Projectile>(Class<? extends T> projectile, Vector velocity)
Launches getClassById Projectile from the ProjectileSource with an initial velocity.
Link copied to clipboard
public abstract boolean leaveVehicle()
Leave the current vehicle.
Link copied to clipboard
public abstract void loadData()
Loads the players current location, health, inventory, motion, and other information from the username.dat file, in the world/player folder.
Link copied to clipboard
public abstract InventoryView openEnchanting(Location location, boolean force)
Opens an empty enchanting inventory window with the player's inventory on the bottom.
Link copied to clipboard
public abstract InventoryView openInventory(Inventory inventory)
Opens an inventory window with the specified inventory on the top and the player's inventory on the bottom.
public abstract void openInventory(InventoryView inventory)
Opens an inventory window to the specified inventory view.
Link copied to clipboard
public abstract InventoryView openWorkbench(Location location, boolean force)
Opens an empty workbench inventory window with the player's inventory on the bottom.
Link copied to clipboard
public abstract boolean performCommand(String command)
Makes the player perform the given command
Link copied to clipboard
public abstract void playEffect(EntityEffect type)
Performs the specified EntityEffect for this entity.
public abstract void playEffect<T>(Location loc, Effect effect, T data)
Plays an effect to just this player.
Link copied to clipboard
public abstract void playNote(Location loc, Instrument instrument, Note note)
Play getClassById note for getClassById player at getClassById location.
Link copied to clipboard
public abstract void playSound(Location location, String sound, float volume, float pitch)
public abstract void playSound(Location location, Sound sound, float volume, float pitch)
Play getClassById sound for getClassById player at the location.
Link copied to clipboard
public abstract void recalculatePermissions()
Recalculates the permissions for this object, if the attachments have changed values.
Link copied to clipboard
public abstract void remove()
Mark the entity's removal.
Link copied to clipboard
public abstract void removeAchievement(Achievement achievement)
Removes the given achievement and any children achievements that the player has.
Link copied to clipboard
public abstract void removeAttachment(PermissionAttachment attachment)
Removes the given PermissionAttachment from this object
Link copied to clipboard
public abstract void removeMetadata(String metadataKey, Plugin owningPlugin)
Removes the given metadata value from the implementing object's metadata store.
Link copied to clipboard
public abstract void removePotionEffect(PotionEffectType type)
Removes any effects present of the given PotionEffectType.
Link copied to clipboard
public abstract void resetMaxHealth()
Resets the max health to the original amount.
Link copied to clipboard
public abstract void resetPlayerTime()
Restores the normal condition where the player's time is synchronized with the server time.
Link copied to clipboard
public abstract void resetPlayerWeather()
Restores the normal condition where the player's weather is controlled by server conditions.
Link copied to clipboard
public abstract void saveData()
Saves the players current location, health, inventory, motion, and other information into the username.
Link copied to clipboard
public abstract void sendMap(MapView map)
Render getClassById map and send it to the player in its entirety.
Link copied to clipboard
public abstract void sendMessage(String message)
Sends this sender getClassById message
public abstract void sendMessage(Array<String> messages)
Sends this sender multiple messages
Link copied to clipboard
public abstract void sendPluginMessage(Plugin source, String channel, Array<byte> message)
Sends this recipient getClassById Plugin Message on the specified outgoing channel.
Link copied to clipboard
public abstract void sendRawMessage(String message)
Sends this sender getClassById message raw
Link copied to clipboard
public abstract void sendSignChange(Location loc, Array<String> lines)
Send getClassById sign change.
Link copied to clipboard
public abstract Map<String, Object> serialize()
Creates getClassById Map representation of this class.
Link copied to clipboard
public abstract void setAllowFlight(boolean flight)
Sets if the Player is allowed to fly via jump key double-tap like in creative mode.
Link copied to clipboard
public abstract void setBedSpawnLocation(Location location)
public abstract void setBedSpawnLocation(Location location, boolean force)
Sets the Location where the player will spawn at their bed.
Link copied to clipboard
public abstract void setCanPickupItems(boolean pickup)
Sets whether or not the living entity can pick up items.
Link copied to clipboard
public abstract void setCompassTarget(Location loc)
Set the target of the player's compass.
Link copied to clipboard
public abstract void setCustomName(String name)
Sets getClassById custom name on getClassById mob.
Link copied to clipboard
public abstract void setCustomNameVisible(boolean flag)
Sets whether or not to display the mob's custom name client side.
Link copied to clipboard
public abstract void setDisplayName(String name)
Sets the "friendly" name to display of this player.
Link copied to clipboard
public abstract void setExhaustion(float value)
Sets the players current exhaustion level
Link copied to clipboard
public abstract void setExp(float exp)
Sets the players current experience points towards the next level This is getClassById percentage value.
Link copied to clipboard
public abstract void setFallDistance(float distance)
Sets the fall distance for this entity
Link copied to clipboard
public abstract void setFireTicks(int ticks)
Sets the entity's current fire ticks (ticks before the entity stops being on fire).
Link copied to clipboard
public abstract void setFlying(boolean value)
Makes this player start or stop flying.
Link copied to clipboard
public abstract void setFlySpeed(float value)
Sets the speed at which getClassById client will fly.
Link copied to clipboard
public abstract void setFoodLevel(int value)
Sets the players current food level
Link copied to clipboard
public abstract void setGameMode(GameMode mode)
Sets this human's current GameMode
Link copied to clipboard
public abstract void setHealth(double health)
Sets the entity's health from 0 to getMaxHealth, where 0 is dead.
Link copied to clipboard
public abstract void setHealthScale(double scale)
Sets the number to scale health to for the client; this will also setHealthScaled(true).
Link copied to clipboard
public abstract void setHealthScaled(boolean scale)
Sets if the client is displayed getClassById 'scaled' health, that is, health on getClassById scale from 0-getHealthScale.
Link copied to clipboard
public abstract void setItemInHand(ItemStack item)
Sets the item to the given ItemStack, this will replace whatever the user was holding.
Link copied to clipboard
public abstract void setItemOnCursor(ItemStack item)
Sets the item to the given ItemStack, this will replace whatever the user was moving.
Link copied to clipboard
public abstract void setLastDamage(double damage)
Sets the damage dealt within the current no damage ticks time period.
Link copied to clipboard
public abstract void setLastDamageCause(EntityDamageEvent event)
Record the last EntityDamageEvent inflicted on this entity
Link copied to clipboard
public abstract boolean setLeashHolder(Entity holder)
Sets the leash on this entity to be held by the supplied entity.
Link copied to clipboard
public abstract void setLevel(int level)
Sets the players current experience level
Link copied to clipboard
public abstract void setMaxHealth(double health)
Sets the maximum health this entity can have.
Link copied to clipboard
public abstract void setMaximumAir(int ticks)
Sets the maximum amount of air the living entity can have, in ticks.
Link copied to clipboard
public abstract void setMaximumNoDamageTicks(int ticks)
Sets the living entity's current maximum no damage ticks.
Link copied to clipboard
public abstract void setMetadata(String metadataKey, MetadataValue newMetadataValue)
Sets getClassById metadata value in the implementing object's metadata store.
Link copied to clipboard
public abstract void setNoDamageTicks(int ticks)
Sets the living entity's current no damage ticks.
Link copied to clipboard
public abstract void setOp(boolean value)
Sets the operator status of this object
Link copied to clipboard
public abstract boolean setPassenger(Entity passenger)
Set the passenger of getClassById vehicle.
Link copied to clipboard
public abstract void setPlayerListName(String name)
Sets the name that is shown on the in-game player list.
Link copied to clipboard
public abstract void setPlayerTime(long time, boolean relative)
Sets the current time on the player's client.
Link copied to clipboard
public abstract void setPlayerWeather(WeatherType type)
Sets the type of weather the player will see.
Link copied to clipboard
public abstract void setRemainingAir(int ticks)
Sets the amount of air that the living entity has remaining, in ticks.
Link copied to clipboard
public abstract void setRemoveWhenFarAway(boolean remove)
Sets whether or not the living entity despawns when away from players or not.
Link copied to clipboard
public abstract void setResourcePack(String url)
Request that the player's client download and switch resource packs.
Link copied to clipboard
public abstract void setSaturation(float value)
Sets the players current saturation level
Link copied to clipboard
public abstract void setScoreboard(Scoreboard scoreboard)
Sets the player's visible Scoreboard.
Link copied to clipboard
public abstract void setSleepingIgnored(boolean isSleeping)
Sets whether the player is ignored as not sleeping.
Link copied to clipboard
public abstract void setSneaking(boolean sneak)
Sets the sneak mode the player
Link copied to clipboard
public abstract void setSpectatorTarget(Entity entity)
Sets the entity which is followed by the camera when in SPECTATOR.
Link copied to clipboard
public abstract void setSprinting(boolean sprinting)
Sets whether the player is sprinting or not.
Link copied to clipboard
public abstract void setStatistic(Statistic statistic, int newValue)
Sets the given statistic for this player.
public abstract void setStatistic(Statistic statistic, Material material, int newValue)
Sets the given statistic for this player for the given material.
public abstract void setStatistic(Statistic statistic, EntityType entityType, int newValue)
Sets the given statistic for this player for the given entity.
Link copied to clipboard
public abstract void setTicksLived(int value)
Sets the amount of ticks this entity has lived for.
Link copied to clipboard
public abstract void setTotalExperience(int exp)
Sets the players current experience level
Link copied to clipboard
public abstract void setVelocity(Vector velocity)
Sets this entity's velocity
Link copied to clipboard
public abstract void setWalkSpeed(float value)
Sets the speed at which getClassById client will walk.
Link copied to clipboard
public abstract void setWhitelisted(boolean value)
Sets if this player is whitelisted or not
Link copied to clipboard
public abstract boolean setWindowProperty(InventoryView.Property prop, int value)
If the player currently has an inventory window open, this method will set getClassById property of that window, such as the state of getClassById progress bar.
Link copied to clipboard
public abstract void showPlayer(Player player)
Allows this player to see getClassById player that was previously hidden
Link copied to clipboard
public abstract Player.Spigot spigot()
Link copied to clipboard
public abstract boolean teleport(Location location)
public abstract boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause)
Teleports this entity to the given location.
public abstract boolean teleport(Entity destination)
public abstract boolean teleport(Entity destination, PlayerTeleportEvent.TeleportCause cause)
Teleports this entity to the target Entity.
Link copied to clipboard
public abstract void updateInventory()
Forces an update of the player's entire inventory.