mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
- Split into Gradle subprojects api (com.volmit:iris-api) and host (com.volmit:iris-host). ExposedPackages never exposes com.volmit.host. - One unchecked ModuleLoadException(moduleId, origin, message, cause) for every load error; messages unchanged. - PlacementAccess.set(x, y, z, state) next to set(PlacedBlock). - BlockState: precompiled patterns, withProperty copies once. - Mantle and layer views are made once per invocation. - Hunk getters are width(), height(), depth(). - Held types and host types are deprecated for removal at the cut-over. - Docs: artifacts, one-or-more modules per jar, no option shorthand.
15 lines
625 B
Java
15 lines
625 B
Java
package com.volmit.config;
|
|
|
|
import java.lang.annotation.*;
|
|
|
|
/** Says that an option names a resource of the module resource kind read into {@code value}, by its key in the
|
|
* pack, such as {@code @ResourceRef(Pool.class) String startPool = "castle/start"}. Studio then offers the keys
|
|
* of that kind's files. Allowed on {@code String} options and lists, sets and arrays of them; the class must be
|
|
* the type of a resource kind some module of the pack registers. Anywhere else it fails the pack load.
|
|
*/
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Target(ElementType.FIELD)
|
|
public @interface ResourceRef {
|
|
Class<?> value();
|
|
}
|