Skip to content

DamageBlockEvent

Package: com.hypixel.hytale.server.core.event.events.ecs

public class DamageBlockEvent extends CancellableEcsEvent

A cancellable ECS event fired when the corresponding DamageBlock action occurs.

ModifierTypeName
@Nullable private finalItemStackitemInHand
@Nonnull privateVector3itargetBlock
@Nonnull private finalBlockTypeblockType
private finalfloatcurrentDamage
privatefloatdamage
ModifierReturn TypeSignature
publicDamageBlockEvent(@Nullable ItemStack itemInHand, @Nonnull Vector3i targetBlock, @Nonnull BlockType blockType, float currentDamage, float damage)
@Nullable publicItemStackgetItemInHand()
@Nonnull publicVector3igetTargetBlock()
publicvoidsetTargetBlock(@Nonnull Vector3i targetBlock)
@Nonnull publicBlockTypegetBlockType()
publicfloatgetCurrentDamage()
publicfloatgetDamage()
publicvoidsetDamage(float damage)
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.