Class PrefabSaver
java.lang.Object
com.hypixel.hytale.builtin.buildertools.prefabeditor.saving.PrefabSaver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static BlockSelectioncopyBlocks(CommandSender sender, World world, Vector3i anchorPoint, Vector3i minPoint, Vector3i maxPoint, Vector3i pastePosition, Vector3i originalFileAnchor, PrefabSaverSettings settings) private static it.unimi.dsi.fastutil.longs.Long2ObjectMap<Ref<ChunkStore>> preloadChunksInSelection(World world, ChunkStore chunkStore, Vector3i minPoint, Vector3i maxPoint) private static booleansave(CommandSender sender, BlockSelection copiedSelection, Path saveFilePath, PrefabSaverSettings settings) static CompletableFuture<Boolean> savePrefab(CommandSender sender, World world, Path pathToSave, Vector3i anchorPoint, Vector3i minPoint, Vector3i maxPoint, Vector3i pastePosition, Vector3i originalFileAnchor, PrefabSaverSettings settings)
-
Field Details
-
EDITOR_BLOCK
- See Also:
-
EDITOR_BLOCK_PREFAB_AIR
- See Also:
-
EDITOR_BLOCK_PREFAB_ANCHOR
- See Also:
-
-
Constructor Details
-
PrefabSaver
public PrefabSaver()
-
-
Method Details
-
savePrefab
@Nonnull public static CompletableFuture<Boolean> savePrefab(@Nonnull CommandSender sender, @Nonnull World world, @Nonnull Path pathToSave, @Nonnull Vector3i anchorPoint, @Nonnull Vector3i minPoint, @Nonnull Vector3i maxPoint, @Nonnull Vector3i pastePosition, @Nonnull Vector3i originalFileAnchor, @Nonnull PrefabSaverSettings settings) -
copyBlocks
@Nullable private static BlockSelection copyBlocks(@Nonnull CommandSender sender, @Nonnull World world, @Nonnull Vector3i anchorPoint, @Nonnull Vector3i minPoint, @Nonnull Vector3i maxPoint, @Nonnull Vector3i pastePosition, @Nonnull Vector3i originalFileAnchor, @Nonnull PrefabSaverSettings settings) -
preloadChunksInSelection
@Nonnull private static it.unimi.dsi.fastutil.longs.Long2ObjectMap<Ref<ChunkStore>> preloadChunksInSelection(@Nonnull World world, @Nonnull ChunkStore chunkStore, @Nonnull Vector3i minPoint, @Nonnull Vector3i maxPoint) -
save
private static boolean save(@Nonnull CommandSender sender, @Nonnull BlockSelection copiedSelection, @Nonnull Path saveFilePath, @Nonnull PrefabSaverSettings settings)
-