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

Method wrapPotionEffect

Minecraft-Utils/1.13/src/Variables.java:839–849  ·  view source on GitHub ↗
(aeh potionEffect)

Source from the content-addressed store, hash-verified

837 }
838
839 private PotionEffectImpl wrapPotionEffect(aeh potionEffect) {
840 String timeString;
841 if (potionEffect.h()) {
842 timeString = "**:**";
843 } else {
844 int var2 = d((float) potionEffect.b());
845 timeString = xu.a(var2);
846 }
847 return new PotionEffectImpl(potionEffect.g(), potionEffect.b(), timeString, potionEffect.c() + 1, potionEffect.a().f(), potionEffect.a().k(), potionEffect.e(),
848 potionEffect.a().i());
849 }
850
851 public static int d(float var0) {
852 int var1 = (int) var0;

Callers 2

getPotionForVignetteMethod · 0.95

Calls 8

dMethod · 0.95
gMethod · 0.80
bMethod · 0.45
aMethod · 0.45
cMethod · 0.45
fMethod · 0.45
kMethod · 0.45
eMethod · 0.45

Tested by

no test coverage detected