All Implemented Interfaces:
ItemAttribute, Placeable, WitherProof

public class HardenedGlass extends WitherProofBlock
HardenedGlass is a special kind of block which cannot be destroyed by explosions. It is partially WitherProof, as it cannot be destroyed through explosions caused by a WitherSkull. However the Wither is still able to destroy it directly.
Author:
TheBusyBiscuit
See Also:
  • Constructor Details

    • HardenedGlass

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

    • onAttackEvent

      public void onAttackEvent(org.bukkit.event.entity.EntityChangeBlockEvent event)
      Description copied from interface: WitherProof
      This method is called when a Wither tried to attack the block. You can use this method to handle the EntityChangeBlockEvent.
      Parameters:
      event - The EntityChangeBlockEvent which was involved.