Contents
Class RawAsset<K>
java.lang.Object
com.hypixel.hytale.assetstore.RawAsset<K>
- Type Parameters:
K- The key type for the asset.
- All Implemented Interfaces:
AssetHolder<K>
A raw asset is a reference to an asset that hasn't be decoded yet.
-
Constructor Summary
ConstructorsConstructorDescriptionRawAsset(Path parentPath, K key, K parentKey, int lineOffset, char[] buffer, AssetExtraInfo.Data containerData, ContainedAssetCodec.Mode containedAssetMode) References a non-decoded asset by its path on disk without a resolved parent key. -
Method Summary
Modifier and TypeMethodDescriptionchar[]getKey()intgetPath()booleantoRawJsonReader(Supplier<char[]> bufferSupplier) toString()withResolveKeys(K key, K parentKey) Turns this RawAsset into a RawAsset with resolved keys.
-
Constructor Details
-
RawAsset
-
RawAsset
public RawAsset(Path parentPath, K key, K parentKey, int lineOffset, char[] buffer, AssetExtraInfo.Data containerData, @Nonnull ContainedAssetCodec.Mode containedAssetMode)
-
-
Method Details
-
getKey
-
isParentKeyResolved
public boolean isParentKeyResolved() -
getParentKey
-
getPath
-
getParentPath
-
getLineOffset
public int getLineOffset() -
getBuffer
public char[] getBuffer() -
getContainedAssetMode
-
toRawJsonReader
@Nonnull public RawJsonReader toRawJsonReader(@Nonnull Supplier<char[]> bufferSupplier) throws IOException - Throws:
IOException
-
makeData
@Nonnull public AssetExtraInfo.Data makeData(Class<? extends JsonAssetWithMap<K, ?>> aClass, K key, K parentKey) -
withResolveKeys
-
toString
-