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

Method getPotionForVignette

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

Source from the content-addressed store, hash-verified

791 }
792
793 @Override
794 public PotionEffectImpl getPotionForVignette() {
795 for (rq potionEffect : getActivePlayerPotionEffects()) {
796 rp potion = getPotionByEffect(potionEffect);
797 if (potion.i()) {
798 return wrapPotionEffect(potionEffect);
799 }
800 }
801 for (rq potionEffect : getActivePlayerPotionEffects()) {
802 rp potion = getPotionByEffect(potionEffect);
803 if (!potion.i()) {
804 return wrapPotionEffect(potionEffect);
805 }
806 }
807
808 return null;
809 }
810
811 @Override
812 public List<PotionEffectImpl> getActivePotionEffects() {

Callers

nothing calls this directly

Calls 3

getPotionByEffectMethod · 0.95
wrapPotionEffectMethod · 0.95

Tested by

no test coverage detected