Class RadioactiveItem
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.RadioactiveItem
- All Implemented Interfaces:
ItemAttribute,NotPlaceable,Placeable,Radioactive
A quick and easy implementation of
SlimefunItem that also implements the
interface Radioactive.
This implementation is NotPlaceable!
Simply specify a level of Radioactivity in the constructor.- Author:
- TheBusyBiscuit
- See Also:
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionRadioactiveItem(ItemGroup itemGroup, Radioactivity radioactivity, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) This will create a newRadioactiveItemwith the given level ofRadioactivityRadioactiveItem(ItemGroup itemGroup, Radioactivity radioactivity, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, ItemStack recipeOutput) This will create a newRadioactiveItemwith the given level ofRadioactivity -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the level ofRadioactivityfor thisRadioactiveitem.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, preRegister, 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 io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getIdMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
RadioactiveItem
@ParametersAreNonnullByDefault public RadioactiveItem(ItemGroup itemGroup, Radioactivity radioactivity, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) This will create a newRadioactiveItemwith the given level ofRadioactivity- Parameters:
itemGroup- TheItemGroupof thisSlimefunItemradioactivity- the level ofRadioactivityitem- theSlimefunItemStackthisSlimefunItemrepresentsrecipeType- TheRecipeTypefor this itemrecipe- The recipe of how to craft thisSlimefunItem
-
RadioactiveItem
@ParametersAreNonnullByDefault public RadioactiveItem(ItemGroup itemGroup, Radioactivity radioactivity, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, @Nullable ItemStack recipeOutput) This will create a newRadioactiveItemwith the given level ofRadioactivity- Parameters:
itemGroup- TheItemGroupof thisSlimefunItemradioactivity- the level ofRadioactivityitem- theSlimefunItemStackthisSlimefunItemrepresentsrecipeType- TheRecipeTypefor this itemrecipe- The recipe of how to craft thisSlimefunItemrecipeOutput- The recipe output
-
-
Method Details
-
getRadioactivity
Description copied from interface:RadioactiveThis method returns the level ofRadioactivityfor thisRadioactiveitem. Higher levels cause more severe radiation effects.- Specified by:
getRadioactivityin interfaceRadioactive- Returns:
- The level of
Radioactivityof this item.
-