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
Method getCached.
- Parameters:
@Nonnull final Pathpath
loadBuffer
Method loadBuffer.
- Parameters:
@Nonnull final Pathpath
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 PrefabBufferprefab@Nonnull final Pathpath
readFromFile
Method readFromFile.
- Parameters:
@Nonnull final Pathpath
readFromFileAsync
public
return
readFromFileAsync
(path)
Method readFromFileAsync.
- Parameters:
pathpath
SkipSentryException
public
new
SkipSentryException
(e)
Method SkipSentryException.
- Parameters:
ee
getOrCreateCacheEntry
static
CachedEntry
getOrCreateCacheEntry
(final Path path)
Method getOrCreateCacheEntry.
- Parameters:
final Pathpath