Class TemperatureStatusEvents

java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.status.v2.TemperatureStatusEvents

public final class TemperatureStatusEvents extends Object
Events related to temperature statuses.
  • Field Details

    • ALLOW_TEMPERATURE_STATUS

      public static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, TemperatureStatusEvents.AllowTemperatureStatus> ALLOW_TEMPERATURE_STATUS

      Allows listeners to override whether an enabled temperature status is applied this tick.

      • Return TriState.FALSE to suppress the status this tick.
      • Return TriState.TRUE to explicitly allow it.
      • Return TriState.DEFAULT to abstain; the status will be allowed unless another listener suppresses it.

      If any listener returns a non-DEFAULT result, subsequent listeners are not invoked.

      This event only fires for statuses that are already enabled. It cannot be used to forcibly apply a disabled status. Use TemperatureStatusLookup.setEnabled(LivingEntity, Holder.Reference, boolean) for persistent control.