Class AbstractGrid
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
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbenchFields inherited from interface io.github.sefiraat.networks.slimefun.network.AdminDebuggable
DEBUG_KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractGrid(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 TypeMethodDescriptionprotected voidclearDisplay(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu) protected abstract int[]protected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStackprotected abstract intprotected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStackprotected abstract int[]getEntries(NetworkRoot networkRoot, GridCache cache) protected abstract intprotected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStackprotected abstract intprotected abstract intprotected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStackprotected abstract intprotected io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStackprotected abstract me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPresetvoidprotected voidretrieveItem(Player player, NodeDefinition definition, ItemStack itemStack, me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ClickAction action, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu) protected booleansetFilter(Player player, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu, GridCache gridCache, me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ClickAction action) protected voidtryAddItem(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu) protected voidupdateDisplay(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu) Methods inherited from class io.github.sefiraat.networks.slimefun.network.NetworkObject
addToRegistry, onBreak, preBreak, runSyncMethods 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, warnMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.sefiraat.networks.slimefun.network.AdminDebuggable
isDebug, sendDebugMessage, setDebug, toggleMethods 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
-
setFilter
-
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:
postRegisterin classio.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
-
getPreset
@Nonnull protected abstract me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset getPreset() -
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()
-