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.
13 lines
465 B
Java
13 lines
465 B
Java
package com.volmit.block;
|
|
|
|
import com.volmit.random.WorldRandom;
|
|
|
|
/** Resolved, immutable palette. X and Z are world coordinates, Y is the height above the
|
|
* dimension's bottom (0 = bottom); selection uses only the given stream.
|
|
* An empty/unresolvable palette is a pack-load error. Implementations must support concurrent calls.
|
|
*/
|
|
@FunctionalInterface
|
|
public interface BlockPalette {
|
|
BlockState select(int worldX, int y, int worldZ, WorldRandom random);
|
|
}
|