Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getAssetPrefabOrNull(Path)
- getSnapshotPrefabOrNull(World, UUID)
- createSnapshot(World, PrefabUtil.PasteRegion, IPrefabBuffer, Vector3ic, PrefabRotation)
- deleteSnapshot(World, UUID)
- cleanSnapshotsDir(World, WorldEventManager)
- resolveAssetPath(Path)
- resolveSnapshotPath(Path, UUID)
- resolveAssetReferencePath(Path)
Class PrefabSnapshotUtil
java.lang.Object
com.hypixel.hytale.builtin.adventure.worldevents.util.PrefabSnapshotUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<Void> cleanSnapshotsDir(World world, WorldEventManager manager) static UUIDcreateSnapshot(World world, PrefabUtil.PasteRegion region, IPrefabBuffer prefab, org.joml.Vector3ic origin, PrefabRotation rotation) static voiddeleteSnapshot(World world, UUID snapshotId) static IPrefabBuffergetAssetPrefabOrNull(Path path) static IPrefabBuffergetSnapshotPrefabOrNull(World world, UUID snapshotId) static PathresolveAssetPath(Path path) static Pathstatic PathresolveSnapshotPath(Path directory, UUID snapshotId)
-
Field Details
-
SNAPSHOT_DIRECTORY
- See Also:
-
-
Constructor Details
-
PrefabSnapshotUtil
public PrefabSnapshotUtil()
-
-
Method Details
-
getAssetPrefabOrNull
-
getSnapshotPrefabOrNull
@Nullable public static IPrefabBuffer getSnapshotPrefabOrNull(@Nonnull World world, @Nonnull UUID snapshotId) -
createSnapshot
@Nonnull public static UUID createSnapshot(@Nonnull World world, @Nonnull PrefabUtil.PasteRegion region, @Nonnull IPrefabBuffer prefab, @Nonnull org.joml.Vector3ic origin, @Nonnull PrefabRotation rotation) -
deleteSnapshot
-
cleanSnapshotsDir
@Nonnull public static CompletableFuture<Void> cleanSnapshotsDir(@Nonnull World world, @Nonnull WorldEventManager manager) -
resolveAssetPath
-
resolveSnapshotPath
-
resolveAssetReferencePath
-