Interface MobEffectInstance.Builder
- Enclosing interface:
MobEffectInstance
Builds a
MobEffectInstance.- Since:
- 0.1.0
-
Method Details
-
duration
- Parameters:
duration- the duration in ticks, orMobEffectInstance.INFINITE_DURATION- Returns:
- this builder
- Throws:
IllegalArgumentException- if the duration is negative and notMobEffectInstance.INFINITE_DURATION- Since:
- 0.1.0
-
amplifier
- Parameters:
amplifier- the level minus one, from0toMobEffectInstance.MAX_AMPLIFIER- Returns:
- this builder
- Throws:
IllegalArgumentException- if the amplifier is out of range- Since:
- 0.1.0
-
ambient
- Parameters:
ambient-truefor fainter particles, as for beacon effects- Returns:
- this builder
- Since:
- 0.1.0
-
visible
- Parameters:
visible-falseto hide the swirling particles- Returns:
- this builder
- Since:
- 0.1.0
-
showIcon
- Parameters:
showIcon-falseto hide the icon from the HUD of a player- Returns:
- this builder
- Since:
- 0.1.0
-
build
-