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

Method getPotionForVignette

Minecraft-Utils/1.8/src/Variables.java:777–793  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

775 }
776
777 @Override
778 public PotionEffectImpl getPotionForVignette() {
779 for (wq potionEffect : getActivePlayerPotionEffects()) {
780 wp potion = getPotionByEffect(potionEffect);
781 if (potion != null && potion.g()) {
782 return wrapPotionEffect(potionEffect);
783 }
784 }
785 for (wq potionEffect : getActivePlayerPotionEffects()) {
786 wp potion = getPotionByEffect(potionEffect);
787 if (potion != null && !potion.g()) {
788 return wrapPotionEffect(potionEffect);
789 }
790 }
791
792 return null;
793 }
794
795 @Override
796 public List<PotionEffectImpl> getActivePotionEffects() {

Callers

nothing calls this directly

Calls 4

getPotionByEffectMethod · 0.95
wrapPotionEffectMethod · 0.95
gMethod · 0.80

Tested by

no test coverage detected