java.lang.Object
com.hypixel.hytale.server.core.prefab.selection.buffer.PrefabLoader

public class PrefabLoader extends Object
  • Field Details

    • JSON_FILEPATH_SEPARATOR

      private static final char JSON_FILEPATH_SEPARATOR
      See Also:
    • rootFolder

      private final Path rootFolder
  • Constructor Details

    • PrefabLoader

      public PrefabLoader(Path rootFolder)
  • Method Details

    • getRootFolder

      public Path getRootFolder()
    • resolvePrefabs

      public void resolvePrefabs(@Nonnull String prefabName, @Nonnull Consumer<Path> pathConsumer) throws IOException
      Throws:
      IOException
    • resolvePrefabs

      public static void resolvePrefabs(@Nonnull Path rootFolder, @Nonnull String prefabName, @Nonnull Consumer<Path> pathConsumer) throws IOException
      Throws:
      IOException
    • resolvePrefabFolder

      public static void resolvePrefabFolder(@Nonnull Path rootFolder, @Nonnull String prefabName, @Nonnull Consumer<Path> pathConsumer) throws IOException
      Throws:
      IOException
    • resolveRelativeJsonPath

      @Nonnull public static String resolveRelativeJsonPath(@Nonnull String prefabName, @Nonnull Path prefabPath, @Nonnull Path rootPrefabDir)
    • getFilepathLengthNoExtension

      private static int getFilepathLengthNoExtension(@Nonnull String filepath)