All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.gamedata.DataPack Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
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(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy