aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/bloodasp/galacticgreg/api/ISpaceObjectGenerator.java
diff options
context:
space:
mode:
authorJason Mitchell <mitchej@gmail.com>2023-01-29 22:47:18 -0800
committerJason Mitchell <mitchej@gmail.com>2023-01-29 22:47:18 -0800
commit960bbb3537d7c8c552050b5826de58bc8d798f04 (patch)
tree8006e73e99cc48c8b401cf9b34388f9b293dd43e /src/main/java/bloodasp/galacticgreg/api/ISpaceObjectGenerator.java
parent1e0349649cf45764435b993bc87339742a025078 (diff)
downloadGT5-Unofficial-960bbb3537d7c8c552050b5826de58bc8d798f04.tar.gz
GT5-Unofficial-960bbb3537d7c8c552050b5826de58bc8d798f04.tar.bz2
GT5-Unofficial-960bbb3537d7c8c552050b5826de58bc8d798f04.zip
[ci skip] spotlessApply with the new settings
Diffstat (limited to 'src/main/java/bloodasp/galacticgreg/api/ISpaceObjectGenerator.java')
-rw-r--r--src/main/java/bloodasp/galacticgreg/api/ISpaceObjectGenerator.java93
1 files changed, 50 insertions, 43 deletions
diff --git a/src/main/java/bloodasp/galacticgreg/api/ISpaceObjectGenerator.java b/src/main/java/bloodasp/galacticgreg/api/ISpaceObjectGenerator.java
index b51e5facb3..881efa08eb 100644
--- a/src/main/java/bloodasp/galacticgreg/api/ISpaceObjectGenerator.java
+++ b/src/main/java/bloodasp/galacticgreg/api/ISpaceObjectGenerator.java
@@ -2,50 +2,57 @@ package bloodasp.galacticgreg.api;
import java.util.List;
-import bloodasp.galacticgreg.api.Enums.SpaceObjectType;
import net.minecraft.util.Vec3;
+import bloodasp.galacticgreg.api.Enums.SpaceObjectType;
+
public interface ISpaceObjectGenerator {
- Vec3 getCenterPoint();
- /**
- * Set the center-point of the object to generate, by providing X, Y and Z directly
- * @param pX
- * @param pY
- * @param pZ
- */
- void setCenterPoint(int pX, int pY, int pZ);
-
- /**
- * Set the center-point of the object to generate, by providing a Vec3 instance
- * @param pCenter
- */
- void setCenterPoint(Vec3 pCenter);
- List<StructureInformation> getStructure();
-
- /**
- * Calculate the structure
- * Called after randomize()
- */
- void calculate();
-
- /**
- * Randomize the structure.
- * Called before calculate()
- * @param pSizeMin The minimum size for the structure. It is up to you how you handle this value. it's what the user sets in his config file
- * @param pSizeMax The maximum size for the structure. It is up to you how you handle this value. it's what the user sets in his config file
- */
- void randomize(int pSizeMin, int pSizeMax);
-
- /**
- * Define the type of the generator. OreAsteroid will be used to spawn ores at given coordinates,
- * where NonOreSchematic will use the Blocks provided in the structural information to generate your structure
- * @return
- */
- SpaceObjectType getType();
-
-
- /**
- * This function is called every time the generator shall be reset in order to generate a blank, new structure
- */
- void reset();
+
+ Vec3 getCenterPoint();
+
+ /**
+ * Set the center-point of the object to generate, by providing X, Y and Z directly
+ *
+ * @param pX
+ * @param pY
+ * @param pZ
+ */
+ void setCenterPoint(int pX, int pY, int pZ);
+
+ /**
+ * Set the center-point of the object to generate, by providing a Vec3 instance
+ *
+ * @param pCenter
+ */
+ void setCenterPoint(Vec3 pCenter);
+
+ List<StructureInformation> getStructure();
+
+ /**
+ * Calculate the structure Called after randomize()
+ */
+ void calculate();
+
+ /**
+ * Randomize the structure. Called before calculate()
+ *
+ * @param pSizeMin The minimum size for the structure. It is up to you how you handle this value. it's what the user
+ * sets in his config file
+ * @param pSizeMax The maximum size for the structure. It is up to you how you handle this value. it's what the user
+ * sets in his config file
+ */
+ void randomize(int pSizeMin, int pSizeMax);
+
+ /**
+ * Define the type of the generator. OreAsteroid will be used to spawn ores at given coordinates, where
+ * NonOreSchematic will use the Blocks provided in the structural information to generate your structure
+ *
+ * @return
+ */
+ SpaceObjectType getType();
+
+ /**
+ * This function is called every time the generator shall be reset in order to generate a blank, new structure
+ */
+ void reset();
}