Class Schematics
java.lang.Object
com.github.imdabigboss.easydatapack.api.utils.schematics.Schematics
Some utilities for schematics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancreateSchematic(@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 SchematicloadSchematic(@NonNull org.bukkit.plugin.Plugin plugin, @NonNull String schematicName)Loads a schematic from a file.
-
Constructor Details
-
Schematics
public Schematics()
-
-
Method Details
-
loadSchematic
public static @NonNull Schematic loadSchematic(@NonNull org.bukkit.plugin.Plugin plugin, @NonNull String schematicName) throws SchematicExceptionLoads a schematic from a file.- Parameters:
plugin- the pluginschematicName- 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 locationend- the end locationbaseStart- the base start locationbaseEnd- the base end locationfile- the file- Returns:
- the schematic
-