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, texture
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
-
Constructor Summary
ConstructorDescriptionMinerAndroid
(ItemGroup itemGroup, int tier, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This returns theAndroidType
that is associated with thisProgrammableAndroid
.protected void
moveAndDig
(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, tick
Methods 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, warn
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock
createPreset, createPreset
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getId
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
Methods 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:ProgrammableAndroid
This returns theAndroidType
that is associated with thisProgrammableAndroid
.- Overrides:
getAndroidType
in classProgrammableAndroid
- Returns:
- The type of this
ProgrammableAndroid
-
dig
- Overrides:
dig
in classProgrammableAndroid
-
moveAndDig
@ParametersAreNonnullByDefault protected void moveAndDig(Block b, BlockMenu menu, BlockFace face, Block block) - Overrides:
moveAndDig
in classProgrammableAndroid
-