Class YDistanceStrategy
java.lang.Object
me.lokka30.levelledmobs.rules.strategies.YDistanceStrategy
- All Implemented Interfaces:
Cloneable
,LevellingStrategy
Holds the configuration and logic for applying a levelling system that is based upon the distance
y level height
- Since:
- 3.0.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
generateLevel
(@Nullable LivingEntityWrapper lmEntity, int minLevel, int maxLevel) void
mergeRule
(LevellingStrategy levellingStrategy) toString()
-
Field Details
-
startingYLevel
-
endingYLevel
-
yPeriod
-
-
Constructor Details
-
YDistanceStrategy
public YDistanceStrategy()
-
-
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
-