Class DisplayGroupBlock

java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
dev.sefiraat.sefilib.slimefun.blocks.DisplayGroupBlock
All Implemented Interfaces:
DisplayInteractable, io.github.thebusybiscuit.slimefun4.core.attributes.Placeable

public abstract class DisplayGroupBlock extends io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem implements DisplayInteractable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem

    addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
  • Constructor Summary

    Constructors
    Constructor
    Description
    DisplayGroupBlock(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, Function<Location,DisplayGroup> displayGroupFunction)
     
    DisplayGroupBlock(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, Function<Location,DisplayGroup> displayGroupFunction)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract Material
     
     
    getUUID(Location location)
     
    void
     
    protected void
     
    protected void
     

    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, 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
  • Field Details

  • Constructor Details

    • DisplayGroupBlock

      public DisplayGroupBlock(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, Function<Location,DisplayGroup> displayGroupFunction)
    • DisplayGroupBlock

      public DisplayGroupBlock(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, Function<Location,DisplayGroup> displayGroupFunction)
  • Method Details

    • preRegister

      @OverridingMethodsMustInvokeSuper public void preRegister()
      Overrides:
      preRegister in class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
    • whenPlaced

      protected void whenPlaced(@Nonnull BlockPlaceEvent event)
    • whenBroken

      @ParametersAreNonnullByDefault protected void whenBroken(BlockBreakEvent event, ItemStack item, List<ItemStack> drops)
    • getBaseMaterial

      @Nonnull protected abstract Material getBaseMaterial()
    • getUUID

      @Nullable @OverridingMethodsMustInvokeSuper public UUID getUUID(@Nonnull Location location)
    • getDisplayGroup

      @Nullable @OverridingMethodsMustInvokeSuper public DisplayGroup getDisplayGroup(@Nonnull Location location)