Class RawAsset<K>

java.lang.Object
com.hypixel.hytale.assetstore.RawAsset<K>
All Implemented Interfaces:
AssetHolder<K>

@ParametersAreNullableByDefault public class RawAsset<K> extends Object implements AssetHolder<K>
  • Field Details

    • parentPath

      private final Path parentPath
    • key

      @Nullable private final K key
    • lineOffset

      private final int lineOffset
    • parentKeyResolved

      private final boolean parentKeyResolved
    • parentKey

      @Nullable private final K parentKey
    • path

      @Nullable private final Path path
    • buffer

      @Nullable private final char[] buffer
    • containerData

      @Nullable private final AssetExtraInfo.Data containerData
    • containedAssetMode

      @Nonnull private final ContainedAssetCodec.Mode containedAssetMode
  • Constructor Details

  • Method Details

    • getKey

      @Nullable public K getKey()
    • isParentKeyResolved

      public boolean isParentKeyResolved()
    • getParentKey

      @Nullable public K getParentKey()
    • getPath

      @Nullable public Path getPath()
    • getParentPath

      public Path getParentPath()
    • getLineOffset

      public int getLineOffset()
    • getBuffer

      public char[] getBuffer()
    • getContainedAssetMode

      @Nonnull public ContainedAssetCodec.Mode 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

      @Nonnull public RawAsset<K> withResolveKeys(K key, K parentKey)
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object