Package me.lokka30.levelledmobs.rules
Class RulesManager
java.lang.Object
me.lokka30.levelledmobs.rules.RulesManager
Manages all rules that are parsed from rules.yml and applied to various defined mobs
- Since:
 - 3.0.0
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanboolean - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomRule(@Nullable RuleInfo ri) voidbuildBiomeGroupMappings(Map<String, Set<String>> customBiomeGroups) voidintgetAdjacentChunksToCheck(@NotNull LivingEntityWrapper lmEntity) @NotNull CachedModalList<VanillaBonusEnum>getAllowedVanillaBonuses(@NotNull LivingEntityWrapper lmEntity) @NotNull ApplicableRulesResultgetApplicableRules(LivingEntityInterface lmInterface) @NotNull String@Nullable StringgetDeathMessage(@NotNull LivingEntityWrapper lmEntity) @Nullable FineTuningAttributesgetFineTuningAttributes(@NotNull LivingEntityWrapper lmEntity) intgetMaxChunkCooldownTime(@NotNull LivingEntityWrapper lmEntity) intgetMaximumDeathInChunkThreshold(@NotNull LivingEntityWrapper lmEntity) booleangetRuleCheckIfNoDropMultiplierEntitiy(@NotNull LivingEntityWrapper lmEntity) @NotNull List<NametagVisibilityEnum>getRuleCreatureNametagVisbility(@NotNull LivingEntityWrapper lmEntity) intgetRuleCreeperMaxBlastRadius(@NotNull LivingEntityWrapper lmEntity) booleangetRuleDoLockEntity(@NotNull LivingEntityWrapper lmEntity) @Nullable StringgetRuleEntityOverriddenName(@NotNull LivingEntityWrapper lmEntity, boolean forceCustomName) getRuleExternalCompatibility(@NotNull LivingEntityWrapper lmEntity) booleangetRuleIsMobAllowedInEntityOverride(@NotNull LivingEntityInterface lmInterface) booleangetRuleIsWorldAllowedInAnyRule(@Nullable org.bukkit.World world) @Nullable LevellingStrategygetRuleLevellingStrategy(@NotNull LivingEntityWrapper lmEntity) @Nullable IntegergetRuleMaxRandomVariance(@NotNull LivingEntityWrapper lmEntity) getRuleMobCustomNameStatus(@NotNull LivingEntityWrapper lmEntity) booleangetRuleMobLevelInheritance(@NotNull LivingEntityWrapper lmEntity) intgetRuleMobMaxLevel(@NotNull LivingEntityInterface lmInterface) intgetRuleMobMinLevel(@NotNull LivingEntityInterface lmInterface) getRuleMobTamedStatus(@NotNull LivingEntityWrapper lmEntity) @NotNull StringgetRuleNametag(@NotNull LivingEntityWrapper lmEntity) @NotNull StringgetRuleNametagCreatureDeath(@NotNull LivingEntityWrapper lmEntity) @Nullable HealthIndicatorgetRuleNametagIndicator(@NotNull LivingEntityWrapper lmEntity) @Nullable StringgetRuleNametagPlaceholder(@NotNull LivingEntityWrapper lmEntity) longgetRuleNametagVisibleTime(@NotNull LivingEntityWrapper lmEntity) getRuleNbtData(@NotNull LivingEntityWrapper lmEntity) booleangetRulePassengerMatchLevel(@NotNull LivingEntityWrapper lmEntity) @Nullable PlayerLevellingOptionsgetRulePlayerLevellingOptions(@NotNull LivingEntityWrapper lmEntity) doublegetRuleSunlightBurnIntensity(@NotNull LivingEntityWrapper lmEntity) @Nullable StringgetRuleTieredPlaceholder(@NotNull LivingEntityWrapper lmEntity) @NotNull CustomDropsRuleSetgetRuleUseCustomDropsForMob(@NotNull LivingEntityWrapper lmEntity) @Nullable org.bukkit.ParticlegetSpawnerParticle(@NotNull LivingEntityWrapper lmEntity) intgetSpawnerParticleCount(@NotNull LivingEntityWrapper lmEntity) boolean@NotNull StringshowTempDisabledRules(boolean isFromConsole)  
- 
Field Details
- 
rulesInEffect
 - 
