BreakBlockEvent
Package: com.hypixel.hytale.server.core.event.events.ecs
public class BreakBlockEvent extends CancellableEcsEventA cancellable ECS event fired when the corresponding BreakBlock action occurs.
Fields
Section titled “Fields”| Modifier | Type | Name |
|---|---|---|
@Nullable private final | ItemStack | itemInHand |
@Nonnull private | Vector3i | targetBlock |
@Nonnull private final | BlockType | blockType |
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
public | BreakBlockEvent(@Nullable ItemStack itemInHand, @Nonnull Vector3i targetBlock, @Nonnull BlockType blockType) | |
@Nullable public | ItemStack | getItemInHand() |
@Nonnull public | Vector3i | getTargetBlock() |
@Nonnull public | BlockType | getBlockType() |
public | void | setTargetBlock(@Nonnull Vector3i targetBlock) |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.