PlaceBlockEvent

public class PlaceBlockEvent extends CancellableEcsEvent

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

java.lang.Object > CancellableEcsEvent > PlaceBlockEvent

Field Summary

targetBlock

private Vector3i targetBlock

Field targetBlock.

rotation

private RotationTuple rotation

Field rotation.

Method Detail

PlaceBlockEvent

public public PlaceBlockEvent (@Nullable final ItemStack itemInHand, @Nonnull final Vector3i targetBlock, @Nonnull final RotationTuple rotation)

Method PlaceBlockEvent.

Parameters:
@Nullable final ItemStack itemInHand
@Nonnull final Vector3i targetBlock
@Nonnull final RotationTuple rotation

getItemInHand

public ItemStack getItemInHand ()

Method getItemInHand.

getTargetBlock

public Vector3i getTargetBlock ()

Method getTargetBlock.

setTargetBlock

public void setTargetBlock (@Nonnull final Vector3i targetBlock)

Method setTargetBlock.

Parameters:
@Nonnull final Vector3i targetBlock

getRotation

public RotationTuple getRotation ()

Method getRotation.

setRotation

public void setRotation (@Nonnull final RotationTuple rotation)

Method setRotation.

Parameters:
@Nonnull final RotationTuple rotation