Class AutoDrier
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
io.github.thebusybiscuit.slimefun4.implementation.items.electric.machines.AutoDrier
- All Implemented Interfaces:
EnergyNetComponent
,ItemAttribute
,MachineProcessHolder<CraftingOperation>
,NotHopperable
,Placeable
,RecipeDisplayItem
,InventoryBlock
The
AutoDrier
is an implementation of AContainer
that features recipes
related to "drying out" items.
It also allows you to convert Rotten Flesh into Leather.- Author:
- Linox
-
Field Summary
Fields inherited from class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
recipes
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
-
Constructor Summary
ConstructorDescriptionAutoDrier
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionThis is the list of items to display alongside thisSlimefunItem
.This method returns an internal identifier that is used to identify thisAContainer
and its recipes.This method returns theItemStack
that thisAContainer
will use as a progress bar.protected void
This method registers all default recipes for this machine.Methods inherited from class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
constructMenu, findNextRecipe, getCapacity, getEnergyComponentType, getEnergyConsumption, getInputSlots, getInventoryTitle, getMachineProcessor, getMachineRecipes, getOutputSlots, getSpeed, onBlockBreak, preRegister, register, registerRecipe, registerRecipe, registerRecipe, setCapacity, setEnergyConsumption, setProcessingSpeed, takeCharge, tick
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, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isItemStackImmutable, isTicking, isUseableInWorkbench, load, postRegister, 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.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.slimefun4.core.attributes.ItemAttribute
getId
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.RecipeDisplayItem
getLabelLocalPath, getRecipeSectionLabel
-
Constructor Details
-
AutoDrier
@ParametersAreNonnullByDefault public AutoDrier(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
registerDefaultRecipes
protected void registerDefaultRecipes()Description copied from class:AContainer
This method registers all default recipes for this machine.- Overrides:
registerDefaultRecipes
in classAContainer
-
getProgressBar
Description copied from class:AContainer
This method returns theItemStack
that thisAContainer
will use as a progress bar. Override this method to set the progress bar.- Specified by:
getProgressBar
in classAContainer
- Returns:
- The
ItemStack
to use as the progress bar
-
getDisplayRecipes
Description copied from interface:RecipeDisplayItem
This is the list of items to display alongside thisSlimefunItem
. Note that these items will be filled in from top to bottom first. So if you want it to express a recipe, add your inputItemStack
and then your outputItemStack
.- Specified by:
getDisplayRecipes
in interfaceRecipeDisplayItem
- Overrides:
getDisplayRecipes
in classAContainer
- Returns:
- The recipes to display in the
SlimefunGuide
-
getMachineIdentifier
Description copied from class:AContainer
This method returns an internal identifier that is used to identify thisAContainer
and its recipes. When adding recipes to anAContainer
we will use this identifier to identify all instances of the sameAContainer
. This way we can add the recipes to all instances of the same machine. This method will be deprecated and replaced in the future- Specified by:
getMachineIdentifier
in classAContainer
- Returns:
- The identifier of this machine
-