Class BukkitEntity

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

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

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

    Modifier and Type
    Method
    Description
    @NotNull kr.toxicity.model.api.platform.PlatformLocation
     
    org.bukkit.entity.Entity
    Returns the underlying Bukkit entity.
    @NotNull 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

    registry, task, taskLater, tracker
  • Constructor Details

    • BukkitEntity

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

    • source

      public org.bukkit.entity.Entity source()
      Returns the underlying Bukkit entity.
      Returns:
      the source entity
      Since:
      2.0.0
    • uuid

      @NotNull public @NotNull UUID uuid()
      Specified by:
      uuid in interface kr.toxicity.model.api.platform.PlatformEntity
    • location

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