Class VanillaItem
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.VanillaItem
- All Implemented Interfaces:
Placeable
Represents a vanilla item that is overridden by Slimefun (like
ELYTRA).
A VanillaItem uses a non-modified ItemStack (no display name neither lore).
When a VanillaItem gets disabled, its ItemState goes on State.VANILLA which
automatically
replace it in the recipes by its vanilla equivalent.
A VanillaItem is also automatically useable in workbenches.
- Author:
- TheBusyBiscuit
- See Also:
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionVanillaItem(ItemGroup itemGroup, ItemStack item, String id, RecipeType recipeType, ItemStack[] recipe) Instantiates a newVanillaItemwith the given arguments. -
Method Summary
Methods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, callItemHandler, canUse, equals, error, getAddon, getBlockTicker, getById, getByItem, getDrops, getDrops, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isItemStackImmutable, isTicking, isUseableInWorkbench, load, postRegister, preRegister, register, sendDeprecationWarning, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, toString, warnMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
VanillaItem
@ParametersAreNonnullByDefault public VanillaItem(ItemGroup itemGroup, ItemStack item, String id, RecipeType recipeType, ItemStack[] recipe) Instantiates a newVanillaItemwith the given arguments.- Parameters:
itemGroup- theItemGroupto bind thisVanillaItemtoitem- the item corresponding to thisVanillaItemid- the id of thisVanillaItemrecipeType- the type of the recipe to obtain thisVanillaItemrecipe- the recipe to obtain thisVanillaItem
-