Class Schematic
java.lang.Object
com.github.imdabigboss.easydatapack.api.utils.schematics.Schematic
This class represents a schematic.
-
Constructor Summary
ConstructorsConstructorDescriptionSchematic(@NonNull org.bukkit.block.data.BlockData[] blocks, int width, int height, int depth, int baseWidth, int baseDepth, int[] baseOffset) -
Method Summary
Modifier and TypeMethodDescriptionintint[]int@NonNull org.bukkit.block.data.BlockData[]intgetDepth()intintgetWidth()voidpasteSchematic(@NonNull org.bukkit.generator.LimitedRegion limitedRegion, int placeX, int placeY, int placeZ)Pastes the schematic at the specified location.voidpasteSchematic(@NonNull org.bukkit.Location location)Pastes the schematic at the specified location.
-
Constructor Details
-
Schematic
public Schematic(@NonNull org.bukkit.block.data.BlockData[] blocks, int width, int height, int depth, int baseWidth, int baseDepth, int[] baseOffset)
-
-
Method Details
-
getBlocks
public @NonNull org.bukkit.block.data.BlockData[] getBlocks() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getDepth
public int getDepth() -
getBaseWidth
public int getBaseWidth() -
getBaseDepth
public int getBaseDepth() -
getBaseOffset
public int[] getBaseOffset() -
pasteSchematic
Pastes the schematic at the specified location.- Parameters:
location- the location to paste the schematic at- Throws:
SchematicException
-
pasteSchematic
public void pasteSchematic(@NonNull org.bukkit.generator.LimitedRegion limitedRegion, int placeX, int placeY, int placeZ) throws SchematicExceptionPastes the schematic at the specified location.- Parameters:
limitedRegion- the limited region to paste the schematic at- Throws:
SchematicException
-