Class TemperatureStatusEvents
java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.status.v2.TemperatureStatusEvents
Events related to temperature statuses.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, TemperatureStatusEvents.AllowTemperatureStatus> Allows listeners to override whether an enabled temperature status is applied this tick. -
Method Summary
-
Field Details
-
ALLOW_TEMPERATURE_STATUS
public static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, TemperatureStatusEvents.AllowTemperatureStatus> ALLOW_TEMPERATURE_STATUSAllows listeners to override whether an enabled temperature status is applied this tick.
- Return
TriState.FALSEto suppress the status this tick. - Return
TriState.TRUEto explicitly allow it. - Return
TriState.DEFAULTto 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. - Return
-