mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-24 02:07:39 +00:00
Added BlockVector[2D].toBlockVector[2D] overrrides.
This returns the current object, for an instant speed boost :)
This commit is contained in:
parent
8a24fd9741
commit
555758288b
@ -97,4 +97,9 @@ public class BlockVector extends Vector {
|
|||||||
(Integer.valueOf((int) y).hashCode() << 12) ^
|
(Integer.valueOf((int) y).hashCode() << 12) ^
|
||||||
Integer.valueOf((int) z).hashCode();
|
Integer.valueOf((int) z).hashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BlockVector toBlockVector() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -90,4 +90,9 @@ public class BlockVector2D extends Vector2D {
|
|||||||
return (Integer.valueOf((int) x).hashCode() >> 13) ^
|
return (Integer.valueOf((int) x).hashCode() >> 13) ^
|
||||||
Integer.valueOf((int) z).hashCode();
|
Integer.valueOf((int) z).hashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BlockVector2D toBlockVector2D() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user