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
ConstructorDescriptionGoldPan
(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 targetGoldPanDrops
for thisGoldPan
.Deprecated.This returns theItemHandler
that will be added to thisSlimefunItem
.boolean
isValidInput
(ItemStack itemStack) boolean
isValidInputMaterial
(Material material) This method cancelsEntityInteractHandler
to prevent interactingGoldPan
with entities.void
This method is called afterSlimefunItem.register(SlimefunAddon)
.void
Do not call this method directly.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
preRegister
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, 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
Methods 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 targetGoldPanDrops
for thisGoldPan
.- Returns:
- The
Set
ofGoldPanDrops
thisGoldPan
can drop.
-
postRegister
public void postRegister()Description copied from class:SlimefunItem
This 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:
postRegister
in 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:
getLabelLocalPath
in interfaceRecipeDisplayItem
-
getItemHandler
Description copied from class:SimpleSlimefunItem
This returns theItemHandler
that will be added to thisSlimefunItem
.- Specified by:
getItemHandler
in classSimpleSlimefunItem<ItemUseHandler>
- Returns:
- The
ItemHandler
that should be added to thisSlimefunItem
-
onEntityInteract
This method cancelsEntityInteractHandler
to prevent interactingGoldPan
with entities.- Returns:
- the
EntityInteractHandler
of thisSlimefunItem
-
getDisplayRecipes
Description copied from interface:RecipeDisplayItem
This 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 inputItemStack
and then your outputItemStack
.- Specified by:
getDisplayRecipes
in interfaceRecipeDisplayItem
- Returns:
- The recipes to display in the
SlimefunGuide
-
isValidInput
-
isValidInputMaterial
-
getInputMaterials()
instead.