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
ConstructorsConstructorDescriptionStrangeNetherGoo(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionintImplement this method to make thisSlimefunItemhave a variable chance of being dropped by aPiglinwhen bartering with them.This returns theItemHandlerthat will be added to thisSlimefunItem.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, postRegister, 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
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:PiglinBarterDropImplement this method to make thisSlimefunItemhave a variable chance of being dropped by aPiglinwhen 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 allPiglinbarter drops. (NOTE: this feature only exists in 1.16+)- Specified by:
getBarteringLootChancein interfacePiglinBarterDrop- Returns:
- The integer chance (1-99%) this
SlimefunItemhas to drop.
-
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
-