added Pocket#toVariableMap
This commit is contained in:
parent
4702083881
commit
c18f468461
2 changed files with 17 additions and 0 deletions
|
@ -5,3 +5,8 @@ loader_version=0.10.8
|
||||||
fabric_version=0.29.3+1.16
|
fabric_version=0.29.3+1.16
|
||||||
|
|
||||||
org.gradle.jvmargs=-Xmx2048m
|
org.gradle.jvmargs=-Xmx2048m
|
||||||
|
|
||||||
|
systemProp.http.proxyHost=192.168.10.21
|
||||||
|
systemProp.http.proxyPort=8080
|
||||||
|
systemProp.https.proxyHost=192.168.10.21
|
||||||
|
systemProp.https.proxyPort=8080
|
||||||
|
|
|
@ -230,4 +230,16 @@ public final class Pocket {
|
||||||
public BlockBox getBox() {
|
public BlockBox getBox() {
|
||||||
return box;
|
return box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Map<String, Double> toVariableMap(Map<String, Double> stringDoubleMap) {
|
||||||
|
stringDoubleMap.put("originX", (double) this.box.minX);
|
||||||
|
stringDoubleMap.put("originY", (double) this.box.minY);
|
||||||
|
stringDoubleMap.put("originZ", (double) this.box.minZ);
|
||||||
|
stringDoubleMap.put("width", (double) this.box.getDimensions().getX());
|
||||||
|
stringDoubleMap.put("height", (double) this.box.getDimensions().getY());
|
||||||
|
stringDoubleMap.put("length", (double) this.box.getDimensions().getZ());
|
||||||
|
stringDoubleMap.put("depth", (double) this.virtualLocation.getDepth());
|
||||||
|
stringDoubleMap.put("id", (double) this.id); // don't really know why you would need this but it's there if needed
|
||||||
|
return stringDoubleMap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue