PlayerRef
Package: com.hypixel.hytale.server.core.universe
public class PlayerRef implements Component<EntityStore>, MetricProvider, IMessageReceiverRepresents a connected player’s server-side reference. Acts as the bridge between the network layer (PacketHandler), the entity system (Ref<EntityStore>), and player-facing features. Tracks UUID, username, language, transform, chunk tracker, hidden players, and metrics.
Methods
Section titled “Methods”@Nonnullpublic static ComponentType<EntityStore, PlayerRef> getComponentType()@Nullablepublic Ref<EntityStore> addToStore(@Nonnull Store<EntityStore> store)@Nonnullpublic Holder<EntityStore> removeFromStore()public boolean isValid()@Nullablepublic Ref<EntityStore> getReference()@Nonnullpublic UUID getUuid()@Nonnullpublic String getUsername()@Nonnullpublic PacketHandler getPacketHandler()@Nonnullpublic ChunkTracker getChunkTracker()@Nonnullpublic HiddenPlayersManager getHiddenPlayersManager()@Nonnullpublic String getLanguage()public void setLanguage(@Nonnull String language)public void referToServer(@Nonnull String host, int port)Sends a referral packet directing the client to connect to another server.
public void referToServer(@Nonnull String host, int port, @Nullable byte[] data)@Overridepublic void sendMessage(@Nonnull Message message)
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.