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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intFields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionNetworkQuantumStorage(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 TypeMethodDescriptionbooleanstatic Map<Location,QuantumCache> static ItemStackgetItemStack(QuantumCache cache, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu) static ItemStackgetItemStack(QuantumCache cache, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu, int amount) intstatic int[]getSizes()protected voidonBreak(BlockBreakEvent event) protected voidonPlace(BlockPlaceEvent event) voidvoidstatic voidtryInputItem(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, warnMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getIdMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Field Details
-
BS_AMOUNT
- See Also:
-
BS_VOID
- See Also:
-
INPUT_SLOT
public static final int INPUT_SLOT- See Also:
-
ITEM_SLOT
public static final int ITEM_SLOT- See Also:
-
ITEM_SET_SLOT
public static final int ITEM_SET_SLOT- See Also:
-
OUTPUT_SLOT
public static final int OUTPUT_SLOT- See Also:
-
-
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:
preRegisterin classio.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
-
postRegister
public void postRegister()- Overrides:
postRegisterin classio.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
-
onBreak
-
onPlace
-
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
-
getSizes
public static int[] getSizes() -
canStack
- Specified by:
canStackin interfaceio.github.thebusybiscuit.slimefun4.core.attributes.DistinctiveItem
-