Package me.lokka30.levelledmobs.misc
Class LivingEntityPlaceholder
java.lang.Object
me.lokka30.levelledmobs.wrappers.LivingEntityWrapperBase
me.lokka30.levelledmobs.misc.LivingEntityPlaceholder
- All Implemented Interfaces:
LivingEntityInterface
public class LivingEntityPlaceholder
extends LivingEntityWrapperBase
implements LivingEntityInterface
A wrapper for the LivingEntity class that provides various common function and settings used for
processing rules Used only with the summon command
- Since:
- 3.0.0
-
Field Summary
Fields inherited from class me.lokka30.levelledmobs.wrappers.LivingEntityWrapperBase
inUseCount, main, spawnedTimeOfDay, summonedLevel
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
free()
@NotNull org.bukkit.entity.EntityType
static @NotNull LivingEntityPlaceholder
getInstance
(org.bukkit.entity.EntityType entityType, @NotNull org.bukkit.Location location, @NotNull LevelledMobs main) int
@NotNull String
boolean
void
setSpawnedTimeOfDay
(int ticks) Methods inherited from class me.lokka30.levelledmobs.wrappers.LivingEntityWrapperBase
getDistanceFromSpawn, getIsPopulated, getLocation, getMainInstance, getWorld, getWorldName, populateData, setSummonedLevel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.lokka30.levelledmobs.LivingEntityInterface
getDistanceFromSpawn, getLocation, getMainInstance, getWorld
-
Method Details
-
getInstance
@NotNull public static @NotNull LivingEntityPlaceholder getInstance(org.bukkit.entity.EntityType entityType, @NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull LevelledMobs main) -
free
public void free()- Specified by:
free
in interfaceLivingEntityInterface
-
clearEntityData
public void clearEntityData()- Specified by:
clearEntityData
in interfaceLivingEntityInterface
- Overrides:
clearEntityData
in classLivingEntityWrapperBase
-
getEntityType
@NotNull public @NotNull org.bukkit.entity.EntityType getEntityType()- Specified by:
getEntityType
in interfaceLivingEntityInterface
-
getApplicableRules
- Specified by:
getApplicableRules
in interfaceLivingEntityInterface
-
getTypeName
- Specified by:
getTypeName
in interfaceLivingEntityInterface
-
setSpawnedTimeOfDay
public void setSpawnedTimeOfDay(int ticks) - Specified by:
setSpawnedTimeOfDay
in interfaceLivingEntityInterface
-
getSpawnedTimeOfDay
public int getSpawnedTimeOfDay()- Specified by:
getSpawnedTimeOfDay
in interfaceLivingEntityInterface
-
getSummonedLevel
- Specified by:
getSummonedLevel
in interfaceLivingEntityInterface
-
isWasSummoned
public boolean isWasSummoned()- Specified by:
isWasSummoned
in interfaceLivingEntityInterface
-