Class SefiSlimefunItem<T extends SefiSlimefunItem<T>>
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
dev.sefiraat.sefilib.slimefun.items.SefiSlimefunItem<T>
- Type Parameters:
T- TheSlimefunItemthat is created by this class.
- All Implemented Interfaces:
io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
- Direct Known Subclasses:
SefiBlock
public class SefiSlimefunItem<T extends SefiSlimefunItem<T>>
extends io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
This class is used to create a new
SlimefunItem that is more suited to chainable method calls and
in-line registration.
On its own, without extending, it just allows registration of the SlimefunItem without declaring first.-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionSefiSlimefunItem(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe) Creates a newSefiSlimefunItem.SefiSlimefunItem(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe, ItemStack recipeOutput) Creates a newSefiSlimefunItem. -
Method Summary
Modifier and TypeMethodDescriptionprotected TgetThis()Returns this objectregisterItem(io.github.thebusybiscuit.slimefun4.api.SlimefunAddon addon) Registers this item withSlimefun.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, 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
-
SefiSlimefunItem
public SefiSlimefunItem(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe) Creates a newSefiSlimefunItem.- Parameters:
itemGroup- TheItemGroupthis item belongs to.item- TheSlimefunItemStackthat is used to create this item.recipeType- TheRecipeTypeof this item.recipe- The recipe of this item.
-
SefiSlimefunItem
public SefiSlimefunItem(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe, @Nullable ItemStack recipeOutput) Creates a newSefiSlimefunItem.- Parameters:
itemGroup- TheItemGroupthis item belongs to.item- TheSlimefunItemStackthat is used to create this item.recipeType- TheRecipeTypeof this item.recipe- The recipe of this item.recipeOutput- The recipe output of this item.
-
-
Method Details
-
getThis
Returns this object- Returns:
- this object
-
registerItem
Registers this item withSlimefun.- Parameters:
addon- TheSlimefunAddonthat is registering this item.- Returns:
- this object
-