load palettes in chunk generator

This commit is contained in:
dfsek
2021-07-15 20:01:36 -07:00
parent 9e7bab340e
commit 0bd6ff9469
5 changed files with 86 additions and 1 deletions

View File

@@ -58,4 +58,9 @@ public class ConfigurationLoadEvent implements PackEvent {
throw new ClassCastException("Cannot assign object from loader of type " + type.getTypeClass().getCanonicalName() + " to class " + clazz.getCanonicalName());
return (T) loaded;
}
@SuppressWarnings("unchecked")
public <T> T getLoadedObject() {
return (T) loaded;
}
}