Class MagicalZombiePills
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<EntityInteractHandler>
io.github.thebusybiscuit.slimefun4.implementation.items.magical.MagicalZombiePills
- All Implemented Interfaces:
ItemAttribute,NotPlaceable,Placeable
public class MagicalZombiePills
extends SimpleSlimefunItem<EntityInteractHandler>
implements NotPlaceable
This
SlimefunItem allows you to convert any ZombieVillager to
their Villager variant. It is also one of the very few utilisations of EntityInteractHandler.- Author:
- Linox
- See Also:
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionMagicalZombiePills(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, ItemStack recipeOutput) -
Method Summary
Modifier and TypeMethodDescriptionThis returns theItemHandlerthat will be added to thisSlimefunItem.This method cancelsPlayerRightClickEventto prevent placingMagicalZombiePills.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
-
MagicalZombiePills
@ParametersAreNonnullByDefault public MagicalZombiePills(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, ItemStack recipeOutput)
-
-
Method Details
-
getItemHandler
Description copied from class:SimpleSlimefunItemThis returns theItemHandlerthat will be added to thisSlimefunItem.- Specified by:
getItemHandlerin classSimpleSlimefunItem<EntityInteractHandler>- Returns:
- The
ItemHandlerthat should be added to thisSlimefunItem
-
onRightClick
This method cancelsPlayerRightClickEventto prevent placingMagicalZombiePills.- Returns:
- the
ItemUseHandlerof thisSlimefunItem
-