Effect.clear constructor

Effect.clear(
  1. Entity? entity, [
  2. EffectType? effect
])

You can clear an effect again.

Effect.clear(Entity.Player(),EffectType.jump_boost)
⇒ effect clear @p minecraft:jump_boost

Implementation

Effect.clear(this.entity, [this.effect]) : _type = 'clear';