Class LivingEntityWrapperBase

java.lang.Object
me.lokka30.levelledmobs.wrappers.LivingEntityWrapperBase
Direct Known Subclasses:
LivingEntityPlaceholder, LivingEntityWrapper

public abstract class LivingEntityWrapperBase extends Object
Baseclass for LivingEntityWrapper and LivingEntityPlaceholder to hold various information about mobs
Since:
3.1.0
  • Field Details

    • main

      @NotNull public final @NotNull LevelledMobs main
    • summonedLevel

      protected Integer summonedLevel
    • spawnedTimeOfDay

      protected Integer spawnedTimeOfDay
    • inUseCount

      public final AtomicInteger inUseCount
  • Constructor Details

    • LivingEntityWrapperBase

      protected LivingEntityWrapperBase(@NotNull @NotNull LevelledMobs main)
  • Method Details

    • populateData

      protected void populateData(@NotNull @NotNull org.bukkit.World world, @NotNull @NotNull org.bukkit.Location location)
    • clearEntityData

      protected void clearEntityData()
    • getIsPopulated

      public boolean getIsPopulated()
    • getDistanceFromSpawn

      public double getDistanceFromSpawn()
    • getMainInstance

      @NotNull public @NotNull LevelledMobs getMainInstance()
    • getLocation

      @NotNull public @NotNull org.bukkit.Location getLocation()
    • getWorld

      @NotNull public @NotNull org.bukkit.World getWorld()
    • getWorldName

      @NotNull public @NotNull String getWorldName()
    • setSummonedLevel

      public void setSummonedLevel(Integer summonedLevel)