Skip to content

PlayerUtil

Package: com.hypixel.hytale.server.core.universe.world

public class PlayerUtil

Static utilities for iterating over players and broadcasting packets/messages within a world.

MethodReturn TypeDescription
forEachPlayerThatCanSeeEntity(Ref, TriConsumer, ComponentAccessor)voidIterates all players whose entity viewer contains the given ref.
forEachPlayerThatCanSeeEntity(Ref, TriConsumer, Ref, ComponentAccessor)voidSame as above but excludes a specific player ref.
broadcastMessageToPlayers(UUID, Message, Store)voidSends a message to all players in the world, respecting hidden-player filtering.
broadcastPacketToPlayers(ComponentAccessor, ToClientPacket)voidSends a packet to all players in the world (cached).
broadcastPacketToPlayersNoCache(ComponentAccessor, ToClientPacket)voidSends a packet to all players in the world (uncached).
broadcastPacketToPlayers(ComponentAccessor, ToClientPacket...)voidSends multiple packets to all players.
resetPlayerModel(Ref, ComponentAccessor)voidDeprecated. Resets the player model from their skin cosmetics.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.