java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.server.core.event.events.ecs.UseBlockEvent
Direct Known Subclasses:
UseBlockEvent.Post, UseBlockEvent.Pre

public abstract class UseBlockEvent extends EcsEvent
  • Field Details

    • interactionType

      @Nonnull private final InteractionType interactionType
    • context

      @Nonnull private final InteractionContext context
    • targetBlock

      @Nonnull private final Vector3i targetBlock
    • blockType

      @Nonnull private final com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType
  • Constructor Details

    • UseBlockEvent

      public UseBlockEvent(@Nonnull InteractionType interactionType, @Nonnull InteractionContext context, @Nonnull Vector3i targetBlock, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType)
  • Method Details

    • getInteractionType

      @Nonnull public InteractionType getInteractionType()
    • getContext

      @Nonnull public InteractionContext getContext()
    • getTargetBlock

      @Nonnull public Vector3i getTargetBlock()
    • getBlockType

      @Nonnull public com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType getBlockType()