22 lines
593 B
Java
22 lines
593 B
Java
package io.papermc.paper.datapack;
|
|
|
|
import org.jspecify.annotations.NullMarked;
|
|
|
|
/**
|
|
* Source of a datapack.
|
|
*/
|
|
@NullMarked
|
|
public sealed interface DatapackSource permits DatapackSourceImpl {
|
|
|
|
DatapackSource DEFAULT = create("default");
|
|
DatapackSource BUILT_IN = create("built_in");
|
|
DatapackSource FEATURE = create("feature");
|
|
DatapackSource WORLD = create("world");
|
|
DatapackSource SERVER = create("server");
|
|
DatapackSource PLUGIN = create("plugin");
|
|
|
|
private static DatapackSource create(final String name) {
|
|
return new DatapackSourceImpl(name);
|
|
}
|
|
}
|