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
FieldsModifier and TypeFieldDescriptionintorg.bukkit.event.entity.EntityDamageEvent.DamageCausebooleanbooleanbooleanbooleanorg.bukkit.entity.PlayerSet<org.bukkit.entity.Player>booleanorg.bukkit.command.CommandSenderbooleanFields inherited from class me.lokka30.levelledmobs.wrappers.LivingEntityWrapperBase
inUseCount, main, spawnedTimeOfDay, summonedLevel -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidbooleanvoidfree()@NotNull org.bukkit.entity.EntityType@Nullable FineTuningAttributesstatic @NotNull LivingEntityWrappergetInstance(org.bukkit.entity.LivingEntity livingEntity, @NotNull LevelledMobs main) static @NotNull Stringorg.bukkit.entity.LivingEntityint@NotNull Stringlong@Nullable String@NotNull org.bukkit.persistence.PersistentDataContainergetPDC()@Nullable org.bukkit.entity.Playerbooleanint@Nullable String@Nullable Stringint@NotNull LevelledMobSpawnReason@NotNull String@NotNull StringinthashCode()booleanvoidbooleanbooleanbooleanbooleanbooleanbooleanvoidvoidsetOverridenEntityName(String name) voidsetPlayerForLevelling(org.bukkit.entity.Player player) voidsetShouldShowLM_Nametag(boolean doShow) voidvoidsetSourceSpawnerName(String name) voidsetSpawnedTimeOfDay(int ticks) voidsetSpawnReason(LevelledMobSpawnReason spawnReason) voidsetSpawnReason(LevelledMobSpawnReason spawnReason, boolean doForce) Methods inherited from class me.lokka30.levelledmobs.wrappers.LivingEntityWrapperBase
getDistanceFromSpawn, getIsPopulated, getLocation, getMainInstance, getWorld, getWorldName, populateData, setSummonedLevelMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
freein interfaceLivingEntityInterface
-
getLEWDebug
-
clearCache
public static void clearCache() -
clearEntityData
public void clearEntityData()- Specified by:
clearEntityDatain interfaceLivingEntityInterface- Overrides:
clearEntityDatain classLivingEntityWrapperBase
-
invalidateCache
public void invalidateCache() -
getPrevChanceRuleResults
-
getLivingEntity
public org.bukkit.entity.LivingEntity getLivingEntity() -
getTypeName
- Specified by:
getTypeNamein 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:
getApplicableRulesin interfaceLivingEntityInterface
-
getMobLevel
public int getMobLevel() -
isLevelled
public boolean isLevelled() -
getEntityType
@NotNull public @NotNull org.bukkit.entity.EntityType getEntityType()- Specified by:
getEntityTypein 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:
setSpawnedTimeOfDayin interfaceLivingEntityInterface
-
getSpawnedTimeOfDay
public int getSpawnedTimeOfDay()- Specified by:
getSpawnedTimeOfDayin interfaceLivingEntityInterface
-
getSummonedLevel
- Specified by:
getSummonedLevelin interfaceLivingEntityInterface
-
isWasSummoned
public boolean isWasSummoned()- Specified by:
isWasSummonedin interfaceLivingEntityInterface
-
equals
-
hashCode
public int hashCode()
-