Class NetworkProbe
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.sefiraat.networks.slimefun.tools.NetworkProbe
- All Implemented Interfaces:
CanCooldown,io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
public class NetworkProbe
extends io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
implements CanCooldown
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionNetworkProbe(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionintThe duration, in seconds, this item will go on cooldown forprotected voidonUse(io.github.thebusybiscuit.slimefun4.api.events.PlayerRightClickEvent e) 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, 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 io.github.sefiraat.networks.slimefun.tools.CanCooldown
canBeUsed, canBeUsed, putOnCooldownMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
NetworkProbe
public NetworkProbe(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
preRegister
public void preRegister()- Overrides:
preRegisterin classio.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
-
onUse
protected void onUse(io.github.thebusybiscuit.slimefun4.api.events.PlayerRightClickEvent e) -
cooldownDuration
public int cooldownDuration()Description copied from interface:CanCooldownThe duration, in seconds, this item will go on cooldown for- Specified by:
cooldownDurationin interfaceCanCooldown- Returns:
- The cooldown duration in seconds
-