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