public class PrefabStore
Class PrefabStore. Provides prefabstore functionality for the Hytale server.
java.lang.Object > PrefabStore
Field Summary
file
Field file.
result
Field result.
prefabsPath
Field prefabsPath.
prefabPath
Field prefabPath.
normalizedPath
Field normalizedPath.
manifest
Field manifest.
Method Detail
PrefabStore
private
PrefabStore
()
Method PrefabStore.
getServerPrefab
Method getServerPrefab.
- Parameters:
@Nonnull final Stringkey
getPrefab
Method getPrefab.
- Parameters:
@Nonnull final Pathpath
getServerPrefabsPath
Path
getServerPrefabsPath
()
Method getServerPrefabsPath.
getServerPrefabDir
BlockSelection>
getServerPrefabDir
(@Nonnull final String key)
Method getServerPrefabDir.
- Parameters:
@Nonnull final Stringkey
getPrefabDir
BlockSelection>
getPrefabDir
(@Nonnull final Path dir)
Method getPrefabDir.
- Parameters:
@Nonnull final Pathdir
IllegalStateException
new
IllegalStateException
(String.format("Duplicate key %s", u)
Method IllegalStateException.
- Parameters:
String.format("Duplicate key%s"uu
RuntimeException
new
RuntimeException
("Failed to list directory " + String.valueOf(dir)
Method RuntimeException.
- Parameters:
"Failed to list directory " +String.valueOf(dir
saveServerPrefab
Method saveServerPrefab.
- Parameters:
@Nonnull final Stringkey@Nonnull final BlockSelectionprefab
saveWorldGenPrefab
void
saveWorldGenPrefab
(@Nonnull final String key, @Nonnull final BlockSelection prefab, final boolean overwrite)
Method saveWorldGenPrefab.
- Parameters:
@Nonnull final Stringkey@Nonnull final BlockSelectionprefabfinal booleanoverwrite
savePrefab
void
savePrefab
(@Nonnull final Path path, @Nonnull final BlockSelection prefab, final boolean overwrite)
Method savePrefab.
- Parameters:
@Nonnull final Pathpath@Nonnull final BlockSelectionprefabfinal booleanoverwrite
getWorldGenPrefabsPath
Path
getWorldGenPrefabsPath
()
Method getWorldGenPrefabsPath.
getAssetRootPath
Path
getAssetRootPath
()
Method getAssetRootPath.
getAssetPrefabsPath
Path
getAssetPrefabsPath
()
Method getAssetPrefabsPath.
getAssetPrefabsPathForPack
Method getAssetPrefabsPathForPack.
- Parameters:
@Nonnull final AssetPackpack
getAllAssetPrefabPaths
List
getAllAssetPrefabPaths
()
Method getAllAssetPrefabPaths.
AssetPackPrefabPath
new
AssetPackPrefabPath
(pack, prefabsPath)
Method AssetPackPrefabPath.
- Parameters:
packpackprefabsPathprefabsPath
getAssetPrefabFromAnyPack
Method getAssetPrefabFromAnyPack.
- Parameters:
@Nonnull final Stringkey
findAssetPrefabPath
Path
findAssetPrefabPath
(@Nonnull final String key)
Method findAssetPrefabPath.
- Parameters:
@Nonnull final Stringkey
findAssetPackForPrefabPath
Method findAssetPackForPrefabPath.
- Parameters:
@Nonnull final PathprefabPath
getAssetPrefab
Method getAssetPrefab.
- Parameters:
@Nonnull final Stringkey
getAssetPrefabDir
BlockSelection>
getAssetPrefabDir
(@Nonnull final String key)
Method getAssetPrefabDir.
- Parameters:
@Nonnull final Stringkey
saveAssetPrefab
Method saveAssetPrefab.
- Parameters:
@Nonnull final Stringkey@Nonnull final BlockSelectionprefab
getWorldGenPrefab
Method getWorldGenPrefab.
- Parameters:
@Nonnull final Stringkey
getWorldGenPrefabDir
BlockSelection>
getWorldGenPrefabDir
(@Nonnull final String key)
Method getWorldGenPrefabDir.
- Parameters:
@Nonnull final Stringkey
isBasePack
boolean
isBasePack
()
Method isBasePack.
isFromAssetPack
boolean
isFromAssetPack
()
Method isFromAssetPack.
getPackName
String
getPackName
()
Method getPackName.
getDisplayName
String
getDisplayName
()
Method getDisplayName.
prefabsPath
Path
prefabsPath
()
Method prefabsPath.