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 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

      public void setFlammability(Flammability result)
      Set the flammability for the given Block.
    • getFlammability

      @Nullable public @Nullable Flammability getFlammability()
      The resulting value of this event, the flammability for the Block.
    • isFlammable

      public boolean isFlammable()