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

Method getPotionForVignette

Minecraft-Utils/1.13/src/Variables.java:806–822  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

804 }
805
806 @Override
807 public PotionEffectImpl getPotionForVignette() {
808 for (aeh potionEffect : getActivePlayerPotionEffects()) {
809 aeg potion = getPotionByEffect(potionEffect);
810 if (potion.k()) {
811 return wrapPotionEffect(potionEffect);
812 }
813 }
814 for (aeh potionEffect : getActivePlayerPotionEffects()) {
815 aeg potion = getPotionByEffect(potionEffect);
816 if (!potion.k()) {
817 return wrapPotionEffect(potionEffect);
818 }
819 }
820
821 return null;
822 }
823
824 @Override
825 public List<PotionEffectImpl> getActivePotionEffects() {

Callers

nothing calls this directly

Calls 4

getPotionByEffectMethod · 0.95
wrapPotionEffectMethod · 0.95
kMethod · 0.45

Tested by

no test coverage detected