mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-28 11:28:11 +01:00
Add constructor without arguments to RayTracing for convenience.
This commit is contained in:
parent
45ba3b931e
commit
3dbe5fcda8
@ -5,20 +5,11 @@ public class PassableRayTracing extends RayTracing{
|
||||
protected BlockCache blockCache = null;
|
||||
|
||||
protected boolean collides = false;
|
||||
|
||||
/**
|
||||
* Empty constructor for setting other properties later.
|
||||
*/
|
||||
public PassableRayTracing() {
|
||||
super(0, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
public BlockCache getBlockCache() {
|
||||
return blockCache;
|
||||
}
|
||||
|
||||
|
||||
public void setBlockCache(BlockCache blockCache) {
|
||||
this.blockCache = blockCache;
|
||||
}
|
||||
|
@ -34,6 +34,10 @@ public abstract class RayTracing {
|
||||
set(x0, y0, z0, x1, y1, z1);
|
||||
}
|
||||
|
||||
public RayTracing(){
|
||||
set(0, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
public void set(double x0, double y0, double z0, double x1, double y1, double z1){
|
||||
// // TODO: Consider not using end-points at all.
|
||||
// this.x0 = x0;
|
||||
|
Loading…
Reference in New Issue
Block a user