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
FieldsFields inherited from class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
recipesFields inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionGenericMachine(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 TypeMethodDescriptionprotected voidconstructMenu(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset preset) protected me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipefindNextRecipe(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu inv) int[]getConsumedItems(org.bukkit.block.Block b) List<org.bukkit.inventory.ItemStack> int[]int[]int[]int[]protected me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipegetProcessing(org.bukkit.block.Block b) org.bukkit.inventory.ItemStackprotected intgetProgressTime(org.bukkit.block.Block b) intintprotected booleanisProcessing(org.bukkit.block.Block b) protected booleannotHasSpaceOutput(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu inv, org.bukkit.inventory.ItemStack[] result) protected io.github.thebusybiscuit.slimefun5.core.handlers.BlockBreakHandlersetMachineIdentifier(String machineIdentifier) setMachineRecipes(List<AbstractItemRecipe> machineRecipes) setTimeProcess(int timeProcess) protected voidtick(org.bukkit.block.Block b) protected voidupdateStatusConnectEnergy(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.inventory.ItemStack itemStack) protected voidupdateStatusInvalidInput(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu) protected voidupdateStatusLoadMaterial(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.inventory.ItemStack itemStack, int attempts, int progressCount, int totalProgress) protected voidupdateStatusOutputFull(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu) protected voidupdateStatusReset(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, takeChargeMethods 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, warnMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent
addCharge, getCharge, getCharge, isChargeable, removeCharge, setChargeMethods inherited from interface me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock
createPreset, createPresetMethods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute
getIdMethods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.Placeable
useVanillaBlockBreakingMethods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.RecipeDisplayItem
getLabelLocalPath, getRecipeSectionLabel
-
Field Details
-
machineRecipes
-
-
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:
onBlockBreakin classme.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
-
setTimeProcess
-
getTimeProcess
public int getTimeProcess() -
constructMenu
protected void constructMenu(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset preset) - Overrides:
constructMenuin classme.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
-
getProgressBar
public org.bukkit.inventory.ItemStack getProgressBar()- Specified by:
getProgressBarin classme.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
-
getInputSlots
public int[] getInputSlots()- Specified by:
getInputSlotsin interfaceme.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock- Overrides:
getInputSlotsin classme.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
-
getOutputSlots
public int[] getOutputSlots()- Specified by:
getOutputSlotsin interfaceme.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock- Overrides:
getOutputSlotsin classme.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
-
getStatusSlot
public int getStatusSlot() -
getBorderSlots
public int[] getBorderSlots() -
getInputBorderSlots
public int[] getInputBorderSlots() -
getOutputBorderSlots
public int[] getOutputBorderSlots() -
getMachineIdentifier
- Specified by:
getMachineIdentifierin classme.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
-
setMachineIdentifier
-
tick
protected void tick(org.bukkit.block.Block b) - Overrides:
tickin classme.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
-
getDisplayRecipes
- Specified by:
getDisplayRecipesin interfaceio.github.thebusybiscuit.slimefun5.core.attributes.RecipeDisplayItem- Overrides:
getDisplayRecipesin classme.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
-
findNextRecipe
protected me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe findNextRecipe(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu inv) - Overrides:
findNextRecipein classme.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
-
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)
-