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
ConstructorDescriptionEnhancedFurnace
(ItemGroup itemGroup, int speed, int efficiency, int fortune, SlimefunItemStack item, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionint
This returns the fuel efficiency of thisEnhancedFurnace
.This returns theItemHandler
that will be added to thisSlimefunItem
.int
This returns the processing speed of thisEnhancedFurnace
.int
Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
preRegister
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, register, 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.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:SimpleSlimefunItem
This returns theItemHandler
that will be added to thisSlimefunItem
.- Specified by:
getItemHandler
in classSimpleSlimefunItem<BlockTicker>
- Returns:
- The
ItemHandler
that should be added to thisSlimefunItem
-