Package net.lcc.sollib.event
Class SBlockFlammabilityEvent
java.lang.Object
net.neoforged.bus.api.Event
net.lcc.sollib.event.SBlockFlammabilityEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class SBlockFlammabilityEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
SBlockFlammabilityEvent is fired when determining the flammability for a Block. This event is fired from
FireBlockMixin.This event is
ICancellableEvent to prevent later handlers from changing the value.This event does not have a result.
This event is fired on the
NeoForge.EVENT_BUS.-
Constructor Summary
ConstructorsConstructorDescriptionSBlockFlammabilityEvent(@NotNull net.minecraft.world.level.block.Block block) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.level.block.BlockgetBlock()Get the Block under examination.@Nullable FlammabilityThe resulting value of this event, the flammability for the Block.booleanvoidsetFlammability(Flammability result) Set the flammability for the given Block.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
SBlockFlammabilityEvent
public SBlockFlammabilityEvent(@NotNull @NotNull net.minecraft.world.level.block.Block block)
-
-
Method Details
-
getBlock
@NotNull public @NotNull net.minecraft.world.level.block.Block getBlock()Get the Block under examination. -
setFlammability
Set the flammability for the given Block. -
getFlammability
The resulting value of this event, the flammability for the Block. -
isFlammable
public boolean isFlammable()
-