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

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

    • getEntity

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