net.minestom.server.gamedata.DataPack Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.gamedata;
import net.minestom.server.utils.NamespaceID;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
@ApiStatus.Experimental
public sealed interface DataPack permits DataPackImpl {
@NotNull DataPack MINECRAFT_CORE = new DataPackImpl(NamespaceID.from("minecraft:core"), true);
/**
* Returns true if this data pack is synced with the client. The null data pack is never synced.
*
* In practice, this currently only makes sense for vanilla and modded content.
*
* TODO: in the future this should be based on what the client responds with known packs, I suppose.
*
* @return true if this data pack is synced with the client, false otherwise.
*/
boolean isSynced();
}