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

    Constructors
    Constructor
    Description
    EnergyGenerator(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 Type
    Method
    Description
    int
     
    io.github.thebusybiscuit.slimefun5.core.networks.energy.EnergyNetComponentType
     
    int
    getGeneratedOutput(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[]
     
     
    setBuffer(int value)
     
    setEnergy(int value)
     
     
    protected void
    setup(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset blockMenuPreset)
     

    Methods inherited from class com.github.relativobr.supreme.libs.guizhanlib.slimefun.machines.MenuBlock

    getTransportSlots, onBreak, onNewInstance, onPlace, postRegister

    Methods 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, warn

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent

    addCharge, getCharge, getCharge, isChargeable, removeCharge, setCharge

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetProvider

    willExplode

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute

    getId

    Methods 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

      public GenerationType getType()
    • setType

      public EnergyGenerator setType(GenerationType value)
    • setEnergy

      public EnergyGenerator setEnergy(int value)
    • setBuffer

      public EnergyGenerator setBuffer(int value)
    • getEnergyComponentType

      @Nonnull public io.github.thebusybiscuit.slimefun5.core.networks.energy.EnergyNetComponentType getEnergyComponentType()
      Specified by:
      getEnergyComponentType in interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent
      Specified by:
      getEnergyComponentType in interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetProvider
    • setup

      protected void setup(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset blockMenuPreset)
      Specified by:
      setup in class MenuBlock
    • getInputSlots

      @Nonnull protected int[] getInputSlots(me.mrCookieSlime.Slimefun.api.inventory.DirtyChestMenu dirtyChestMenu, org.bukkit.inventory.ItemStack itemStack)
      Overrides:
      getInputSlots in class MenuBlock
    • getInputSlots

      protected int[] getInputSlots()
      Specified by:
      getInputSlots in class MenuBlock
    • getOutputSlots

      protected int[] getOutputSlots()
      Specified by:
      getOutputSlots in class MenuBlock
    • getGeneratedOutput

      public int getGeneratedOutput(org.bukkit.Location l, me.mrCookieSlime.CSCoreLibPlugin.Configuration.Config data)
      Specified by:
      getGeneratedOutput in interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetProvider
    • getCapacity

      public int getCapacity()
      Specified by:
      getCapacity in interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent