Package org.bukkit.event.entity
Class EntityCombustByBlockEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityCombustEvent
org.bukkit.event.entity.EntityCombustByBlockEvent
- All Implemented Interfaces:
Cancellable
Called when a block causes an entity to combust.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity
-
Constructor Summary
ConstructorDescriptionEntityCombustByBlockEvent
(Block combuster, Entity combustee, float duration) EntityCombustByBlockEvent
(Block combuster, Entity combustee, int duration) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionThe combuster can be lava or a block that is on fire.Methods inherited from class org.bukkit.event.entity.EntityCombustEvent
getDuration, getHandlerList, getHandlers, isCancelled, setCancelled, setDuration, setDuration
Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntity, getEntityType
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
EntityCombustByBlockEvent
@Deprecated(since="1.21") public EntityCombustByBlockEvent(@Nullable Block combuster, @NotNull Entity combustee, int duration) Deprecated. -
EntityCombustByBlockEvent
-
-
Method Details
-
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.
-