MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / wrapPotionEffect

Method wrapPotionEffect

Minecraft-Utils/1.8.9/src/Variables.java:827–831  ·  view source on GitHub ↗
(pf potionEffect)

Source from the content-addressed store, hash-verified

825 }
826
827 private PotionEffectImpl wrapPotionEffect(pf potionEffect) {
828 pe potion = getPotionByEffect(potionEffect);
829 return new PotionEffectImpl(potion == null ? "" : potionEffect.g(), potionEffect.b(), pe.a(potionEffect), potionEffect.c() + 1, potion == null ? -1 : potion.f(),
830 potion == null || !potion.g(), true, potion == null ? 0 : potion.k());
831 }
832
833 @Override
834 public int getPotionEffectIndicatorHeight() {

Callers 2

getPotionForVignetteMethod · 0.95

Calls 7

getPotionByEffectMethod · 0.95
gMethod · 0.80
bMethod · 0.45
aMethod · 0.45
cMethod · 0.45
fMethod · 0.45
kMethod · 0.45

Tested by

no test coverage detected