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
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
generateLevel
(@Nullable LivingEntityWrapper lmEntity, int minLevel, int maxLevel) void
mergeRule
(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:
mergeRule
in interfaceLevellingStrategy
-
toString
-
generateLevel
public int generateLevel(@Nullable @Nullable LivingEntityWrapper lmEntity, int minLevel, int maxLevel) - Specified by:
generateLevel
in interfaceLevellingStrategy
-
cloneItem
- Specified by:
cloneItem
in interfaceLevellingStrategy
-