Class AssetPrefabFileProvider
java.lang.Object
com.hypixel.hytale.builtin.buildertools.prefablist.AssetPrefabFileProvider
- All Implemented Interfaces:
FileListProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordNested classes/interfaces inherited from interface com.hypixel.hytale.server.core.ui.browser.FileListProvider
FileListProvider.FileEntry -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate List<FileListProvider.FileEntry> buildPackDirectoryListing(String currentDirStr) private List<FileListProvider.FileEntry> private List<FileListProvider.FileEntry> buildSearchResults(String currentDirStr, String searchQuery) private PrefabStore.AssetPackPrefabPathfindPackByKey(String packKey) getPackDisplayName(String packKey) private StringgetPackKey(PrefabStore.AssetPackPrefabPath packPath) private StringremoveExtension(String fileName) resolveVirtualPath(String virtualPath) private voidsearchInDirectory(Path root, String packKey, String basePath, String searchQuery, List<AssetPrefabFileProvider.SearchResult> results)
-
Field Details
-
PREFAB_EXTENSION
- See Also:
-
MAX_SEARCH_RESULTS
private static final int MAX_SEARCH_RESULTS- See Also:
-
-
Constructor Details
-
AssetPrefabFileProvider
public AssetPrefabFileProvider()
-
-
Method Details
-
getFiles
@Nonnull public List<FileListProvider.FileEntry> getFiles(@Nonnull Path currentDir, @Nonnull String searchQuery) - Specified by:
getFilesin interfaceFileListProvider
-
buildPackListings
-
buildPackDirectoryListing
@Nonnull private List<FileListProvider.FileEntry> buildPackDirectoryListing(@Nonnull String currentDirStr) -
buildSearchResults
@Nonnull private List<FileListProvider.FileEntry> buildSearchResults(@Nonnull String currentDirStr, @Nonnull String searchQuery) -
searchInDirectory
-
getPackKey
-
findPackByKey
-
removeExtension
-
resolveVirtualPath
-
getPackDisplayName
-