Class PrefabSaver

java.lang.Object
com.hypixel.hytale.builtin.buildertools.prefabeditor.saving.PrefabSaver

public class PrefabSaver extends Object
  • Constructor Details

    • PrefabSaver

      public PrefabSaver()
  • Method Details

    • savePrefab

      @Nonnull public static CompletableFuture<Path> savePrefab(@Nonnull CommandSender sender, @Nonnull World world, @Nonnull Path pathToSave, @Nonnull org.joml.Vector3i anchorPoint, @Nonnull org.joml.Vector3i minPoint, @Nonnull org.joml.Vector3i maxPoint, @Nonnull org.joml.Vector3i pastePosition, @Nonnull org.joml.Vector3i originalFileAnchor, @Nonnull PrefabSaverSettings settings)
      Returns:
      A completable future that returns the path actually written, or null if there was an error. The written path is the .lpf or the .prefab.json form of pathToSave, depending on the save format and the block count.