Class MinerAndroid
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.androids.ProgrammableAndroid
io.github.thebusybiscuit.slimefun4.implementation.items.androids.MinerAndroid
- All Implemented Interfaces:
ItemAttribute,Placeable,RecipeDisplayItem,InventoryBlock
The
MinerAndroid is a variant of the ProgrammableAndroid which
is able to break blocks.
The core functionalities boil down to dig(Block, BlockMenu, Block) and
moveAndDig(Block, BlockMenu, BlockFace, Block).
Otherwise the functionality is similar to a regular android.
The MinerAndroid will also fire an AndroidMineEvent when breaking a Block.
- Author:
- TheBusyBiscuit, creator3, poma123, Sfiguz7, CyberPatriot, Redemption198, Poslovitch
- See Also:
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.androids.ProgrammableAndroid
fuelTypes, textureFields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionMinerAndroid(ItemGroup itemGroup, int tier, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis returns theAndroidTypethat is associated with thisProgrammableAndroid.protected voidmoveAndDig(Block b, BlockMenu menu, BlockFace face, Block block) Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.androids.ProgrammableAndroid
addItems, attack, chopTree, depositItems, editInstruction, farm, fish, getDisplayRecipes, getFuelSource, getInputSlots, getLabelLocalPath, getOutputSlots, getScript, getTier, getValidScriptInstructions, move, openScript, openScriptDownloader, openScriptEditor, preRegister, refuel, registerFuelType, rotate, setScript, tickMethods 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, 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 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
-
MinerAndroid
@ParametersAreNonnullByDefault public MinerAndroid(ItemGroup itemGroup, int tier, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
getAndroidType
Description copied from class:ProgrammableAndroidThis returns theAndroidTypethat is associated with thisProgrammableAndroid.- Overrides:
getAndroidTypein classProgrammableAndroid- Returns:
- The type of this
ProgrammableAndroid
-
dig
- Overrides:
digin classProgrammableAndroid
-
moveAndDig
@ParametersAreNonnullByDefault protected void moveAndDig(Block b, BlockMenu menu, BlockFace face, Block block) - Overrides:
moveAndDigin classProgrammableAndroid
-