()
| 55 | } |
| 56 | |
| 57 | private T getValue() |
| 58 | { |
| 59 | if (!searched) { |
| 60 | this.value = ModList.get().<T>getModObjectById(this.modId).orElse(null); |
| 61 | searched = true; |
| 62 | } |
| 63 | return this.value; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * If a mod is present in this {@code OptionalMod}, returns the value, |