PackPath

Represents a path within a resource pack.

This record encapsulates a string path and provides utility methods for resolving sub-paths. It implements Comparable for sorting purposes.

Since

1.15.2

Parameters

path

the string representation of the path

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val DELIMITER: String = "/"
The delimiter used for path separation.
Link copied to clipboard
An empty pack path.

Functions

Link copied to clipboard
open fun compareTo(@NotNull o: @NotNull PackPath): Int
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun name(): @NotNull String
Returns the name of the file or directory represented by this path.
Link copied to clipboard
@NotNull
open fun resolve(@NotNull subPaths: Array<@NotNull String>): @NotNull PackPath
Resolves a sub-path relative to this path.
Link copied to clipboard
@NotNull
open fun toString(): @NotNull String