Class BukkitPlayer

All Implemented Interfaces:
kr.toxicity.model.api.platform.PlatformEntity, kr.toxicity.model.api.platform.PlatformLivingEntity, kr.toxicity.model.api.platform.PlatformOfflinePlayer, kr.toxicity.model.api.platform.PlatformPlayer, kr.toxicity.model.api.platform.PlatformRegionHolder

public final class BukkitPlayer extends BukkitLivingEntity implements kr.toxicity.model.api.platform.PlatformPlayer
Represents a Bukkit player wrapped as a PlatformPlayer.
Since:
2.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    BukkitPlayer(@NotNull org.bukkit.entity.Player source)
    Creates a new BukkitPlayer wrapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
     
    @NotNull org.bukkit.entity.Player
    Returns the underlying Bukkit player.

    Methods inherited from class kr.toxicity.model.api.bukkit.platform.BukkitLivingEntity

    eyeLocation

    Methods inherited from class kr.toxicity.model.api.bukkit.platform.BukkitEntity

    location, uuid

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface kr.toxicity.model.api.platform.PlatformEntity

    location, registry, task, taskLater, tracker, uuid

    Methods inherited from interface kr.toxicity.model.api.platform.PlatformLivingEntity

    eyeLocation

    Methods inherited from interface kr.toxicity.model.api.platform.PlatformOfflinePlayer

    uuid
  • Constructor Details

    • BukkitPlayer

      public BukkitPlayer(@NotNull @NotNull org.bukkit.entity.Player source)
      Creates a new BukkitPlayer wrapper.
      Parameters:
      source - the source Bukkit player
      Since:
      2.0.0
  • Method Details

    • source

      @NotNull public @NotNull org.bukkit.entity.Player source()
      Returns the underlying Bukkit player.
      Overrides:
      source in class BukkitLivingEntity
      Returns:
      the source player
      Since:
      2.0.0
    • name

      @NotNull public @NotNull String name()
      Specified by:
      name in interface kr.toxicity.model.api.platform.PlatformOfflinePlayer
      Specified by:
      name in interface kr.toxicity.model.api.platform.PlatformPlayer