mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 18:57:32 +00:00
IBlock:
-Added new collision functions.
This commit is contained in:
1 parent
5a1be375a0
commit
af2c2a03e6
2 files changed
+42
No files matched your search
@@ -195,6 +195,34 @@ public class ScriptBlock implements IBlock {
|
||||
return canCollide(0);
|
||||
}
|
||||
|
||||
public void setBounds(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) {
|
||||
this.block.setBlockBounds(minX,minY,minZ,maxX,maxY,maxZ);
|
||||
}
|
||||
|
||||
public double getBlockBoundsMinX() {
|
||||
return this.block.getBlockBoundsMinX();
|
||||
}
|
||||
|
||||
public double getBlockBoundsMinY() {
|
||||
return this.block.getBlockBoundsMinY();
|
||||
}
|
||||
|
||||
public double getBlockBoundsMinZ() {
|
||||
return this.block.getBlockBoundsMinZ();
|
||||
}
|
||||
|
||||
public double getBlockBoundsMaxX() {
|
||||
return this.block.getBlockBoundsMaxX();
|
||||
}
|
||||
|
||||
public double getBlockBoundsMaxY() {
|
||||
return this.block.getBlockBoundsMaxY();
|
||||
}
|
||||
|
||||
public double getBlockBoundsMaxZ() {
|
||||
return this.block.getBlockBoundsMaxZ();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return this.getName() + " @" + this.getPos() + (world == null ? "" : " in DIM" + world.getDimensionID());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user