Skip to content

AssetPath

Package: com.hypixel.hytale.builtin.asseteditor

public record AssetPath(@Nonnull String packId, @Nonnull Path path)

Immutable pair of an asset pack identifier and a file path within that pack. Used throughout the asset editor system to uniquely identify an asset.

FieldTypeDescription
packIdStringAsset pack identifier
pathPathRelative file path within the pack
ConstantDescription
EMPTY_PATHSentinel value with empty pack ID and empty path
public AssetPath(@Nonnull String packId, @Nonnull Path path)
public AssetPath(com.hypixel.hytale.protocol.packets.asseteditor.AssetPath assetPath)

Converts from the protocol packet representation.

MethodDescription
AssetPath toPacket()Converts to the protocol packet representation with Unix-style path separators
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.