Class AbstractQuarry

java.lang.Object
io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
com.github.relativobr.supreme.machine.AbstractQuarry
All Implemented Interfaces:
io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent, io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute, io.github.thebusybiscuit.slimefun5.core.attributes.Placeable

public class AbstractQuarry extends io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem implements io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent
  • Field Summary

    Fields inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem

    addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractQuarry(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup category, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack machine, org.bukkit.inventory.ItemStack[] recipe)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    format(double number)
     
    int
     
    final io.github.thebusybiscuit.slimefun5.core.networks.energy.EnergyNetComponentType
     
    int
     
     
    protected boolean
    isInvalidInventory(org.bukkit.block.Block block)
     
    io.github.thebusybiscuit.slimefun5.core.handlers.BlockUseHandler
     
    void
     
    setCapacity(int capacity)
     
    setDelaySpeed(int delaySpeed)
     
    setEffect(boolean effect)
     
    setEnergyConsumption(int energyConsumption)
     
     
    protected void
    showMachine(org.bukkit.entity.Player p, org.bukkit.block.Block b)
     

    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, postRegister, 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.ItemAttribute

    getId

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

    useVanillaBlockBreaking
  • Constructor Details

    • AbstractQuarry

      @ParametersAreNonnullByDefault public AbstractQuarry(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup category, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack machine, org.bukkit.inventory.ItemStack[] recipe)
  • Method Details

    • format

      @Nonnull public static String format(double number)
    • preRegister

      public void preRegister()
      Overrides:
      preRegister in class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
    • onRightClick

      @Nonnull public io.github.thebusybiscuit.slimefun5.core.handlers.BlockUseHandler onRightClick()
    • showMachine

      @ParametersAreNonnullByDefault protected void showMachine(org.bukkit.entity.Player p, org.bukkit.block.Block b)
    • isInvalidInventory

      protected boolean isInvalidInventory(@Nonnull org.bukkit.block.Block block)
    • getCapacity

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

      @Nonnull public final AbstractQuarry setCapacity(int capacity)
    • getEnergyConsumption

      public int getEnergyConsumption()
    • setEnergyConsumption

      @Nonnull public final AbstractQuarry setEnergyConsumption(int energyConsumption)
    • getEnergyComponentType

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

      public SupremeQuarryOutput getOutput()
    • setOutput

      public AbstractQuarry setOutput(SupremeQuarryOutput output)
    • setEffect

      public AbstractQuarry setEffect(boolean effect)
    • setDelaySpeed

      public AbstractQuarry setDelaySpeed(int delaySpeed)