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
Modifier and TypeFieldDescriptionboolean
boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomRule
(@Nullable RuleInfo ri) void
buildBiomeGroupMappings
(Map<String, Set<String>> customBiomeGroups) void
int
getAdjacentChunksToCheck
(@NotNull LivingEntityWrapper lmEntity) @NotNull CachedModalList<VanillaBonusEnum>
getAllowedVanillaBonuses
(@NotNull LivingEntityWrapper lmEntity) @NotNull ApplicableRulesResult
getApplicableRules
(LivingEntityInterface lmInterface) @NotNull String
@Nullable String
getDeathMessage
(@NotNull LivingEntityWrapper lmEntity) @Nullable FineTuningAttributes
getFineTuningAttributes
(@NotNull LivingEntityWrapper lmEntity) int
getMaxChunkCooldownTime
(@NotNull LivingEntityWrapper lmEntity) int
getMaximumDeathInChunkThreshold
(@NotNull LivingEntityWrapper lmEntity) boolean
getRuleCheckIfNoDropMultiplierEntitiy
(@NotNull LivingEntityWrapper lmEntity) @NotNull List<NametagVisibilityEnum>
getRuleCreatureNametagVisbility
(@NotNull LivingEntityWrapper lmEntity) int
getRuleCreeperMaxBlastRadius
(@NotNull LivingEntityWrapper lmEntity) boolean
getRuleDoLockEntity
(@NotNull LivingEntityWrapper lmEntity) @Nullable String
getRuleEntityOverriddenName
(@NotNull LivingEntityWrapper lmEntity, boolean forceCustomName) getRuleExternalCompatibility
(@NotNull LivingEntityWrapper lmEntity) boolean
getRuleIsMobAllowedInEntityOverride
(@NotNull LivingEntityInterface lmInterface) boolean
getRuleIsWorldAllowedInAnyRule
(@Nullable org.bukkit.World world) @Nullable LevellingStrategy
getRuleLevellingStrategy
(@NotNull LivingEntityWrapper lmEntity) @Nullable Integer
getRuleMaxRandomVariance
(@NotNull LivingEntityWrapper lmEntity) getRuleMobCustomNameStatus
(@NotNull LivingEntityWrapper lmEntity) boolean
getRuleMobLevelInheritance
(@NotNull LivingEntityWrapper lmEntity) int
getRuleMobMaxLevel
(@NotNull LivingEntityInterface lmInterface) int
getRuleMobMinLevel
(@NotNull LivingEntityInterface lmInterface) getRuleMobTamedStatus
(@NotNull LivingEntityWrapper lmEntity) @NotNull String
getRuleNametag
(@NotNull LivingEntityWrapper lmEntity) @NotNull String
getRuleNametagCreatureDeath
(@NotNull LivingEntityWrapper lmEntity) @Nullable HealthIndicator
getRuleNametagIndicator
(@NotNull LivingEntityWrapper lmEntity) @Nullable String
getRuleNametagPlaceholder
(@NotNull LivingEntityWrapper lmEntity) long
getRuleNametagVisibleTime
(@NotNull LivingEntityWrapper lmEntity) getRuleNbtData
(@NotNull LivingEntityWrapper lmEntity) boolean
getRulePassengerMatchLevel
(@NotNull LivingEntityWrapper lmEntity) @Nullable PlayerLevellingOptions
getRulePlayerLevellingOptions
(@NotNull LivingEntityWrapper lmEntity) double
getRuleSunlightBurnIntensity
(@NotNull LivingEntityWrapper lmEntity) @Nullable String
getRuleTieredPlaceholder
(@NotNull LivingEntityWrapper lmEntity) @NotNull CustomDropsRuleSet
getRuleUseCustomDropsForMob
(@NotNull LivingEntityWrapper lmEntity) @Nullable org.bukkit.Particle
getSpawnerParticle
(@NotNull LivingEntityWrapper lmEntity) int
getSpawnerParticleCount
(@NotNull LivingEntityWrapper lmEntity) boolean
@NotNull String
showTempDisabledRules
(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
-