Class EnvironmentManager
java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.EnvironmentManager
Controls what instance of the
EnvironmentManager is to be used by Thermoo events-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EnvironmentManagerSingleton instance of this class -
Method Summary
Modifier and TypeMethodDescriptionvoidsetController(EnvironmentController controller) Sets the defaultEnvironmentControllerto be used by Thermoo events.
-
Field Details
-
INSTANCE
Singleton instance of this class
-
-
Method Details
-
getController
- Returns:
- Returns the current default
EnvironmentControllerused by Thermoo events
-
setController
Sets the defaultEnvironmentControllerto be used by Thermoo events.If this is NOT set, then it will be set to a default instance provided by Thermoo.
NOTE: This will override the existing event, so be careful that no other mods are using this!
- Parameters:
controller- The controller to set
-