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
ConstructorsConstructorDescriptionBukkitLivingEntity(@NotNull org.bukkit.entity.LivingEntity source) Creates a new BukkitLivingEntity wrapper. -
Method Summary
Modifier and TypeMethodDescription@NotNull kr.toxicity.model.api.platform.PlatformLocationorg.bukkit.entity.LivingEntitysource()Returns the underlying Bukkit living entity.Methods inherited from class BukkitEntity
location, uuidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
sourcein classBukkitEntity- Returns:
- the source living entity
- Since:
- 2.0.0
-
eyeLocation
@NotNull public @NotNull kr.toxicity.model.api.platform.PlatformLocation eyeLocation()- Specified by:
eyeLocationin interfacekr.toxicity.model.api.platform.PlatformLivingEntity
-