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
ConstructorDescriptionRadioactiveItem
(ItemGroup itemGroup, Radioactivity radioactivity, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) This will create a newRadioactiveItem
with the given level ofRadioactivity
RadioactiveItem
(ItemGroup itemGroup, Radioactivity radioactivity, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, ItemStack recipeOutput) This will create a newRadioactiveItem
with the given level ofRadioactivity
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the level ofRadioactivity
for thisRadioactive
item.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, 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
-
RadioactiveItem
@ParametersAreNonnullByDefault public RadioactiveItem(ItemGroup itemGroup, Radioactivity radioactivity, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) This will create a newRadioactiveItem
with the given level ofRadioactivity
- Parameters:
itemGroup
- TheItemGroup
of thisSlimefunItem
radioactivity
- the level ofRadioactivity
item
- theSlimefunItemStack
thisSlimefunItem
representsrecipeType
- TheRecipeType
for 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 newRadioactiveItem
with the given level ofRadioactivity
- Parameters:
itemGroup
- TheItemGroup
of thisSlimefunItem
radioactivity
- the level ofRadioactivity
item
- theSlimefunItemStack
thisSlimefunItem
representsrecipeType
- TheRecipeType
for this itemrecipe
- The recipe of how to craft thisSlimefunItem
recipeOutput
- The recipe output
-
-
Method Details
-
getRadioactivity
Description copied from interface:Radioactive
This method returns the level ofRadioactivity
for thisRadioactive
item. Higher levels cause more severe radiation effects.- Specified by:
getRadioactivity
in interfaceRadioactive
- Returns:
- The level of
Radioactivity
of this item.
-