Class EnvironmentControllerInitializeEvent
java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.event.EnvironmentControllerInitializeEvent
Deprecated.
Replaced with the environment datapack registry
Phased event for applying environment controllers in an ordered manner.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.fabricmc.fabric.api.event.Event<EnvironmentControllerInitializeEvent.Callback> Deprecated.Called when theEnvironmentManagerinitializes its controller.static final net.minecraft.resources.ResourceLocationDeprecated.Final phase of environment controller initialization.static final net.minecraft.resources.ResourceLocationDeprecated.First phase after setting values in default.static final net.minecraft.resources.ResourceLocationDeprecated.Overriding phase of environment controller initialization. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MODIFY_PHASE
public static final net.minecraft.resources.ResourceLocation MODIFY_PHASEDeprecated.First phase after setting values in default. Use this to apply changes to base values. -
OVERRIDE_PHASE
public static final net.minecraft.resources.ResourceLocation OVERRIDE_PHASEDeprecated.Overriding phase of environment controller initialization. Use this to force override the base controllers and change values. -
LISTENER_PHASE
public static final net.minecraft.resources.ResourceLocation LISTENER_PHASEDeprecated.Final 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> EVENTDeprecated.Called 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()Deprecated.
-