Class DamageBlockEvent

All Implemented Interfaces:
ICancellableEcsEvent

public class DamageBlockEvent extends CancellableEcsEvent
  • Field Details

    • itemInHand

      @Nullable private final ItemStack itemInHand
    • targetBlock

      @Nonnull private Vector3i targetBlock
    • blockType

      @Nonnull private final com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType
    • currentDamage

      private final float currentDamage
    • damage

      private float damage
  • Constructor Details

    • DamageBlockEvent

      public DamageBlockEvent(@Nullable ItemStack itemInHand, @Nonnull Vector3i targetBlock, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, float currentDamage, float damage)
  • Method Details

    • getItemInHand

      @Nullable public ItemStack getItemInHand()
    • getTargetBlock

      @Nonnull public Vector3i getTargetBlock()
    • setTargetBlock

      public void setTargetBlock(@Nonnull Vector3i targetBlock)
    • getBlockType

      @Nonnull public com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType getBlockType()
    • getCurrentDamage

      public float getCurrentDamage()
    • getDamage

      public float getDamage()
    • setDamage

      public void setDamage(float damage)