mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Added input/output mode to power conduits. Includes refactor for common frame work across all conduits.
#41
This commit is contained in:
1 parent
c58f1fe925
commit
56ef3dfd8a
30 files changed
+664
-252
No files matched your search
@@ -23,6 +23,11 @@ public class Vector2d {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
public void set(Vector2f vec) {
|
||||
x = vec.x;
|
||||
y = vec.y;
|
||||
}
|
||||
|
||||
public void set(Vector2d vec) {
|
||||
x = vec.x;
|
||||
@@ -39,6 +44,18 @@ public class Vector2d {
|
||||
y -= vec.y;
|
||||
}
|
||||
|
||||
|
||||
public void add(Vector2f vec) {
|
||||
x += vec.x;
|
||||
y += vec.y;
|
||||
}
|
||||
|
||||
public void sub(Vector2f vec) {
|
||||
x -= vec.x;
|
||||
y -= vec.y;
|
||||
}
|
||||
|
||||
|
||||
public void negate() {
|
||||
x = -x;
|
||||
y = -y;
|
||||
|
||||
Reference in new issue
Block a user