Class BukkitLivingEntity

java.lang.Object
kr.toxicity.model.api.bukkit.platform.BukkitEntity
kr.toxicity.model.api.bukkit.platform.BukkitLivingEntity
All Implemented Interfaces:
kr.toxicity.model.api.platform.PlatformEntity, kr.toxicity.model.api.platform.PlatformLivingEntity, kr.toxicity.model.api.platform.PlatformRegionHolder
Direct Known Subclasses:
BukkitPlayer

public class BukkitLivingEntity extends BukkitEntity implements kr.toxicity.model.api.platform.PlatformLivingEntity
Represents a Bukkit living entity wrapped as a PlatformLivingEntity.
Since:
2.0.0
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    @NotNull kr.toxicity.model.api.platform.PlatformLocation
     
    org.bukkit.entity.LivingEntity
    Returns the underlying Bukkit living entity.

    Methods inherited from class BukkitEntity

    location, uuid

    Methods inherited from class 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
  • Constructor Details

    • BukkitLivingEntity

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

    • source

      public org.bukkit.entity.LivingEntity source()
      Returns the underlying Bukkit living entity.
      Overrides:
      source in class BukkitEntity
      Returns:
      the source living entity
      Since:
      2.0.0
    • eyeLocation

      @NotNull public @NotNull kr.toxicity.model.api.platform.PlatformLocation eyeLocation()
      Specified by:
      eyeLocation in interface kr.toxicity.model.api.platform.PlatformLivingEntity