java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.sefiraat.networks.slimefun.network.NetworkObject
io.github.sefiraat.networks.slimefun.network.grid.AbstractGrid
All Implemented Interfaces:
AdminDebuggable, io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
Direct Known Subclasses:
NetworkCraftingGrid, NetworkGrid

public abstract class AbstractGrid extends NetworkObject
  • Field Summary

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

    addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench

    Fields inherited from interface io.github.sefiraat.networks.slimefun.network.AdminDebuggable

    DEBUG_KEY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractGrid(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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    clearDisplay(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu)
     
    protected abstract int[]
     
    protected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack
     
    protected abstract Map<Location,GridCache>
     
    protected abstract int
     
    protected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack
     
    protected abstract int[]
     
    getEntries(NetworkRoot networkRoot, GridCache cache)
     
    protected abstract int
     
    protected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack
     
    protected abstract int
     
    protected abstract int
     
    protected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack
     
    protected abstract int
     
    protected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack
     
    protected abstract me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset
     
    void
     
    protected void
    retrieveItem(Player player, NodeDefinition definition, ItemStack itemStack, me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ClickAction action, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu)
     
    protected boolean
    setFilter(Player player, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu, GridCache gridCache, me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ClickAction action)
     
    protected void
    tryAddItem(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu)
     
    protected void
    updateDisplay(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu)
     

    Methods inherited from class io.github.sefiraat.networks.slimefun.network.NetworkObject

    addToRegistry, onBreak, preBreak, runSync

    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, 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.sefiraat.networks.slimefun.network.AdminDebuggable

    isDebug, sendDebugMessage, setDebug, toggle

    Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable

    useVanillaBlockBreaking
  • Constructor Details

    • AbstractGrid

      protected AbstractGrid(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)
  • Method Details

    • tryAddItem

      protected void tryAddItem(@Nonnull me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu)
    • updateDisplay

      protected void updateDisplay(@Nonnull me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu)
    • clearDisplay

      protected void clearDisplay(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu)
    • getEntries

      @Nonnull protected List<Map.Entry<ItemStack,Integer>> getEntries(@Nonnull NetworkRoot networkRoot, @Nonnull GridCache cache)
    • setFilter

      protected boolean setFilter(@Nonnull Player player, @Nonnull me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu, @Nonnull GridCache gridCache, @Nonnull me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ClickAction action)
    • retrieveItem

      @ParametersAreNonnullByDefault protected void retrieveItem(Player player, NodeDefinition definition, @Nullable ItemStack itemStack, me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ClickAction action, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu)
    • postRegister

      public void postRegister()
      Overrides:
      postRegister in class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
    • getPreset

      @Nonnull protected abstract me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset getPreset()
    • getCacheMap

      @Nonnull protected abstract Map<Location,GridCache> getCacheMap()
    • getBackgroundSlots

      protected abstract int[] getBackgroundSlots()
    • getDisplaySlots

      protected abstract int[] getDisplaySlots()
    • getInputSlot

      protected abstract int getInputSlot()
    • getChangeSort

      protected abstract int getChangeSort()
    • getPagePrevious

      protected abstract int getPagePrevious()
    • getPageNext

      protected abstract int getPageNext()
    • getFilterSlot

      protected abstract int getFilterSlot()
    • getBlankSlotStack

      protected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack getBlankSlotStack()
    • getPagePreviousStack

      protected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack getPagePreviousStack()
    • getPageNextStack

      protected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack getPageNextStack()
    • getChangeSortStack

      protected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack getChangeSortStack()
    • getFilterStack

      protected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack getFilterStack()