Interface IForgePotion
- All Known Implementing Classes:
Potion
public interface IForgePotion
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
allowedInCreativeTab
(Item item, CreativeModeTab tab, boolean isDefaultTab) Determines what creative tabs this potion's variant of a potion-related item (e.g.default boolean
Determines whether the potion bottle item should be enchanted.private Potion
self()
-
Method Details
-
self
-
allowedInCreativeTab
Determines what creative tabs this potion's variant of a potion-related item (e.g. bottles, tipped arrows) should appear in.- Parameters:
item
- The item being added to a creative tabtab
- The creative tab that items are being added toisDefaultTab
- whether the tab is the default tab for this item (e.g. Brewing for bottles, Combat for tipped arrows)- Returns:
- whether the given Item's variant for this enchantment should appear in the respective creative tab
-
isFoil
Determines whether the potion bottle item should be enchanted. Not called for tipped arrows or if the item is already enchanted.- Parameters:
stack
- The potion bottle- Returns:
- whether the item should appear enchanted.
-