We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23047cf commit 5695855Copy full SHA for 5695855
1 file changed
loader-common/src/main/java/org/cyclops/cyclopscore/config/DeferredHolderCommon.java
@@ -175,6 +175,15 @@ public ResourceKey<R> getKey() {
175
return this.key;
176
}
177
178
+ // TODO: Added as workaround for not implementing Holder directly. Not sure yet if we want this permanently.
179
+ public Holder<R> getHolder() {
180
+ bind(true);
181
+ if (holder == null) {
182
+ throw new IllegalStateException("Trying to access unbound holder: " + this.key);
183
+ }
184
+ return holder;
185
186
+
187
@Override
188
public boolean equals(Object obj) {
189
if (this == obj) return true;
0 commit comments