Class LivingEntityWrapper

java.lang.Object
me.lokka30.levelledmobs.wrappers.LivingEntityWrapperBase
me.lokka30.levelledmobs.wrappers.LivingEntityWrapper
All Implemented Interfaces:
LivingEntityInterface

public class LivingEntityWrapper extends LivingEntityWrapperBase implements LivingEntityInterface
A wrapper for the LivingEntity class that provides various common function and settings used for processing rules
Since:
3.0.0
  • 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

      public Boolean playerLevellingAllowDecrease
    • playersNeedingNametagCooldownUpdate

      public Set<org.bukkit.entity.Player> playersNeedingNametagCooldownUpdate
    • deathCause

      public org.bukkit.event.entity.EntityDamageEvent.DamageCause deathCause
    • nbtData

      public List<String> nbtData
    • lockedCustomDrops

      public List<String> lockedCustomDrops
    • pendingPlayerIdToSet

      public String pendingPlayerIdToSet
    • lockedNametag

      public String lockedNametag
    • lockedOverrideName

      public String 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 interface LivingEntityInterface
    • getLEWDebug

      @NotNull public static @NotNull String getLEWDebug()
    • clearCache

      public static void clearCache()
    • clearEntityData

      public void clearEntityData()
      Specified by:
      clearEntityData in interface LivingEntityInterface
      Overrides:
      clearEntityData in class LivingEntityWrapperBase
    • invalidateCache

      public void invalidateCache()
    • getPrevChanceRuleResults

      @Nullable public @Nullable Map<String,Boolean> getPrevChanceRuleResults()
    • getLivingEntity

      public org.bukkit.entity.LivingEntity getLivingEntity()
    • getTypeName

      @NotNull public @NotNull String getTypeName()
      Specified by:
      getTypeName in interface LivingEntityInterface
    • getApplicableGroups

      @NotNull public @NotNull Set<String> getApplicableGroups()
    • getNametagCooldownTime

      public long getNametagCooldownTime()
    • getPlayerForLevelling

      @Nullable public @Nullable org.bukkit.entity.Player getPlayerForLevelling()
    • setPlayerForLevelling

      public void setPlayerForLevelling(org.bukkit.entity.Player player)
    • getFineTuningAttributes

      @Nullable public @Nullable FineTuningAttributes getFineTuningAttributes()
    • getApplicableRules

      @NotNull public @NotNull List<RuleInfo> getApplicableRules()
      Specified by:
      getApplicableRules in interface LivingEntityInterface
    • getMobLevel

      public int getMobLevel()
    • isLevelled

      public boolean isLevelled()
    • getEntityType

      @NotNull public @NotNull org.bukkit.entity.EntityType getEntityType()
      Specified by:
      getEntityType in interface LivingEntityInterface
    • getPDC

      @NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPDC()
    • isBabyMob

      public boolean isBabyMob()
    • getSpawnReason

      @NotNull public @NotNull LevelledMobSpawnReason getSpawnReason()
    • getSkylightLevel

      public int getSkylightLevel()
    • setSkylightLevelAtSpawn

      public void setSkylightLevelAtSpawn()
    • setSpawnReason

      public void setSpawnReason(LevelledMobSpawnReason spawnReason)
    • setSpawnReason

      public void setSpawnReason(LevelledMobSpawnReason spawnReason, boolean doForce)
    • setSourceSpawnerName

      public void setSourceSpawnerName(String name)
    • getSourceSpawnerName

      @Nullable public @Nullable String getSourceSpawnerName()
    • getSourceSpawnEggName

      @Nullable public @Nullable String getSourceSpawnEggName()
    • getNameIfBaby

      @NotNull public @NotNull String getNameIfBaby()
    • isMobTamed

      public boolean isMobTamed()
    • setMobExternalType

      public void setMobExternalType(ExternalCompatibilityManager.ExternalCompatibility externalType)
    • getMobExternalTypes

      @NotNull public @NotNull List<ExternalCompatibilityManager.ExternalCompatibility> getMobExternalTypes()
    • isMobOfExternalType

      public boolean isMobOfExternalType()
    • isMobOfExternalType

      public boolean isMobOfExternalType(ExternalCompatibilityManager.ExternalCompatibility externalType)
    • hasOverridenEntityName

      public boolean hasOverridenEntityName()
    • getOverridenEntityName

      @Nullable public @Nullable String getOverridenEntityName()
    • getWGRegionName

      @NotNull public @NotNull String getWGRegionName()
    • setOverridenEntityName

      public void setOverridenEntityName(String name)
    • setShouldShowLM_Nametag

      public void setShouldShowLM_Nametag(boolean doShow)
    • getShouldShowLM_Nametag

      public boolean getShouldShowLM_Nametag()
    • setSpawnedTimeOfDay

      public void setSpawnedTimeOfDay(int ticks)
      Specified by:
      setSpawnedTimeOfDay in interface LivingEntityInterface
    • getSpawnedTimeOfDay

      public int getSpawnedTimeOfDay()
      Specified by:
      getSpawnedTimeOfDay in interface LivingEntityInterface
    • getSummonedLevel

      public Integer getSummonedLevel()
      Specified by:
      getSummonedLevel in interface LivingEntityInterface
    • isWasSummoned

      public boolean isWasSummoned()
      Specified by:
      isWasSummoned in interface LivingEntityInterface
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object