Class EnhancedFurnace
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<BlockTicker>
io.github.thebusybiscuit.slimefun4.implementation.items.blocks.EnhancedFurnace
- All Implemented Interfaces:
Placeable
The
EnhancedFurnace is an upgraded version of a Furnace.
It has a custom speed, efficiency and also a level of fortune.
All of these values are tweaked for every instance of this class.
It uses a BlockTicker to manipulate the Furnace into working faster.- Author:
- TheBusyBiscuit
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionEnhancedFurnace(ItemGroup itemGroup, int speed, int efficiency, int fortune, SlimefunItemStack item, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionintThis returns the fuel efficiency of thisEnhancedFurnace.This returns theItemHandlerthat will be added to thisSlimefunItem.intThis returns the processing speed of thisEnhancedFurnace.intMethods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
preRegisterMethods 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, 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.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
EnhancedFurnace
public EnhancedFurnace(ItemGroup itemGroup, int speed, int efficiency, int fortune, SlimefunItemStack item, ItemStack[] recipe)
-
-
Method Details
-
getProcessingSpeed
public int getProcessingSpeed()This returns the processing speed of thisEnhancedFurnace.- Returns:
- The processing speed
-
getFuelEfficiency
public int getFuelEfficiency()This returns the fuel efficiency of thisEnhancedFurnace. The fuel efficiency is a multiplier that is applied to any fuel burnt in thisEnhancedFurnace.- Returns:
- The fuel multiplier
-
getRandomOutputAmount
public int getRandomOutputAmount() -
getItemHandler
Description copied from class:SimpleSlimefunItemThis returns theItemHandlerthat will be added to thisSlimefunItem.- Specified by:
getItemHandlerin classSimpleSlimefunItem<BlockTicker>- Returns:
- The
ItemHandlerthat should be added to thisSlimefunItem
-