Interface DataPack


@Experimental public sealed interface DataPack
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final @NotNull DataPack
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if this data pack is synced with the client.
  • Field Details

    • MINECRAFT_CORE

      @NotNull static final @NotNull DataPack MINECRAFT_CORE
  • Method Details

    • isSynced

      boolean isSynced()

      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.

      Returns:
      true if this data pack is synced with the client, false otherwise.