java.lang.Object
com.github.imdabigboss.easydatapack.api.utils.schematics.Schematics

public class Schematics extends Object
Some utilities for schematics
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    createSchematic​(@NonNull org.bukkit.Location start, @NonNull org.bukkit.Location end, @NonNull org.bukkit.Location baseStart, @NonNull org.bukkit.Location baseEnd, @NonNull File file)
    Saves a schematic to a file.
    static @NonNull Schematic
    loadSchematic​(@NonNull org.bukkit.plugin.Plugin plugin, @NonNull String schematicName)
    Loads a schematic from a file.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Schematics

      public Schematics()
  • Method Details

    • loadSchematic

      public static @NonNull Schematic loadSchematic(@NonNull org.bukkit.plugin.Plugin plugin, @NonNull String schematicName) throws SchematicException
      Loads a schematic from a file.
      Parameters:
      plugin - the plugin
      schematicName - the name of the schematic
      Returns:
      the schematic
      Throws:
      SchematicException
    • createSchematic

      public static boolean createSchematic(@NonNull org.bukkit.Location start, @NonNull org.bukkit.Location end, @NonNull org.bukkit.Location baseStart, @NonNull org.bukkit.Location baseEnd, @NonNull File file)
      Saves a schematic to a file.
      Parameters:
      start - the start location
      end - the end location
      baseStart - the base start location
      baseEnd - the base end location
      file - the file
      Returns:
      the schematic