Class GenericMachine

java.lang.Object
io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
com.github.relativobr.supreme.generic.machine.GenericMachine
All Implemented Interfaces:
io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent, io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute, io.github.thebusybiscuit.slimefun5.core.attributes.MachineProcessHolder<io.github.thebusybiscuit.slimefun5.implementation.operations.CraftingOperation>, io.github.thebusybiscuit.slimefun5.core.attributes.NotHopperable, io.github.thebusybiscuit.slimefun5.core.attributes.Placeable, io.github.thebusybiscuit.slimefun5.core.attributes.RecipeDisplayItem, me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock
Direct Known Subclasses:
ElectricCoreFabricator, ElectricCrafter, ElectricGearFabricator, ElectricMagicalFabricator, Foundry, MagicAltar, SimpleItemContainerMachine, SimpleItemWithLargeContainerMachine

public class GenericMachine extends me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer implements io.github.thebusybiscuit.slimefun5.core.attributes.NotHopperable, io.github.thebusybiscuit.slimefun5.core.attributes.RecipeDisplayItem
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer

    recipes

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

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

    Constructors
    Constructor
    Description
    GenericMachine(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup category, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun5.api.recipes.RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    constructMenu(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset preset)
     
    protected me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe
    findNextRecipe(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu inv)
     
    int[]
     
    protected Map<org.bukkit.inventory.ItemStack,Integer>
    getConsumedItems(org.bukkit.block.Block b)
     
    List<org.bukkit.inventory.ItemStack>
     
    int[]
     
    int[]
     
     
    int[]
     
    int[]
     
    protected me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe
    getProcessing(org.bukkit.block.Block b)
     
    org.bukkit.inventory.ItemStack
     
    protected int
    getProgressTime(org.bukkit.block.Block b)
     
    int
     
    int
     
    protected boolean
    isProcessing(org.bukkit.block.Block b)
     
    protected boolean
    notHasSpaceOutput(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu inv, org.bukkit.inventory.ItemStack[] result)
     
    protected io.github.thebusybiscuit.slimefun5.core.handlers.BlockBreakHandler
     
    setMachineIdentifier(String machineIdentifier)
     
     
    setTimeProcess(int timeProcess)
     
    protected void
    tick(org.bukkit.block.Block b)
     
    protected void
    updateStatusConnectEnergy(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.inventory.ItemStack itemStack)
     
    protected void
    updateStatusInvalidInput(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu)
     
    protected void
    updateStatusLoadMaterial(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.inventory.ItemStack itemStack, int attempts, int progressCount, int totalProgress)
     
    protected void
    updateStatusOutputFull(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu)
     
    protected void
    updateStatusReset(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu)
     

    Methods inherited from class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer

    getCapacity, getEnergyComponentType, getEnergyConsumption, getInventoryTitle, getMachineProcessor, getMachineRecipes, getSpeed, preRegister, register, registerDefaultRecipes, registerRecipe, registerRecipe, registerRecipe, registerRecipe, registerRecipe, setCapacity, setEnergyConsumption, setProcessingSpeed, takeCharge

    Methods inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem

    addItemHandler, addItemSetting, addOfficialWikipage, bakeTranslatedDisplay, callItemHandler, canUse, decorateBakedTemplate, equals, error, getAddon, getBlockTicker, getById, getByItem, getByItem, getDrops, getDrops, getGuideType, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isTicking, isUseableInWorkbench, load, postRegister, sendDeprecationWarning, setGuideType, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, setWikiText, toString, warn

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent

    addCharge, getCharge, getCharge, isChargeable, removeCharge, setCharge

    Methods inherited from interface me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock

    createPreset, createPreset

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute

    getId

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

    useVanillaBlockBreaking

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.RecipeDisplayItem

    getLabelLocalPath, getRecipeSectionLabel
  • Field Details

  • Constructor Details

    • GenericMachine

      @ParametersAreNonnullByDefault public GenericMachine(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup category, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun5.api.recipes.RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
  • Method Details

    • onBlockBreak

      @Nonnull protected io.github.thebusybiscuit.slimefun5.core.handlers.BlockBreakHandler onBlockBreak()
      Overrides:
      onBlockBreak in class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
    • updateStatusReset

      protected void updateStatusReset(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu)
    • updateStatusInvalidInput

      protected void updateStatusInvalidInput(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu)
    • updateStatusOutputFull

      protected void updateStatusOutputFull(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu)
    • updateStatusConnectEnergy

      protected void updateStatusConnectEnergy(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.inventory.ItemStack itemStack)
    • updateStatusLoadMaterial

      protected void updateStatusLoadMaterial(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.inventory.ItemStack itemStack, int attempts, int progressCount, int totalProgress)
    • setMachineRecipes

      public GenericMachine setMachineRecipes(@Nonnull List<AbstractItemRecipe> machineRecipes)
    • setTimeProcess

      public GenericMachine setTimeProcess(int timeProcess)
    • getTimeProcess

      public int getTimeProcess()
    • constructMenu

      protected void constructMenu(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset preset)
      Overrides:
      constructMenu in class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
    • getProgressBar

      public org.bukkit.inventory.ItemStack getProgressBar()
      Specified by:
      getProgressBar in class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
    • getInputSlots

      public int[] getInputSlots()
      Specified by:
      getInputSlots in interface me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock
      Overrides:
      getInputSlots in class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
    • getOutputSlots

      public int[] getOutputSlots()
      Specified by:
      getOutputSlots in interface me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock
      Overrides:
      getOutputSlots in class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
    • getStatusSlot

      public int getStatusSlot()
    • getBorderSlots

      public int[] getBorderSlots()
    • getInputBorderSlots

      public int[] getInputBorderSlots()
    • getOutputBorderSlots

      public int[] getOutputBorderSlots()
    • getMachineIdentifier

      @Nonnull public String getMachineIdentifier()
      Specified by:
      getMachineIdentifier in class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
    • setMachineIdentifier

      public GenericMachine setMachineIdentifier(@Nonnull String machineIdentifier)
    • tick

      protected void tick(org.bukkit.block.Block b)
      Overrides:
      tick in class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
    • getDisplayRecipes

      @Nonnull public List<org.bukkit.inventory.ItemStack> getDisplayRecipes()
      Specified by:
      getDisplayRecipes in interface io.github.thebusybiscuit.slimefun5.core.attributes.RecipeDisplayItem
      Overrides:
      getDisplayRecipes in class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
    • findNextRecipe

      protected me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe findNextRecipe(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu inv)
      Overrides:
      findNextRecipe in class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
    • getProgressTime

      protected int getProgressTime(org.bukkit.block.Block b)
    • getProcessing

      protected me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe getProcessing(org.bukkit.block.Block b)
    • getConsumedItems

      protected Map<org.bukkit.inventory.ItemStack,Integer> getConsumedItems(org.bukkit.block.Block b)
    • isProcessing

      protected boolean isProcessing(org.bukkit.block.Block b)
    • notHasSpaceOutput

      protected boolean notHasSpaceOutput(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu inv, org.bukkit.inventory.ItemStack[] result)