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
ConstructorsConstructorDescriptionAbstractQuarry(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 TypeMethodDescriptionstatic Stringformat(double number) intfinal io.github.thebusybiscuit.slimefun5.core.networks.energy.EnergyNetComponentTypeintprotected booleanisInvalidInventory(org.bukkit.block.Block block) io.github.thebusybiscuit.slimefun5.core.handlers.BlockUseHandlervoidfinal AbstractQuarrysetCapacity(int capacity) setDelaySpeed(int delaySpeed) setEffect(boolean effect) final AbstractQuarrysetEnergyConsumption(int energyConsumption) setOutput(SupremeQuarryOutput output) protected voidshowMachine(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, 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.ItemAttribute
getIdMethods 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
-
preRegister
public void preRegister()- Overrides:
preRegisterin classio.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:
getCapacityin interfaceio.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent
-
setCapacity
-
getEnergyConsumption
public int getEnergyConsumption() -
setEnergyConsumption
-
getEnergyComponentType
@Nonnull public final io.github.thebusybiscuit.slimefun5.core.networks.energy.EnergyNetComponentType getEnergyComponentType()- Specified by:
getEnergyComponentTypein interfaceio.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent
-
getOutput
-
setOutput
-
setEffect
-
setDelaySpeed
-