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 Summary
FieldsFields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionProgrammableAndroid(ItemGroup itemGroup, int tier, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier 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.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
-
Field Details
-
fuelTypes
-
texture
-
-
Constructor Details
-
ProgrammableAndroid
@ParametersAreNonnullByDefault public ProgrammableAndroid(ItemGroup itemGroup, int tier, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
getAndroidType
This returns theAndroidTypethat is associated with thisProgrammableAndroid.- Returns:
- The type of this
ProgrammableAndroid
-
getFuelSource
This returns theAndroidFuelSourcefor thisProgrammableAndroid. It determines what kind of fuel is required to run it.- Returns:
- The required type of fuel
-
preRegister
public 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 classSlimefunItem
-
openScript
-
openScriptDownloader
-
openScriptEditor
-
getValidScriptInstructions
-
editInstruction
-
getScript
-
setScript
-
registerFuelType
-
getLabelLocalPath
- Specified by:
getLabelLocalPathin interfaceRecipeDisplayItem
-
getDisplayRecipes
Description 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 interfaceRecipeDisplayItem- Returns:
- The recipes to display in the
SlimefunGuide
-
getInputSlots
public int[] getInputSlots()Description copied from interface:InventoryBlock- Specified by:
getInputSlotsin interfaceInventoryBlock- Returns:
- The input slots for the
Inventoryof this block
-
getOutputSlots
public int[] getOutputSlots()Description copied from interface:InventoryBlock- Specified by:
getOutputSlotsin interfaceInventoryBlock- Returns:
- The output slots for the
Inventoryof this block
-
getTier
public int getTier() -
tick
-
rotate
-
depositItems
-
refuel
-
addItems
-
move
-
attack
-
fish
-
dig
-
moveAndDig
-
chopTree
-
farm
-