Class SwordOfBeheading
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<EntityKillHandler>
io.github.thebusybiscuit.slimefun4.implementation.items.weapons.SwordOfBeheading
- All Implemented Interfaces:
Placeable
The
SwordOfBeheading
is a special kind of sword which allows you to obtain
Zombie
, Skeleton
, Creeper
and Piglin
skulls when killing the respective
Monster
.
Additionally, you can also obtain the head of a Player
by killing them too.
This sword also allows you to have a higher chance of getting the skull of a WitherSkeleton
too.
All chances are managed by an ItemSetting
and can be configured.- Author:
- TheBusyBiscuit
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
-
Constructor Summary
ConstructorDescriptionSwordOfBeheading
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionThis 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.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
SwordOfBeheading
@ParametersAreNonnullByDefault public SwordOfBeheading(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
getItemHandler
Description copied from class:SimpleSlimefunItem
This returns theItemHandler
that will be added to thisSlimefunItem
.- Specified by:
getItemHandler
in classSimpleSlimefunItem<EntityKillHandler>
- Returns:
- The
ItemHandler
that should be added to thisSlimefunItem
-