This commit is contained in:
Anuken
2020-08-13 09:18:47 -04:00
parent 1249eb3b00
commit 9ba98ed4b4
7 changed files with 9 additions and 40 deletions

View File

@@ -53,6 +53,7 @@ public class BuildPlan{
}
/** Transforms the internal position of this config using the specified function, and return the result. */
public static Object pointConfig(Block block, Object config, Cons<Point2> cons){
if(config instanceof Point2){
config = ((Point2)config).cpy();
@@ -71,8 +72,7 @@ public class BuildPlan{
return config;
}
/** If this requests's config is a Point2 or an array of Point2s, this returns a copy of them for transformation.
* Otherwise does nothing. */
/** Transforms the internal position of this config using the specified function. */
public void pointConfig(Cons<Point2> cons){
this.config = pointConfig(block, this.config, cons);
}