java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.blocks.WitherProofBlock
All Implemented Interfaces:
ItemAttribute, Placeable, WitherProof
Direct Known Subclasses:
HardenedGlass

public class WitherProofBlock extends SlimefunItem implements WitherProof
A quick and easy implementation of SlimefunItem that also implements the interface WitherProof. Items created with this class cannot be destroyed by a Wither.
Author:
TheBusyBiscuit
See Also:
  • Constructor Details

    • WitherProofBlock

      @ParametersAreNonnullByDefault public WitherProofBlock(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
    • WitherProofBlock

      @ParametersAreNonnullByDefault public WitherProofBlock(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe, org.bukkit.inventory.ItemStack recipeOutput)
  • Method Details

    • onAttack

      public void onAttack(org.bukkit.block.Block block, org.bukkit.entity.Wither wither)
      Description copied from interface: WitherProof
      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.
      Specified by:
      onAttack in interface WitherProof
      Parameters:
      block - The Block which was attacked.
      wither - The Wither who attacked.