Interface PulsePlayer


public interface PulsePlayer
Represents a specialized wrapper for a Player within the Pulse network engine.

This interface provides a gateway to advanced network-level controls and virtual world management (phantom blocks/entities) that are not available in the standard Bukkit or Paper APIs.

  • Method Details

    • from

      Obtains a PulsePlayer instance for a standard Bukkit player.

      This is the primary way to interact with Pulse features for a specific player.

      Parameters:
      player - the Bukkit player instance to wrap
      Returns:
      a PulsePlayer instance, or null if the player's connection is not managed by Pulse
    • getBuffer

      Accesses the player's outbound network buffer. Used to manage batching, low-latency modes, and manual flushing.
      Returns:
      the NetworkBuffer for this player
    • getVirtualBlockManager

      @NotNull @NotNull VirtualBlockManager getVirtualBlockManager()
      Accesses the manager for persistent virtual (client-side only) blocks. Used to create blocks that stay visible even after chunk updates.
      Returns:
      the VirtualBlockManager for this player
    • getVirtualEntityManager

      @NotNull VirtualEntityManager getVirtualEntityManager()
      Accesses the manager for Virtual Entities (AI-driven per-player mobs).

      Allows spawning entities that run real server logic/AI but are only sent to this specific player.

      Returns:
      the VirtualEntityManager
    • getBukkitPlayer

      @NotNull @NotNull Player getBukkitPlayer()
      Gets the original Bukkit player instance associated with this PulsePlayer.
      Returns:
      the underlying Player