Class ProgrammableAndroid
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.androids.ProgrammableAndroid
- All Implemented Interfaces:
- ItemAttribute,- Placeable,- RecipeDisplayItem,- InventoryBlock
- Direct Known Subclasses:
- ButcherAndroid,- FarmerAndroid,- FishermanAndroid,- MinerAndroid,- WoodcutterAndroid
- 
Field SummaryFieldsFields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemaddon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
- 
Constructor SummaryConstructorsConstructorDescriptionProgrammableAndroid(ItemGroup itemGroup, int tier, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidprotected voidattack(Block b, BlockFace face, Predicate<LivingEntity> predicate) protected booleanprotected voiddepositItems(BlockMenu menu, Block facedBlock) protected voidprotected voideditInstruction(Player p, Block b, String[] script, int index) protected voidprotected voidThis returns theAndroidTypethat is associated with thisProgrammableAndroid.This is the list of items to display alongside thisSlimefunItem.This returns theAndroidFuelSourcefor thisProgrammableAndroid.int[]int[]intgetTier()protected List<Instruction>protected voidprotected voidmoveAndDig(Block b, BlockMenu menu, BlockFace face, Block block) voidopenScript(Player p, Block b, String sourceCode) protected voidopenScriptDownloader(Player p, Block b, int page) voidopenScriptEditor(Player p, Block b) voidThis method is called beforeSlimefunItem.register(SlimefunAddon).protected voidvoidregisterFuelType(MachineFuel fuel) protected voidvoidprotected voidMethods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemaddItemHandler, 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlockcreatePreset, createPresetMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttributegetIdMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.PlaceableuseVanillaBlockBreakingMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.RecipeDisplayItemgetRecipeSectionLabel
- 
Field Details- 
fuelTypes
- 
texture
 
- 
- 
Constructor Details- 
ProgrammableAndroid@ParametersAreNonnullByDefault public ProgrammableAndroid(ItemGroup itemGroup, int tier, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) 
 
- 
- 
Method Details- 
getAndroidTypeThis returns theAndroidTypethat is associated with thisProgrammableAndroid.- Returns:
- The type of this ProgrammableAndroid
 
- 
getFuelSourceThis returns theAndroidFuelSourcefor thisProgrammableAndroid. It determines what kind of fuel is required to run it.- Returns:
- The required type of fuel
 
- 
preRegisterpublic void preRegister()Description copied from class:SlimefunItemThis method is called beforeSlimefunItem.register(SlimefunAddon). Override this method to add any additional setup, adding anItemHandlerfor example.- Overrides:
- preRegisterin class- SlimefunItem
 
- 
openScript
- 
openScriptDownloader
- 
openScriptEditor
- 
getValidScriptInstructions
- 
editInstruction
- 
getScript
- 
setScript
- 
registerFuelType
- 
getLabelLocalPath- Specified by:
- getLabelLocalPathin interface- RecipeDisplayItem
 
- 
getDisplayRecipesDescription copied from interface:RecipeDisplayItemThis is the list of items to display alongside thisSlimefunItem. Note that these items will be filled in from top to bottom first. So if you want it to express a recipe, add your inputItemStackand then your outputItemStack.- Specified by:
- getDisplayRecipesin interface- RecipeDisplayItem
- Returns:
- The recipes to display in the SlimefunGuide
 
- 
getInputSlotspublic int[] getInputSlots()Description copied from interface:InventoryBlock- Specified by:
- getInputSlotsin interface- InventoryBlock
- Returns:
- The input slots for the Inventoryof this block
 
- 
getOutputSlotspublic int[] getOutputSlots()Description copied from interface:InventoryBlock- Specified by:
- getOutputSlotsin interface- InventoryBlock
- Returns:
- The output slots for the Inventoryof this block
 
- 
getTierpublic int getTier()
- 
tick
- 
rotate
- 
depositItems
- 
refuel
- 
addItems
- 
move
- 
attack
- 
fish
- 
dig
- 
moveAndDig
- 
chopTree
- 
farm
 
-