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