BreakBlockEvent

public class BreakBlockEvent extends CancellableEcsEvent

Event fired when breakblock occurs. Listen for this event using EventBus.register.

java.lang.Object > CancellableEcsEvent > BreakBlockEvent

Field Summary

targetBlock

private Vector3i targetBlock

Field targetBlock.

Method Detail

BreakBlockEvent

public public BreakBlockEvent (@Nullable final ItemStack itemInHand, @Nonnull final Vector3i targetBlock, @Nonnull final BlockType blockType)

Method BreakBlockEvent.

Parameters:
@Nullable final ItemStack itemInHand
@Nonnull final Vector3i targetBlock
@Nonnull final BlockType blockType

getItemInHand

public ItemStack getItemInHand ()

Method getItemInHand.

getTargetBlock

public Vector3i getTargetBlock ()

Method getTargetBlock.

getBlockType

public BlockType getBlockType ()

Method getBlockType.

setTargetBlock

public void setTargetBlock (@Nonnull final Vector3i targetBlock)

Method setTargetBlock.

Parameters:
@Nonnull final Vector3i targetBlock