Class NuclearReactor
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.electric.AbstractEnergyProvider
io.github.thebusybiscuit.slimefun4.implementation.items.electric.reactors.Reactor
io.github.thebusybiscuit.slimefun4.implementation.items.electric.reactors.NuclearReactor
- All Implemented Interfaces:
EnergyNetComponent,EnergyNetProvider,HologramOwner,ItemAttribute,MachineProcessHolder<FuelOperation>,Placeable,RecipeDisplayItem,InventoryBlock
The
NuclearReactor is an implementation of Reactor that uses
any Radioactive material to generate energy.
It needs water coolant as well as a steady supply of Reactor Coolant Cells- Author:
- TheBusyBiscuit
- See Also:
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.electric.AbstractEnergyProvider
fuelTypesFields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNuclearReactor(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method returns the displayed icon above the fuel input slot.This method returns theItemStackthat thisAGeneratorwill use as a progress bar.protected voidThis method is used to register the default fuel types.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.electric.reactors.Reactor
getAccessPort, getCoolantSlots, getFuelSlots, getGeneratedOutput, getInputSlots, getMachineProcessor, getOutputSlots, getReactorMode, needsCooling, updateInventory, willExplodeMethods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.electric.AbstractEnergyProvider
getDisplayRecipes, getEnergyComponentType, getEnergyProduction, getFuelTypes, getInventoryTitle, getLabelLocalPath, registerFuelMethods 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, 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.EnergyNetComponent
addCharge, getCapacity, getCharge, getCharge, isChargeable, removeCharge, setChargeMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.HologramOwner
getHologramOffset, removeHologram, updateHologramMethods inherited from interface me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock
createPreset, createPresetMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getIdMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreakingMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.RecipeDisplayItem
getRecipeSectionLabel
-
Constructor Details
-
NuclearReactor
@ParametersAreNonnullByDefault protected NuclearReactor(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
registerDefaultFuelTypes
protected void registerDefaultFuelTypes()Description copied from class:AbstractEnergyProviderThis method is used to register the default fuel types.- Specified by:
registerDefaultFuelTypesin classAbstractEnergyProvider
-
getProgressBar
Description copied from class:AbstractEnergyProviderThis method returns theItemStackthat thisAGeneratorwill use as a progress bar. Override this method to set the progress bar.- Specified by:
getProgressBarin classAbstractEnergyProvider- Returns:
- The
ItemStackto use as the progress bar
-
getCoolant
Description copied from class:ReactorThis method returns theItemStackthat is required to cool thisReactor. If it returns null, then no cooling is required.- Specified by:
getCoolantin classReactor- Returns:
- The
ItemStackrequired to cool thisReactor
-
getFuelIcon
Description copied from class:ReactorThis method returns the displayed icon above the fuel input slot. It should reflect theItemStackused to power the reactor. This method does not determine the fuel input, only the icon.- Specified by:
getFuelIconin classReactor- Returns:
- The
ItemStackused as the fuel icon for thisReactor.
-
extraTick
-