@Override
public ItemStack apply(Integer potionID) {
return new ItemStack(potionitem, 1, potionID);
}
}));
API.addSubset("Items.Potions", new ItemStackSet().with(potionitem));
API.addSubset("Items.Potions.Splash", new ItemFilter()
{
@Override
public boolean matches(ItemStack item) {
return item.getItem() == potionitem && (item.getItemDamage() & 0x4000) != 0;
}
});
ItemStackSet positivepots = new ItemStackSet();
ItemStackSet negativepots = new ItemStackSet();
ItemStackSet neutralpots = new ItemStackSet();
for (int potionID : allPotions) {
List<PotionEffect> effectlist = potionitem.getEffects(potionID);
int type = 0;
if (effectlist != null && !effectlist.isEmpty())