PackOverlay

Represents a resource pack overlay, allowing for version-specific resources.

Overlays are used to support multiple Minecraft versions within a single resource pack.

Since

1.15.2

Parameters

packName

the name of the overlay (e.g., "legacy", "modern")

range

the version range this overlay applies to

tester

a supplier to determine if this overlay should be active

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
The default overlay (base pack).
Link copied to clipboard
The legacy overlay (for older versions).
Link copied to clipboard
The modern overlay (for newer versions).

Functions

Link copied to clipboard
open fun compareTo(@NotNull o: @NotNull PackOverlay): Int
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun path(@NotNull namespace: @NotNull String): @NotNull PackPath
Generates the root path for this overlay.
Link copied to clipboard
open fun test(): Boolean
Checks if this overlay is active.
Link copied to clipboard
abstract fun toString(): String