Overview
PlatformPlayer represents a player in the underlying platform. This interface combines the properties of a living entity and an offline player, providing access to player-specific data like name and online status, as well as all living entity functionality.
Package: kr.toxicity.model.api.platform
Extends: PlatformLivingEntity, PlatformOfflinePlayer
Since: 2.0.0
Core Properties
name()
Inherited from PlatformEntity
uuid()
location()
registry()
tracker()
name- The name of the tracker
Inherited from PlatformLivingEntity
eyeLocation()
Task Scheduling
Inherited fromPlatformRegionHolder:
task()
runnable- The task to run
null if scheduling failed
Since: 2.0.0
taskLater()
delay- The delay in ticksrunnable- The task to run
null if scheduling failed
Since: 2.0.0
Platform Adapter Usage
UseBukkitAdapter to convert Bukkit players to PlatformPlayer:
Usage Examples
Basic Player Access
Custom Model Management
Player Tracking
Region-Safe Operations
PlayerChannel Integration
Interface Hierarchy
Related Types
- PlatformEntity - Base entity interface
- PlatformLocation - Location representation
- BaseEntity - Enhanced entity adapter
PlatformLivingEntity- Living entity interfacePlatformOfflinePlayer- Offline player dataEntityTrackerRegistry- Entity tracker managementPlayerChannel- Enhanced player wrapper with model data
