Class StrangeNetherGoo
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<ItemUseHandler>
io.github.thebusybiscuit.slimefun4.implementation.items.misc.StrangeNetherGoo
- All Implemented Interfaces:
ItemAttribute
,PiglinBarterDrop
,Placeable
public class StrangeNetherGoo
extends SimpleSlimefunItem<ItemUseHandler>
implements PiglinBarterDrop
This
SlimefunItem
can only be obtained via bartering with a Piglin
, its
only current uses is the recipe for crafting the VillagerRune
.- Author:
- dNiym
- See Also:
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
-
Constructor Summary
ConstructorDescriptionStrangeNetherGoo
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionint
Implement this method to make thisSlimefunItem
have a variable chance of being dropped by aPiglin
when bartering with them.This returns theItemHandler
that will be added to thisSlimefunItem
.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, postRegister, 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
-
Constructor Details
-
StrangeNetherGoo
@ParametersAreNonnullByDefault public StrangeNetherGoo(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
getBarteringLootChance
public int getBarteringLootChance()Description copied from interface:PiglinBarterDrop
Implement this method to make thisSlimefunItem
have a variable chance of being dropped by aPiglin
when bartering with them. This interface should be used with theRecipeType.BARTER_DROP
. It is recommended that this chance is kept reasonably low to feel like a vanilla drop as a 100% chance will completely override allPiglin
barter drops. (NOTE: this feature only exists in 1.16+)- Specified by:
getBarteringLootChance
in interfacePiglinBarterDrop
- Returns:
- The integer chance (1-99%) this
SlimefunItem
has to drop.
-
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
-