Class EnvironmentControllerInitializeEvent

java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.event.EnvironmentControllerInitializeEvent

@Deprecated public class EnvironmentControllerInitializeEvent extends Object
Deprecated.
Phased event for applying environment controllers in an ordered manner.
  • Field Details

    • MODIFY_PHASE

      public static final net.minecraft.resources.ResourceLocation MODIFY_PHASE
      Deprecated.
      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_PHASE
      Deprecated.
      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_PHASE
      Deprecated.
      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> EVENT
      Deprecated.
      Called when the EnvironmentManager initializes its controller. This occurs on every server start, before worlds are created.

      The event runs in phases which are ordered as follows:

      1. Event.DEFAULT_PHASE: Earliest phase, sets the initial values for the controller.
      2. MODIFY_PHASE: Modifies controller initial values (such as percentage increases).
      3. 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.
      4. 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.