Class EntityBlockFormEvent

All Implemented Interfaces:
Cancellable

public class EntityBlockFormEvent extends BlockFormEvent
Called when a block is formed by entities.

Examples:

  • Snow formed by a Snowman.
  • Frosted Ice formed by the Frost Walker enchantment.
  • Constructor Details

    • EntityBlockFormEvent

      @Internal public EntityBlockFormEvent(@NotNull @NotNull Entity entity, @NotNull @NotNull Block block, @NotNull @NotNull BlockState blockstate)
  • Method Details

    • getEntity

      @NotNull public @NotNull Entity getEntity()
      Get the entity that formed the block.
      Returns:
      Entity involved in event