Class VanillaAutoCrafter
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.autocrafters.AbstractAutoCrafter
io.github.thebusybiscuit.slimefun4.implementation.items.autocrafters.VanillaAutoCrafter
- All Implemented Interfaces:
EnergyNetComponent
,ItemAttribute
,Placeable
The
VanillaAutoCrafter
is an implementation of the AbstractAutoCrafter
.
It can craft items that are crafted using a normal crafting table.
Only ShapedRecipe
and ShapelessRecipe
are therefore supported.- Author:
- TheBusyBiscuit
- See Also:
-
AbstractAutoCrafter
EnhancedAutoCrafter
VanillaRecipe
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.autocrafters.AbstractAutoCrafter
background, recipeEnabledKey, recipeStorageKey
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
-
Constructor Summary
ConstructorDescriptionVanillaAutoCrafter
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the currently selectedAbstractRecipe
for the givenBlock
.protected boolean
protected void
updateRecipe
(Block b, Player p) This method is called when aPlayer
right clicks theAbstractAutoCrafter
while holding the shift button.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.autocrafters.AbstractAutoCrafter
craft, getCapacity, getEnergyComponentType, getEnergyConsumption, isValidInventory, matchesAny, onRightClick, register, setCapacity, setEnergyConsumption, setSelectedRecipe, showRecipe, 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, preRegister, 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 io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getId
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
VanillaAutoCrafter
@ParametersAreNonnullByDefault public VanillaAutoCrafter(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
getSelectedRecipe
Description copied from class:AbstractAutoCrafter
This method returns the currently selectedAbstractRecipe
for the givenBlock
.- Specified by:
getSelectedRecipe
in classAbstractAutoCrafter
- Parameters:
b
- TheBlock
- Returns:
- The currently selected
AbstractRecipe
or null
-
matches
Description copied from class:AbstractAutoCrafter
-
updateRecipe
Description copied from class:AbstractAutoCrafter
This method is called when aPlayer
right clicks theAbstractAutoCrafter
while holding the shift button. Use it to choose theAbstractRecipe
.- Specified by:
updateRecipe
in classAbstractAutoCrafter
- Parameters:
b
- TheBlock
which was clickedp
- ThePlayer
who clicked
-