Added BlockVector[2D].toBlockVector[2D] overrrides.

This returns the current object, for an instant speed boost :)
This commit is contained in:
TomyLobo 2012-01-05 15:32:53 +01:00
parent 8a24fd9741
commit 555758288b
2 changed files with 10 additions and 0 deletions

View File

@ -97,4 +97,9 @@ public class BlockVector extends Vector {
(Integer.valueOf((int) y).hashCode() << 12) ^
Integer.valueOf((int) z).hashCode();
}
@Override
public BlockVector toBlockVector() {
return this;
}
}

View File

@ -90,4 +90,9 @@ public class BlockVector2D extends Vector2D {
return (Integer.valueOf((int) x).hashCode() >> 13) ^
Integer.valueOf((int) z).hashCode();
}
@Override
public BlockVector2D toBlockVector2D() {
return this;
}
}