206207208209210211212213214215216
Potion pot = new Potion(type); pot.setLevel(data1.asInt()); if (!pot.getType().isInstant()) pot.setHasExtendedDuration(data2.asBoolean()); pot.setSplash(data3.asBoolean()); pot.apply(item.getItemStack()); } } } }