Packed

A simple implementation of PackResource.

Since

1.15.2

Parameters

overlay

the overlay

path

the path

estimatedSize

the estimated size

supplier

the content supplier

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun estimatedSize(): Long
Returns the estimated size of this resource in bytes.
Link copied to clipboard
open fun get(): Array<Byte>
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun of(@NotNull path: @NotNull PackPath, size: Long, @NotNull supplier: @NotNull Supplier<Array<Byte>>): @NotNull PackResource
Creates a new pack resource for the base pack.
@NotNull
open fun of(@Nullable overlay: @Nullable PackOverlay, @NotNull path: @NotNull PackPath, size: Long, @NotNull supplier: @NotNull Supplier<Array<Byte>>): @NotNull PackResource
Creates a new pack resource for a specific overlay.
Link copied to clipboard
@Nullable
abstract fun overlay(): @Nullable PackOverlay
Returns the overlay this resource belongs to.
Link copied to clipboard
@NotNull
abstract fun path(): @NotNull PackPath
Returns the path of this resource.
Link copied to clipboard
abstract fun toString(): String