Package me.lokka30.levelledmobs.wrappers
Class LivingEntityWrapper
java.lang.Object
me.lokka30.levelledmobs.wrappers.LivingEntityWrapperBase
me.lokka30.levelledmobs.wrappers.LivingEntityWrapper
- All Implemented Interfaces:
LivingEntityInterface
A wrapper for the LivingEntity class that provides various common function and settings used for
processing rules
- Since:
- 3.0.0
-
Field Summary
Modifier and TypeFieldDescriptionint
org.bukkit.event.entity.EntityDamageEvent.DamageCause
boolean
boolean
boolean
boolean
org.bukkit.entity.Player
Set<org.bukkit.entity.Player>
boolean
org.bukkit.command.CommandSender
boolean
Fields inherited from class me.lokka30.levelledmobs.wrappers.LivingEntityWrapperBase
inUseCount, main, spawnedTimeOfDay, summonedLevel
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
boolean
void
free()
@NotNull org.bukkit.entity.EntityType
@Nullable FineTuningAttributes
static @NotNull LivingEntityWrapper
getInstance
(org.bukkit.entity.LivingEntity livingEntity, @NotNull LevelledMobs main) static @NotNull String
org.bukkit.entity.LivingEntity
int
@NotNull String
long
@Nullable String
@NotNull org.bukkit.persistence.PersistentDataContainer
getPDC()
@Nullable org.bukkit.entity.Player
boolean
int
@Nullable String
@Nullable String
int
@NotNull LevelledMobSpawnReason
@NotNull String
@NotNull String
int
hashCode()
boolean
void
boolean
boolean
boolean
boolean
boolean
boolean
void
void
setOverridenEntityName
(String name) void
setPlayerForLevelling
(org.bukkit.entity.Player player) void
setShouldShowLM_Nametag
(boolean doShow) void
void
setSourceSpawnerName
(String name) void
setSpawnedTimeOfDay
(int ticks) void
setSpawnReason
(LevelledMobSpawnReason spawnReason) void
setSpawnReason
(LevelledMobSpawnReason spawnReason, boolean doForce) 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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.lokka30.levelledmobs.LivingEntityInterface
getDistanceFromSpawn, getLocation, getMainInstance, getWorld
-
Field Details
-
chunkKillcount
public int chunkKillcount -
reEvaluateLevel
public boolean reEvaluateLevel -
wasPreviouslyLevelled
public boolean wasPreviouslyLevelled -
isRulesForceAll
public boolean isRulesForceAll -
isNewlySpawned
public boolean isNewlySpawned -
lockEntitySettings
public boolean lockEntitySettings -
hasLockedDropsOverride
public boolean hasLockedDropsOverride -
playerLevellingAllowDecrease
-
playersNeedingNametagCooldownUpdate
-
deathCause
public org.bukkit.event.entity.EntityDamageEvent.DamageCause deathCause -
nbtData
-
lockedCustomDrops
-
pendingPlayerIdToSet
-
lockedNametag
-
lockedOverrideName
-
playerForPermissionsCheck
public org.bukkit.entity.Player playerForPermissionsCheck -
summonedSender
public org.bukkit.command.CommandSender summonedSender
-
-
Method Details
-
getInstance
@NotNull public static @NotNull LivingEntityWrapper getInstance(org.bukkit.entity.LivingEntity livingEntity, @NotNull @NotNull LevelledMobs main) -
free
public void free()- Specified by:
free
in interfaceLivingEntityInterface
-
getLEWDebug
-
clearCache
public static void clearCache() -
clearEntityData
public void clearEntityData()- Specified by:
clearEntityData
in interfaceLivingEntityInterface
- Overrides:
clearEntityData
in classLivingEntityWrapperBase
-
invalidateCache
public void invalidateCache() -
getPrevChanceRuleResults
-
getLivingEntity
public org.bukkit.entity.LivingEntity getLivingEntity() -
getTypeName
- Specified by:
getTypeName
in interfaceLivingEntityInterface
-
getApplicableGroups
-
getNametagCooldownTime
public long getNametagCooldownTime() -
getPlayerForLevelling
@Nullable public @Nullable org.bukkit.entity.Player getPlayerForLevelling() -
setPlayerForLevelling
public void setPlayerForLevelling(org.bukkit.entity.Player player) -
getFineTuningAttributes
-
getApplicableRules
- Specified by:
getApplicableRules
in interfaceLivingEntityInterface
-
getMobLevel
public int getMobLevel() -
isLevelled
public boolean isLevelled() -
getEntityType
@NotNull public @NotNull org.bukkit.entity.EntityType getEntityType()- Specified by:
getEntityType
in interfaceLivingEntityInterface
-
getPDC
@NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPDC() -
isBabyMob
public boolean isBabyMob() -
getSpawnReason
-
getSkylightLevel
public int getSkylightLevel() -
setSkylightLevelAtSpawn
public void setSkylightLevelAtSpawn() -
setSpawnReason
-
setSpawnReason
-
setSourceSpawnerName
-
getSourceSpawnerName
-
getSourceSpawnEggName
-
getNameIfBaby
-
isMobTamed
public boolean isMobTamed() -
setMobExternalType
-
getMobExternalTypes
@NotNull public @NotNull List<ExternalCompatibilityManager.ExternalCompatibility> getMobExternalTypes() -
isMobOfExternalType
public boolean isMobOfExternalType() -
isMobOfExternalType
-
hasOverridenEntityName
public boolean hasOverridenEntityName() -
getOverridenEntityName
-
getWGRegionName
-
setOverridenEntityName
-
setShouldShowLM_Nametag
public void setShouldShowLM_Nametag(boolean doShow) -
getShouldShowLM_Nametag
public boolean getShouldShowLM_Nametag() -
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
-
equals
-
hashCode
public int hashCode()
-