Interface WitherProof
- All Superinterfaces:
ItemAttribute
- All Known Implementing Classes:
HardenedGlass
,WitherProofBlock
This Interface, when attached to a class that inherits from
SlimefunItem
, marks
the Item as "Wither-Proof".
Wither-Proof blocks cannot be destroyed by a Wither
.- Author:
- TheBusyBiscuit
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAttack
(org.bukkit.block.Block block, org.bukkit.entity.Wither wither) This method is called when aWither
tried to attack the givenBlock
.Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getId
-
Method Details
-
onAttack
void onAttack(@Nonnull org.bukkit.block.Block block, @Nonnull org.bukkit.entity.Wither wither) This method is called when aWither
tried to attack the givenBlock
. You can use this method to play particles or even damage theWither
.- Parameters:
block
- TheBlock
which was attacked.wither
- TheWither
who attacked.
-