Class NetworkQuantumStorage

java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.sefiraat.networks.slimefun.network.NetworkQuantumStorage
All Implemented Interfaces:
io.github.thebusybiscuit.slimefun4.core.attributes.DistinctiveItem, io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute, io.github.thebusybiscuit.slimefun4.core.attributes.Placeable

public class NetworkQuantumStorage extends io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem implements io.github.thebusybiscuit.slimefun4.core.attributes.DistinctiveItem
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

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

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

    Constructors
    Constructor
    Description
    NetworkQuantumStorage(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, int maxAmount)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canStack(ItemMeta sfItemMeta, ItemMeta itemMeta)
     
     
    static ItemStack
    getItemStack(QuantumCache cache, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu)
     
    static ItemStack
    getItemStack(QuantumCache cache, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu, int amount)
     
    int
     
    static int[]
     
    protected void
     
    protected void
     
    void
     
    void
     
    static void
    tryInputItem(Location location, ItemStack[] input, QuantumCache cache)
     

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

    getId

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

    useVanillaBlockBreaking
  • Field Details

  • Constructor Details

    • NetworkQuantumStorage

      public NetworkQuantumStorage(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, int maxAmount)
  • Method Details

    • preRegister

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

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

      protected void onBreak(@Nonnull BlockBreakEvent event)
    • onPlace

      protected void onPlace(@Nonnull BlockPlaceEvent event)
    • getMaxAmount

      public int getMaxAmount()
    • tryInputItem

      @ParametersAreNonnullByDefault public static void tryInputItem(Location location, ItemStack[] input, QuantumCache cache)
    • getItemStack

      @ParametersAreNonnullByDefault @Nullable public static ItemStack getItemStack(@Nonnull QuantumCache cache, @Nonnull me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu)
    • getItemStack

      @ParametersAreNonnullByDefault @Nullable public static ItemStack getItemStack(@Nonnull QuantumCache cache, @Nonnull me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu, int amount)
    • getCaches

      public static Map<Location,QuantumCache> getCaches()
    • getSizes

      public static int[] getSizes()
    • canStack

      public boolean canStack(@Nonnull ItemMeta sfItemMeta, @Nonnull ItemMeta itemMeta)
      Specified by:
      canStack in interface io.github.thebusybiscuit.slimefun4.core.attributes.DistinctiveItem