biomeGroupMappings
 - 
anyRuleHasChance
public boolean anyRuleHasChance - 
hasAnyWGCondition
public boolean hasAnyWGCondition 
 - 
 - 
Constructor Details
- 
RulesManager
 
 - 
 - 
Method Details
- 
getRuleIsWorldAllowedInAnyRule
public boolean getRuleIsWorldAllowedInAnyRule(@Nullable @Nullable org.bukkit.World world)  - 
getCurrentRulesHash
 - 
addCustomRule
 - 
getRuleNbtData
@NotNull public @NotNull List<String> getRuleNbtData(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRuleSunlightBurnIntensity
 - 
getRuleMaxRandomVariance
@Nullable public @Nullable Integer getRuleMaxRandomVariance(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRuleCheckIfNoDropMultiplierEntitiy
public boolean getRuleCheckIfNoDropMultiplierEntitiy(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRuleUseCustomDropsForMob
@NotNull public @NotNull CustomDropsRuleSet getRuleUseCustomDropsForMob(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRuleDoLockEntity
 - 
getRuleIsMobAllowedInEntityOverride
public boolean getRuleIsMobAllowedInEntityOverride(@NotNull @NotNull LivingEntityInterface lmInterface)  - 
getFineTuningAttributes
@Nullable public @Nullable FineTuningAttributes getFineTuningAttributes(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRuleExternalCompatibility
@NotNull public @NotNull Map<ExternalCompatibilityManager.ExternalCompatibility,Boolean> getRuleExternalCompatibility(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
isPlayerLevellingEnabled
public boolean isPlayerLevellingEnabled() - 
getRuleCreeperMaxBlastRadius
 - 
getRuleLevellingStrategy
@Nullable public @Nullable LevellingStrategy getRuleLevellingStrategy(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRuleMobLevelInheritance
 - 
getRuleMobCustomNameStatus
public MobCustomNameStatus getRuleMobCustomNameStatus(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRuleMobTamedStatus
 - 
getRuleMobMinLevel
 - 
getRuleMobMaxLevel
 - 
getRulePlayerLevellingOptions
@Nullable public @Nullable PlayerLevellingOptions getRulePlayerLevellingOptions(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRuleNametag
 - 
getRuleNametagPlaceholder
@Nullable public @Nullable String getRuleNametagPlaceholder(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRuleNametagCreatureDeath
@NotNull public @NotNull String getRuleNametagCreatureDeath(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRuleNametagIndicator
@Nullable public @Nullable HealthIndicator getRuleNametagIndicator(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRuleCreatureNametagVisbility
@NotNull public @NotNull List<NametagVisibilityEnum> getRuleCreatureNametagVisbility(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRuleNametagVisibleTime
 - 
getRuleTieredPlaceholder
@Nullable public @Nullable String getRuleTieredPlaceholder(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getRulePassengerMatchLevel
 - 
getRuleEntityOverriddenName
@Nullable public @Nullable String getRuleEntityOverriddenName(@NotNull @NotNull LivingEntityWrapper lmEntity, boolean forceCustomName)  - 
getSpawnerParticle
@Nullable public @Nullable org.bukkit.Particle getSpawnerParticle(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getSpawnerParticleCount
 - 
getAllowedVanillaBonuses
@NotNull public @NotNull CachedModalList<VanillaBonusEnum> getAllowedVanillaBonuses(@NotNull @NotNull LivingEntityWrapper lmEntity)  - 
getMaximumDeathInChunkThreshold
 - 
getMaxChunkCooldownTime
 - 
getAdjacentChunksToCheck
 - 
getDeathMessage
 - 
getApplicableRules
@NotNull public @NotNull ApplicableRulesResult getApplicableRules(LivingEntityInterface lmInterface)  - 
buildBiomeGroupMappings
 - 
clearTempDisabledRulesCounts
public void clearTempDisabledRulesCounts() - 
showTempDisabledRules
 
 -