Class EntityCombustByBlockEvent

All Implemented Interfaces:
Cancellable

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

    • EntityCombustByBlockEvent

      @Internal @Deprecated(since="1.21", forRemoval=true) public EntityCombustByBlockEvent(@Nullable @Nullable Block combuster, @NotNull @NotNull Entity combustee, int duration)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • EntityCombustByBlockEvent

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

    • getCombuster

      @Nullable public @Nullable 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.