HyCodeYourTale
classpublicPriority 1

PrefabBufferUtil

com.hypixel.hytale.server.core.prefab.selection.buffer.PrefabBufferUtil

7

Methods

7

Public Methods

0

Fields

1

Constructors

Constants

Map<Path, WeakReference<PrefabBufferUtil.CachedEntry>>CACHE= new ConcurrentHashMap<>()
PathCACHE_PATH= Options.getOrDefault(Options.PREFAB_CACHE_DIRECTORY, Options.getOptionSet(), Path.of(".cache/pref...
PatternFILE_SUFFIX_PATTERN= Pattern.compile("((!\\.prefab\\.json)\\.lpf|\\.prefab\\.json)$")
StringFILE_SUFFIX_REGEX= "((!\\.prefab\\.json)\\.lpf|\\.prefab\\.json)$"
StringJSON_FILE_SUFFIX= ".prefab.json"
StringJSON_LPF_FILE_SUFFIX= ".prefab.json.lpf"
HytaleLoggerLOGGER= HytaleLogger.forEnclosingClass()
StringLPF_FILE_SUFFIX= ".lpf"

Constructors

public
PrefabBufferUtil()

Methods

Public Methods (7)

publicstatic
IPrefabBuffer getCached(Path path)
@Nonnull
publicstatic
PrefabBuffer loadBuffer(Path path)
@Nonnull
publicstatic
PrefabBuffer loadFromJson(AssetPack pack, Path path, Path cachedLpfPath, Path jsonPath)

throws IOException

@Nonnull
publicstatic
PrefabBuffer loadFromLPF(Path path, Path realPath)
@Nonnull
publicstatic
PrefabBuffer readFromFile(Path path)
publicstatic
CompletableFuture<PrefabBuffer> readFromFileAsync(Path path)
@Nonnull
publicstatic
CompletableFuture<Void> writeToFileAsync(PrefabBuffer prefab, Path path)
@Nonnull

Related Classes