Class GoldPan
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<ItemUseHandler>
io.github.thebusybiscuit.slimefun4.implementation.items.tools.GoldPan
- All Implemented Interfaces:
ItemAttribute,Placeable,RecipeDisplayItem
- Direct Known Subclasses:
NetherGoldPan
A
GoldPan is a SlimefunItem which allows you to obtain various
resources from Gravel.- Author:
- TheBusyBiscuit, svr333, JustAHuman
- See Also:
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionGoldPan(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionList<org.bukkit.inventory.ItemStack> This is the list of items to display alongside thisSlimefunItem.protected Set<GoldPanDrop> This method returns the targetGoldPanDropsfor thisGoldPan.org.bukkit.MaterialDeprecated.Set<org.bukkit.Material> This method returns the targetMaterialsfor thisGoldPan.This returns theItemHandlerthat will be added to thisSlimefunItem.org.bukkit.inventory.ItemStackThis returns a random outputItemStackthat can be obtained via thisGoldPan.booleanisValidInput(org.bukkit.inventory.ItemStack itemStack) This returns whether theGoldPanaccepts theItemStackas an inputbooleanisValidInputMaterial(org.bukkit.Material material) This returns whether theGoldPanaccepts theMaterialas an inputThis method cancelsEntityInteractHandlerto prevent interactingGoldPanwith entities.voidThis method is called afterSlimefunItem.register(SlimefunAddon).voidDo not call this method directly.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
preRegisterMethods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, addWikiPage, callItemHandler, canUse, disable, enable, 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, loadDataByDefault, 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
useVanillaBlockBreakingMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.RecipeDisplayItem
getRecipeSectionLabel
-
Constructor Details
-
GoldPan
@ParametersAreNonnullByDefault public GoldPan(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
-
-
Method Details
-
getInputMaterial
Deprecated.since RC-36 UsegetInputMaterials()instead. -
getInputMaterials
This method returns the targetMaterialsfor thisGoldPan. -
getGoldPanDrops
This method returns the targetGoldPanDropsfor thisGoldPan.- Returns:
- The
SetofGoldPanDropsthisGoldPancan drop.
-
postRegister
public void postRegister()Description copied from class:SlimefunItemThis method is called afterSlimefunItem.register(SlimefunAddon). Override this method to add any additional setup that needs to happen after the original registration of thisSlimefunItem.- Overrides:
postRegisterin classSlimefunItem
-
updateRandomizer
public void updateRandomizer()Do not call this method directly.This method is for internal purposes only. It will update and re-calculate all weights in our
RandomizedSet. -
getRandomOutput
@Nonnull public org.bukkit.inventory.ItemStack getRandomOutput()This returns a random outputItemStackthat can be obtained via thisGoldPan.- Returns:
- a random
ItemStackobtained by thisGoldPan
-
getLabelLocalPath
- Specified by:
getLabelLocalPathin interfaceRecipeDisplayItem
-
getItemHandler
Description copied from class:SimpleSlimefunItemThis returns theItemHandlerthat will be added to thisSlimefunItem.- Specified by:
getItemHandlerin classSimpleSlimefunItem<ItemUseHandler>- Returns:
- The
ItemHandlerthat should be added to thisSlimefunItem
-
onEntityInteract
This method cancelsEntityInteractHandlerto prevent interactingGoldPanwith entities.- Returns:
- the
EntityInteractHandlerof thisSlimefunItem
-
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
-
isValidInput
public boolean isValidInput(@Nullable org.bukkit.inventory.ItemStack itemStack) This returns whether theGoldPanaccepts theItemStackas an input- Parameters:
itemStack- TheItemStackto check- Returns:
- If the
ItemStackis valid
-
isValidInputMaterial
public boolean isValidInputMaterial(@Nonnull org.bukkit.Material material) This returns whether theGoldPanaccepts theMaterialas an input- Parameters:
material- TheMaterialto check- Returns:
- If the
Materialis valid
-
getInputMaterials()instead.