@@ -0,0 +1,265 @@
+package openmods.utils;%0A%0Apublic abstract class LazyValue%3CT%3E %7B%0A%0A%09private boolean initialized;%0A%0A%09private T value;%0A%0A%09protected abstract T initialize();%0A%0A%09public T get() %7B%0A%09%09if (!initialized) %7B%0A%09%09%09value = initialize();%0A%09%09%09initialized = true;%0A%09%09%7D%0A%0A%09%09return value;%0A%09%7D%0A%0A%7D%0A

Add lazily initialized value (single threaded)