Class UseBlockEvent.Pre
java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.server.core.event.events.ecs.UseBlockEvent
com.hypixel.hytale.server.core.event.events.ecs.UseBlockEvent.Pre
- All Implemented Interfaces:
ICancellableEcsEvent
- Enclosing class:
UseBlockEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.core.event.events.ecs.UseBlockEvent
UseBlockEvent.Post, UseBlockEvent.Pre -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPre(InteractionType interactionType, InteractionContext context, Vector3i targetBlock, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType) -
Method Summary
Methods inherited from class com.hypixel.hytale.server.core.event.events.ecs.UseBlockEvent
getBlockType, getContext, getInteractionType, getTargetBlock
-
Field Details
-
cancelled
private boolean cancelled
-
-
Constructor Details
-
Pre
public Pre(@Nonnull InteractionType interactionType, @Nonnull InteractionContext context, @Nonnull Vector3i targetBlock, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType)
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceICancellableEcsEvent
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceICancellableEcsEvent
-