potionEffect

public ItemBuilder potionEffect(PotionType effect)

Add a potion effect to the itemstack Only applies to material type Material.POTION, or any other material types that extend it

Return

The current ItemBuilder instance

Parameters

effect

The potion effect to add onto the potion