Skip to content

Players

Online and offline players, game modes, effects, sounds, particles and resource packs.

Type Kind Description
GameMode enum Vanilla game mode (the numbers are the protocol ids).
Hand enum The hand an action was performed with.
InteractionHand enum Values of the protocol enum InteractionHand (the wire carries the ordinal).
OfflinePlayers class Players who are not online, looked up by name or uuid: the server’s name cache (usercache.json, vanilla’s), the first join and last seen times, and the saved player data.
OfflineProfile class What the server knows about a player who is not online: the name, the first join and the last time seen (both from the server’s records; null when unknown), and the position in the saved player data (null when there is no saved data).
Particle class Helpers for the textual particle descriptions Player.SpawnParticle takes (the same syntax as the /particle command).
Player struct A handle to a connected player.
PlayerSnapshot struct One online player as the engine reports him (see Server.PlayersSnapshot).
PotionEffect struct A status effect to apply to a player (a potion effect in Bukkit terms).
ResourcePack class A resource pack the server asks clients to download.
ResourcePackStatus enum Client report about a pushed resource pack (protocol order).
SoundCategory enum Where a sound is mixed in the client’s volume sliders.