Class BasicCircuitBoard
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<ItemUseHandler>
io.github.thebusybiscuit.slimefun4.implementation.items.misc.BasicCircuitBoard
- All Implemented Interfaces:
ItemAttribute
,NotPlaceable
,Placeable
,RandomMobDrop
public class BasicCircuitBoard
extends SimpleSlimefunItem<ItemUseHandler>
implements NotPlaceable, RandomMobDrop
The
BasicCircuitBoard
is a basic crafting component which can be
obtained by killing an IronGolem
.- Author:
- TheBusyBiscuit, dniym
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
-
Constructor Summary
ConstructorDescriptionBasicCircuitBoard
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionThis returns theItemHandler
that will be added to thisSlimefunItem
.int
Implement this method to make the object have a variable chance of being added to the dropList whenEntityType
specified in theRecipeType.MOB_DROP
is killed by thePlayer
.boolean
Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
preRegister
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 io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getId
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
BasicCircuitBoard
@ParametersAreNonnullByDefault public BasicCircuitBoard(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
getMobDropChance
public int getMobDropChance()Description copied from interface:RandomMobDrop
Implement this method to make the object have a variable chance of being added to the dropList whenEntityType
specified in theRecipeType.MOB_DROP
is killed by thePlayer
.- Specified by:
getMobDropChance
in interfaceRandomMobDrop
- Returns:
- The integer chance (0-100%)
SlimefunItem
has to drop.
-
isDroppedFromGolems
public boolean isDroppedFromGolems() -
getItemHandler
Description copied from class:SimpleSlimefunItem
This returns theItemHandler
that will be added to thisSlimefunItem
.- Specified by:
getItemHandler
in classSimpleSlimefunItem<ItemUseHandler>
- Returns:
- The
ItemHandler
that should be added to thisSlimefunItem
-