Class EntityCombustByBlockEvent

All Implemented Interfaces:
Cancellable

public class EntityCombustByBlockEvent extends EntityCombustEvent
Called when a block causes an entity to combust.
  • Constructor Details

    • EntityCombustByBlockEvent

      @Deprecated(since="1.21") public EntityCombustByBlockEvent(@Nullable Block combuster, @NotNull Entity combustee, int duration)
      Deprecated.
    • EntityCombustByBlockEvent

      public EntityCombustByBlockEvent(@Nullable Block combuster, @NotNull Entity combustee, float duration)
  • Method Details

    • getCombuster

      @Nullable public Block getCombuster()
      The combuster can be lava or a block that is on fire.

      WARNING: block may be null.

      Returns:
      the Block that set the combustee alight.