Class PackMeta.Builder

java.lang.Object
kr.toxicity.model.api.pack.PackMeta.Builder
Enclosing class:
PackMeta

public static final class PackMeta.Builder extends Object
Builder for PackMeta.
Since:
1.15.2
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • description

      @NotNull public @NotNull PackMeta.Builder description(@NotNull @NotNull String description)
      Sets the pack description.
      Parameters:
      description - the description
      Returns:
      this builder
      Since:
      1.15.2
    • format

      @NotNull public @NotNull PackMeta.Builder format(int format)
      Sets the pack format.
      Parameters:
      format - the format version
      Returns:
      this builder
      Since:
      1.15.2
    • overlayEntry

      @NotNull public @NotNull PackMeta.Builder overlayEntry(@NotNull @NotNull PackMeta.OverlayEntry overlayEntry)
      Adds an overlay entry.
      Parameters:
      overlayEntry - the overlay entry to add
      Returns:
      this builder
      Since:
      1.15.2
    • supportedFormats

      @NotNull public @NotNull PackMeta.Builder supportedFormats(@NotNull @NotNull PackMeta.VersionRange range)
      Sets the supported formats range.
      Parameters:
      range - the version range
      Returns:
      this builder
      Since:
      1.15.2
    • minFormat

      @NotNull public @NotNull PackMeta.Builder minFormat(@NotNull @NotNull PackMeta.PackVersion version)
      Sets the minimum supported format.
      Parameters:
      version - the minimum version
      Returns:
      this builder
      Since:
      1.15.2
    • maxFormat

      @NotNull public @NotNull PackMeta.Builder maxFormat(@NotNull @NotNull PackMeta.PackVersion version)
      Sets the maximum supported format.
      Parameters:
      version - the maximum version
      Returns:
      this builder
      Since:
      1.15.2
    • build

      @NotNull public @NotNull PackMeta build()
      Builds the PackMeta instance.
      Returns:
      the created pack meta
      Since:
      1.15.2