InstantaneousMobEffect .java

net.minecraft.world.effect.InstantaneousMobEffect (class, 18 lines): extends MobEffect. members: isInstantaneous, shouldApplyEffectTickThisTick.

net.minecraft.world.effectclass18 linescommonextends MobEffect424 B

API Surface (2)

boolean isInstantaneous()
boolean shouldApplyEffectTickThisTick(final int remainingDuration, final int amplification)

Code Graph: Dependencies (2)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

InstantaneousMobEffect.java18 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.effect;
2
3
public class InstantaneousMobEffect extends MobEffect {
4
	public InstantaneousMobEffect(final MobEffectCategory category, final int color) {
5
		super(category, color);
6
	}
7
8
	@Override
9
	public boolean isInstantaneous() {
10
		return true;
11
	}
12
13
	@Override
14
	public boolean shouldApplyEffectTickThisTick(final int remainingDuration, final int amplification) {
15
		return remainingDuration >= 1;
16
	}
17
}
18

Decompiled Minecraft 26.3 source of InstantaneousMobEffect (net/minecraft/world/effect/InstantaneousMobEffect.java) with Mojang official mappings, stored verbatim on the site.