Class EnergyGenerator
java.lang.Object
io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
com.github.relativobr.supreme.libs.guizhanlib.slimefun.machines.MenuBlock
com.github.relativobr.supreme.generic.electric.EnergyGenerator
- All Implemented Interfaces:
io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent,io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetProvider,io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute,io.github.thebusybiscuit.slimefun5.core.attributes.Placeable
public final class EnergyGenerator
extends MenuBlock
implements io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetProvider
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionEnergyGenerator(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup categories, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, org.bukkit.inventory.ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionintio.github.thebusybiscuit.slimefun5.core.networks.energy.EnergyNetComponentTypeintgetGeneratedOutput(org.bukkit.Location l, me.mrCookieSlime.CSCoreLibPlugin.Configuration.Config data) protected int[]protected int[]getInputSlots(me.mrCookieSlime.Slimefun.api.inventory.DirtyChestMenu dirtyChestMenu, org.bukkit.inventory.ItemStack itemStack) protected int[]getType()setBuffer(int value) setEnergy(int value) setType(GenerationType value) protected voidsetup(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset blockMenuPreset) Methods inherited from class com.github.relativobr.supreme.libs.guizhanlib.slimefun.machines.MenuBlock
getTransportSlots, onBreak, onNewInstance, onPlace, postRegisterMethods inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, bakeTranslatedDisplay, callItemHandler, canUse, decorateBakedTemplate, equals, error, getAddon, getBlockTicker, getById, getByItem, getByItem, getDrops, getDrops, getGuideType, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isTicking, isUseableInWorkbench, load, preRegister, register, sendDeprecationWarning, setGuideType, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, setWikiText, toString, warnMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent
addCharge, getCharge, getCharge, isChargeable, removeCharge, setChargeMethods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetProvider
willExplodeMethods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute
getIdMethods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
EnergyGenerator
public EnergyGenerator(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup categories, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, org.bukkit.inventory.ItemStack[] recipe)
-
-
Method Details
-
getType
-
setType
-
setEnergy
-
setBuffer
-
getEnergyComponentType
@Nonnull public io.github.thebusybiscuit.slimefun5.core.networks.energy.EnergyNetComponentType getEnergyComponentType()- Specified by:
getEnergyComponentTypein interfaceio.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent- Specified by:
getEnergyComponentTypein interfaceio.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetProvider
-
setup
protected void setup(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset blockMenuPreset) -
getInputSlots
@Nonnull protected int[] getInputSlots(me.mrCookieSlime.Slimefun.api.inventory.DirtyChestMenu dirtyChestMenu, org.bukkit.inventory.ItemStack itemStack) - Overrides:
getInputSlotsin classMenuBlock
-
getInputSlots
protected int[] getInputSlots()- Specified by:
getInputSlotsin classMenuBlock
-
getOutputSlots
protected int[] getOutputSlots()- Specified by:
getOutputSlotsin classMenuBlock
-
getGeneratedOutput
public int getGeneratedOutput(org.bukkit.Location l, me.mrCookieSlime.CSCoreLibPlugin.Configuration.Config data) - Specified by:
getGeneratedOutputin interfaceio.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetProvider
-
getCapacity
public int getCapacity()- Specified by:
getCapacityin interfaceio.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent
-