PrefabBufferUtil

public class PrefabBufferUtil

Class PrefabBufferUtil. Provides prefabbufferutil functionality for the Hytale server.

java.lang.Object > PrefabBufferUtil

Field Summary

reference

final WeakReference reference

Field reference.

stamp

final long stamp

Field stamp.

fileNameStr

final String fileNameStr

Field fileNameStr.

fileName

final String fileName

Field fileName.

lpfPath

final Path lpfPath

Field lpfPath.

lpfConvertedPath

final Path lpfConvertedPath

Field lpfConvertedPath.

safePackName

final String safePackName

Field safePackName.

jsonPath

final Path jsonPath

Field jsonPath.

channel

final SeekableByteChannel channel

Field channel.

size

final int size

Field size.

buf

final ByteBuf buf

Field buf.

buffer

final PrefabBuffer buffer

Field buffer.

temp

final CachedEntry[] temp

Field temp.

cached

final CachedEntry cached

Field cached.

cachedEntry

final CachedEntry cachedEntry

Field cachedEntry.

n

final int n

Field n.

Method Detail

getCached

static IPrefabBuffer getCached (@Nonnull final Path path)

Method getCached.

Parameters:
@Nonnull final Path path

loadBuffer

static PrefabBuffer loadBuffer (@Nonnull final Path path)

Method loadBuffer.

Parameters:
@Nonnull final Path path

if

public else if (lpfConvertedPath.getRoot()

Method if.

Parameters:
lpfConvertedPath.getRoot( lpfConvertedPath.getRoot(

Error

public new Error ("Error loading Prefab from " + String.valueOf(jsonPath.toAbsolutePath()

Method Error.

Parameters:
"Error loading Prefab from " + String.valueOf(jsonPath.toAbsolutePath(

writeToFileAsync

static CompletableFuture writeToFileAsync (@Nonnull final PrefabBuffer prefab, @Nonnull final Path path)

Method writeToFileAsync.

Parameters:
@Nonnull final PrefabBuffer prefab
@Nonnull final Path path

readFromFile

static PrefabBuffer readFromFile (@Nonnull final Path path)

Method readFromFile.

Parameters:
@Nonnull final Path path

readFromFileAsync

public return readFromFileAsync (path)

Method readFromFileAsync.

Parameters:
path path

SkipSentryException

public new SkipSentryException (e)

Method SkipSentryException.

Parameters:
e e

getOrCreateCacheEntry

static CachedEntry getOrCreateCacheEntry (final Path path)

Method getOrCreateCacheEntry.

Parameters:
final Path path