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 TypeMethodDescriptionvoidvoidfree()@NotNull org.bukkit.entity.EntityTypestatic @NotNull LivingEntityPlaceholdergetInstance(org.bukkit.entity.EntityType entityType, @NotNull org.bukkit.Location location, @NotNull LevelledMobs main) int@NotNull StringbooleanvoidsetSpawnedTimeOfDay(int ticks) Methods inherited from class me.lokka30.levelledmobs.wrappers.LivingEntityWrapperBase
getDistanceFromSpawn, getIsPopulated, getLocation, getMainInstance, getWorld, getWorldName, populateData, setSummonedLevelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
freein interfaceLivingEntityInterface
-
clearEntityData
public void clearEntityData()- Specified by:
clearEntityDatain interfaceLivingEntityInterface- Overrides:
clearEntityDatain classLivingEntityWrapperBase
-
getEntityType
@NotNull public @NotNull org.bukkit.entity.EntityType getEntityType()- Specified by:
getEntityTypein interfaceLivingEntityInterface
-
getApplicableRules
- Specified by:
getApplicableRulesin interfaceLivingEntityInterface
-
getTypeName
- Specified by:
getTypeNamein interfaceLivingEntityInterface
-
setSpawnedTimeOfDay
public void setSpawnedTimeOfDay(int ticks) - Specified by:
setSpawnedTimeOfDayin interfaceLivingEntityInterface
-
getSpawnedTimeOfDay
public int getSpawnedTimeOfDay()- Specified by:
getSpawnedTimeOfDayin interfaceLivingEntityInterface
-
getSummonedLevel
- Specified by:
getSummonedLevelin interfaceLivingEntityInterface
-
isWasSummoned
public boolean isWasSummoned()- Specified by:
isWasSummonedin interfaceLivingEntityInterface
-