Class VanillaItem
- java.lang.Object
-
- me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem
-
- io.github.thebusybiscuit.slimefun4.implementation.items.VanillaItem
-
- All Implemented Interfaces:
Placeable
public class VanillaItem extends SlimefunItem
Represents a vanilla item that is overridden by Slimefun (likeELYTRA
).A
VanillaItem
uses a non-modifiedItemStack
(no display name neither lore). When aVanillaItem
gets disabled, itsItemState
goes onState.VANILLA
which automatically replace it in the recipes by its vanilla equivalent. AVanillaItem
is also automatically useable in workbenches.- Author:
- TheBusyBiscuit
- See Also:
SlimefunItem
-
-
Field Summary
-
Fields inherited from class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem
addon, category, disenchantable, enchantable, hidden, id, item, recipe, recipeOutput, recipeType, research, useableInWorkbench
-
-
Constructor Summary
Constructors Constructor Description VanillaItem(Category category, ItemStack item, String id, RecipeType recipeType, ItemStack[] recipe)
Instantiates a newVanillaItem
with the given arguments.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.thebusybiscuit.slimefun4.api.items.Placeable
onBreak, onExplode, onPlace
-
Methods inherited from class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem
addItemHandler, addOficialWikipage, bindToResearch, callItemHandler, error, getAddon, getBlockTicker, getByID, getByItem, getCategory, getDrops, getDrops, getEnergyTicker, getHandlers, getID, getItem, getItem, getItemName, getPublicItemHandlers, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, info, isAddonItem, isDisabled, isDisenchantable, isEnchantable, isHidden, isItem, isTicking, isUseableInWorkbench, load, postRegister, preRegister, register, registerBlockHandler, setCategory, setRecipe, setRecipeOutput, setRecipeType, setUseableInWorkbench, toString, warn
-
-
-
-
Constructor Detail
-
VanillaItem
public VanillaItem(Category category, ItemStack item, String id, RecipeType recipeType, ItemStack[] recipe)
Instantiates a newVanillaItem
with the given arguments.- Parameters:
category
- the category to bind thisVanillaItem
toitem
- the item corresponding to thisVanillaItem
id
- the id of thisVanillaItem
recipeType
- the type of the recipe to obtain thisVanillaItem
recipe
- the recipe to obtain thisVanillaItem
-
-