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, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionThis is the list of items to display alongside thisSlimefunItem.protected Set<GoldPanDrop>This method returns the targetGoldPanDropsfor thisGoldPan.Deprecated.This returns theItemHandlerthat will be added to thisSlimefunItem.booleanisValidInput(ItemStack itemStack) booleanisValidInputMaterial(Material material) This 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, 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, 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, ItemStack[] recipe)
-
-
Method Details
-
getInputMaterial
Deprecated.since RC-36 UsegetInputMaterials()instead. -
getInputMaterials
-
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
-
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
-
isValidInputMaterial
-
getInputMaterials()instead.