Class SpawnDistanceStrategy
java.lang.Object
me.lokka30.levelledmobs.rules.strategies.SpawnDistanceStrategy
- All Implemented Interfaces:
Cloneable,LevellingStrategy
Holds the configuration and logic for applying a levelling system that is based upon the distance
from the world spawn
- Since:
- 3.0.0
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgenerateLevel(@Nullable LivingEntityWrapper lmEntity, int minLevel, int maxLevel) voidmergeRule(LevellingStrategy levellingStrategy) toString()
-
Field Details
-
startDistance
-
increaseLevelDistance
-
spawnLocation_X
-
spawnLocation_Z
-
blendedLevellingEnabled
-
transition_Y_Height
-
multiplierPeriod
-
lvlMultiplier
-
scaleDownward
-
-
Constructor Details
-
SpawnDistanceStrategy
public SpawnDistanceStrategy()
-
-
Method Details
-
mergeRule
- Specified by:
mergeRulein interfaceLevellingStrategy
-
toString
-
generateLevel
public int generateLevel(@Nullable @Nullable LivingEntityWrapper lmEntity, int minLevel, int maxLevel) - Specified by:
generateLevelin interfaceLevellingStrategy
-
cloneItem
- Specified by:
cloneItemin interfaceLevellingStrategy
-