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 targetGoldPanDrops
for thisGoldPan
.org.bukkit.Material
Deprecated.Set
<org.bukkit.Material> This method returns the targetMaterials
for thisGoldPan
.This returns theItemHandler
that will be added to thisSlimefunItem
.org.bukkit.inventory.ItemStack
This returns a random outputItemStack
that can be obtained via thisGoldPan
.boolean
isValidInput
(org.bukkit.inventory.ItemStack itemStack) This returns whether theGoldPan
accepts theItemStack
as an inputboolean
isValidInputMaterial
(org.bukkit.Material material) This returns whether theGoldPan
accepts theMaterial
as an inputThis 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, 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, 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, org.bukkit.inventory.ItemStack[] recipe)
-
-
Method Details
-
getInputMaterial
Deprecated.since RC-36 UsegetInputMaterials()
instead. -
getInputMaterials
This method returns the targetMaterials
for thisGoldPan
. -
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
@Nonnull public org.bukkit.inventory.ItemStack getRandomOutput()This returns a random outputItemStack
that can be obtained via thisGoldPan
.- Returns:
- a random
ItemStack
obtained by thisGoldPan
-
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
public boolean isValidInput(@Nullable org.bukkit.inventory.ItemStack itemStack) This returns whether theGoldPan
accepts theItemStack
as an input- Parameters:
itemStack
- TheItemStack
to check- Returns:
- If the
ItemStack
is valid
-
isValidInputMaterial
public boolean isValidInputMaterial(@Nonnull org.bukkit.Material material) This returns whether theGoldPan
accepts theMaterial
as an input- Parameters:
material
- TheMaterial
to check- Returns:
- If the
Material
is valid
-
getInputMaterials()
instead.