Class EnvironmentControllerInitializeEvent
java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.event.EnvironmentControllerInitializeEvent
Phased event for applying environment controllers in an ordered manner.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.fabricmc.fabric.api.event.Event<EnvironmentControllerInitializeEvent.Callback>Called when theEnvironmentManagerinitializes its controller.static final net.minecraft.util.IdentifierFinal phase of environment controller initialization.static final net.minecraft.util.IdentifierFirst phase after setting values in default.static final net.minecraft.util.IdentifierOverriding phase of environment controller initialization. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MODIFY_PHASE
public static final net.minecraft.util.Identifier MODIFY_PHASEFirst phase after setting values in default. Use this to apply changes to base values. -
OVERRIDE_PHASE
public static final net.minecraft.util.Identifier OVERRIDE_PHASEOverriding phase of environment controller initialization. Use this to force override the base controllers and change values. -
LISTENER_PHASE
public static final net.minecraft.util.Identifier LISTENER_PHASEFinal phase of environment controller initialization. Controllers added in this phase should not change base values, only read them. -
EVENT
public static final net.fabricmc.fabric.api.event.Event<EnvironmentControllerInitializeEvent.Callback> EVENTCalled when theEnvironmentManagerinitializes its controller. This occurs on every server start, before worlds are created.The event runs in phases which are ordered as follows:
Event.DEFAULT_PHASE: Earliest phase, sets the initial values for the controller.MODIFY_PHASE: Modifies controller initial values (such as percentage increases).OVERRIDE_PHASE: Force override values. Used if you really want to specifically disable something or set a new value. Should never rely on base values.LISTENER_PHASE: Listener phase. Occurs last, but should not write any new values, just read and return base values.
Follow links for further details about each phase
-
-
Constructor Details
-
EnvironmentControllerInitializeEvent
public EnvironmentControllerInitializeEvent()
-