All Superinterfaces:
ItemAttribute
All Known Implementing Classes:
HardenedGlass, WitherProofBlock

public interface WitherProof extends ItemAttribute
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 Type
    Method
    Description
    void
    onAttack(Block block, Wither wither)
    This method is called when a Wither tried to attack the given Block.

    Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute

    getId
  • Method Details

    • onAttack

      void onAttack(@Nonnull Block block, @Nonnull Wither wither)
      This method is called when a Wither tried to attack the given Block. You can use this method to play particles or even damage the Wither.
      Parameters:
      block - The Block which was attacked.
      wither - The Wither who attacked.