Package dev.pulsemc.pulse.api.network
Class PulseEngine
java.lang.Object
dev.pulsemc.pulse.api.network.PulseEngine
The internal bridge and registry for the Pulse network engine services.
This class serves as the link between the Pulse API and the server implementation.
It is automatically initialized by the server core during the bootstrap process.
Note: Methods in this class are mostly for internal use.
Developers should prefer using PulsePlayer.from(Player).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Function<Player, PulsePlayer> Internal provider function set by the server core to handle player wrapping. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PulsePlayergetPulsePlayer(Player player) Retrieves thePulsePlayerinstance for a given Bukkit player.
-
Field Details
-
provider
Internal provider function set by the server core to handle player wrapping.
-
-
Constructor Details
-
PulseEngine
public PulseEngine()
-
-
Method Details
-
getPulsePlayer
Retrieves thePulsePlayerinstance for a given Bukkit player.- Parameters:
player- the player to look up- Returns:
- the specialized PulsePlayer instance, or null if the engine is not initialized
-