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 TypeMethodDescriptionvoidonAttack(org.bukkit.block.Block block, org.bukkit.entity.Wither wither) This method is called when aWithertried 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 aWithertried to attack the givenBlock. You can use this method to play particles or even damage theWither.- Parameters:
block- TheBlockwhich was attacked.wither- TheWitherwho attacked.
-