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
ConstructorDescriptionVanillaItem
(ItemGroup itemGroup, ItemStack item, String id, RecipeType recipeType, ItemStack[] recipe) Instantiates a newVanillaItem
with 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, warn
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 newVanillaItem
with the given arguments.- Parameters:
itemGroup
- theItemGroup
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
-