MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / hasEffect

Method hasEffect

src/main/java/net/minecraft/item/ItemPotion.java:333–337  ·  view source on GitHub ↗
(ItemStack stack)

Source from the content-addressed store, hash-verified

331 }
332
333 public boolean hasEffect(ItemStack stack)
334 {
335 List<PotionEffect> list = this.getEffects(stack);
336 return list != null && !list.isEmpty();
337 }
338
339 /**
340 * returns a list of items with the same ID, but different meta (eg: dye returns 16 items)

Callers

nothing calls this directly

Calls 2

getEffectsMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected