Class RandomLevellingStrategy
java.lang.Object
me.lokka30.levelledmobs.rules.strategies.RandomLevellingStrategy
- All Implemented Interfaces:
Cloneable
,LevellingStrategy
Holds the configuration and logic for applying a levelling system that is based upon random
levelling
- Since:
- 3.1.0
-
Field Summary
Modifier and TypeFieldDescriptionboolean
boolean
boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
generateLevel
(int minLevel, int maxLevel) int
generateLevel
(@Nullable LivingEntityWrapper lmEntity, int minLevel, int maxLevel) void
mergeRule
(LevellingStrategy levellingStrategy) void
populateWeightedRandom
(int minLevel, int maxLevel) toString()
-
Field Details
-
weightedRandom
-
doMerge
public boolean doMerge -
autoGenerate
public boolean autoGenerate -
enabled
public boolean enabled
-
-
Constructor Details
-
RandomLevellingStrategy
public RandomLevellingStrategy()
-
-
Method Details
-
generateLevel
public int generateLevel(int minLevel, int maxLevel) -
generateLevel
public int generateLevel(@Nullable @Nullable LivingEntityWrapper lmEntity, int minLevel, int maxLevel) - Specified by:
generateLevel
in interfaceLevellingStrategy
-
populateWeightedRandom
public void populateWeightedRandom(int minLevel, int maxLevel) -
mergeRule
- Specified by:
mergeRule
in interfaceLevellingStrategy
-
cloneItem
- Specified by:
cloneItem
in interfaceLevellingStrategy
-
toString
-