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 - The SlimefunItem that 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

    Constructors
    Constructor
    Description
    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 new SefiSlimefunItem.
    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 new SefiSlimefunItem.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected T
    Returns this object
    registerItem(io.github.thebusybiscuit.slimefun4.api.SlimefunAddon addon)
    Registers this item with Slimefun.

    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, 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

    • 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 new SefiSlimefunItem.
      Parameters:
      itemGroup - The ItemGroup this item belongs to.
      item - The SlimefunItemStack that is used to create this item.
      recipeType - The RecipeType of 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 new SefiSlimefunItem.
      Parameters:
      itemGroup - The ItemGroup this item belongs to.
      item - The SlimefunItemStack that is used to create this item.
      recipeType - The RecipeType of this item.
      recipe - The recipe of this item.
      recipeOutput - The recipe output of this item.
  • Method Details

    • getThis

      protected T getThis()
      Returns this object
      Returns:
      this object
    • registerItem

      public T registerItem(io.github.thebusybiscuit.slimefun4.api.SlimefunAddon addon)
      Registers this item with Slimefun.
      Parameters:
      addon - The SlimefunAddon that is registering this item.
      Returns:
      this object