DamageBlockEvent
Package: com.hypixel.hytale.server.core.event.events.ecs
public class DamageBlockEvent extends CancellableEcsEventA cancellable ECS event fired when the corresponding DamageBlock action occurs.
Fields
Section titled “Fields”| Modifier | Type | Name |
|---|---|---|
@Nullable private final | ItemStack | itemInHand |
@Nonnull private | Vector3i | targetBlock |
@Nonnull private final | BlockType | blockType |
private final | float | currentDamage |
private | float | damage |
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
public | DamageBlockEvent(@Nullable ItemStack itemInHand, @Nonnull Vector3i targetBlock, @Nonnull BlockType blockType, float currentDamage, float damage) | |
@Nullable public | ItemStack | getItemInHand() |
@Nonnull public | Vector3i | getTargetBlock() |
public | void | setTargetBlock(@Nonnull Vector3i targetBlock) |
@Nonnull public | BlockType | getBlockType() |
public | float | getCurrentDamage() |
public | float | getDamage() |
public | void | setDamage(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.