Class PrefabSnapshotUtil

java.lang.Object
com.hypixel.hytale.builtin.adventure.worldevents.util.PrefabSnapshotUtil

public class PrefabSnapshotUtil extends Object
  • Field Details

  • Constructor Details

    • PrefabSnapshotUtil

      public PrefabSnapshotUtil()
  • Method Details

    • getAssetPrefabOrNull

      @Nullable public static IPrefabBuffer getAssetPrefabOrNull(@Nonnull Path path)
    • 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

      public static void deleteSnapshot(@Nonnull World world, @Nonnull UUID snapshotId)
    • cleanSnapshotsDir

      @Nonnull public static CompletableFuture<Void> cleanSnapshotsDir(@Nonnull World world, @Nonnull WorldEventManager manager)
    • resolveAssetPath

      @Nullable public static Path resolveAssetPath(@Nonnull Path path)
    • resolveSnapshotPath

      @Nonnull public static Path resolveSnapshotPath(@Nonnull Path directory, @Nonnull UUID snapshotId)
    • resolveAssetReferencePath

      @Nullable public static Path resolveAssetReferencePath(@Nonnull Path path)