Skip to content

Commit

Permalink
More work on the item cap
Browse files Browse the repository at this point in the history
One day, when people read these commit messages, they will understand the many thoughts that went into whether or not this should be brought upon the world.

Since from the day this will be released an unknown form of support hell would break forward, devouring the time of everyone even remotely associated with the CT Developer Role.

Or maybe not.
Probably not.
At least that's the thought that's allowing me to keep moving forward.
I hope that my fears will proof to be unfounded.
If not, ...[the entry ends here]
  • Loading branch information
kindlich committed May 13, 2020
1 parent bfb6772 commit f1c6360
Show file tree
Hide file tree
Showing 43 changed files with 1,216 additions and 308 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,53 +35,32 @@ public double getXSize() {


@ZenCodeType.Method
public boolean contains(MCVec3d vec) {
return internal.contains((vec).getInternal());
}


@ZenCodeType.Method
public MCAxisAlignedBB offset(MCBlockPos pos) {
return new MCAxisAlignedBB(internal.offset((pos).getInternal()));
}


@ZenCodeType.Method
public MCAxisAlignedBB grow(double value) {
return new MCAxisAlignedBB(internal.grow(value));
}


@ZenCodeType.Method
public MCAxisAlignedBB grow(double x, double y, double z) {
return new MCAxisAlignedBB(internal.grow(x, y, z));
public int hashCode() {
return internal.hashCode();
}


@ZenCodeType.Method
public double getMax(MCDirectionAxis axis) {
return internal.getMax((axis).getInternal());
public MCAxisAlignedBB offset(double x, double y, double z) {
return new MCAxisAlignedBB(internal.offset(x, y, z));
}


/**
* Returns the average length of the edges of the bounding box.
*/
@ZenCodeType.Method
public double getAverageEdgeLength() {
return internal.getAverageEdgeLength();
public MCAxisAlignedBB intersect(MCAxisAlignedBB other) {
return new MCAxisAlignedBB(internal.intersect((other).getInternal()));
}


@ZenCodeType.Method
public boolean intersects(MCVec3d min, MCVec3d max) {
return internal.intersects((min).getInternal(), (max).getInternal());
public MCAxisAlignedBB grow(double value) {
return new MCAxisAlignedBB(internal.grow(value));
}


@ZenCodeType.Method
public MCVec3d getCenter() {
return new MCVec3d(internal.getCenter());
public MCAxisAlignedBB expand(MCVec3d p_216361_1_) {
return new MCAxisAlignedBB(internal.expand((p_216361_1_).getInternal()));
}


Expand All @@ -92,62 +71,59 @@ public String toString() {


@ZenCodeType.Method
public boolean contains(double x, double y, double z) {
return internal.contains(x, y, z);
}


@ZenCodeType.Method
public boolean equals(Object p_equals_1_) {
return internal.equals((p_equals_1_));
public double getMax(MCDirectionAxis axis) {
return internal.getMax((axis).getInternal());
}


@ZenCodeType.Method
public MCAxisAlignedBB expand(MCVec3d p_216361_1_) {
return new MCAxisAlignedBB(internal.expand((p_216361_1_).getInternal()));
public boolean hasNaN() {
return internal.hasNaN();
}


@ZenCodeType.Method
public MCAxisAlignedBB expand(double x, double y, double z) {
return new MCAxisAlignedBB(internal.expand(x, y, z));
public boolean contains(double x, double y, double z) {
return internal.contains(x, y, z);
}


@ZenCodeType.Method
public boolean hasNaN() {
return internal.hasNaN();
public MCAxisAlignedBB offset(MCVec3d vec) {
return new MCAxisAlignedBB(internal.offset((vec).getInternal()));
}


@ZenCodeType.Method
public double getYSize() {
return internal.getYSize();
public boolean intersects(double x1, double y1, double z1, double x2, double y2, double z2) {
return internal.intersects(x1, y1, z1, x2, y2, z2);
}


/**
* Returns the average length of the edges of the bounding box.
*/
@ZenCodeType.Method
public boolean intersects(MCAxisAlignedBB other) {
return internal.intersects((other).getInternal());
public double getAverageEdgeLength() {
return internal.getAverageEdgeLength();
}


@ZenCodeType.Method
public int hashCode() {
return internal.hashCode();
public boolean contains(MCVec3d vec) {
return internal.contains((vec).getInternal());
}


@ZenCodeType.Method
public MCAxisAlignedBB intersect(MCAxisAlignedBB other) {
return new MCAxisAlignedBB(internal.intersect((other).getInternal()));
public MCAxisAlignedBB union(MCAxisAlignedBB other) {
return new MCAxisAlignedBB(internal.union((other).getInternal()));
}


@ZenCodeType.Method
public double getZSize() {
return internal.getZSize();
public double getYSize() {
return internal.getYSize();
}


Expand Down Expand Up @@ -183,15 +159,39 @@ public MCAxisAlignedBB contract(double x, double y, double z) {
}


@ZenCodeType.Method
public boolean equals(Object p_equals_1_) {
return internal.equals((p_equals_1_));
}


@ZenCodeType.Method
public double getMin(MCDirectionAxis axis) {
return internal.getMin((axis).getInternal());
}


@ZenCodeType.Method
public MCAxisAlignedBB offset(MCVec3d vec) {
return new MCAxisAlignedBB(internal.offset((vec).getInternal()));
public MCVec3d getCenter() {
return new MCVec3d(internal.getCenter());
}


@ZenCodeType.Method
public boolean intersects(MCAxisAlignedBB other) {
return internal.intersects((other).getInternal());
}


@ZenCodeType.Method
public MCAxisAlignedBB expand(double x, double y, double z) {
return new MCAxisAlignedBB(internal.expand(x, y, z));
}


@ZenCodeType.Method
public MCAxisAlignedBB grow(double x, double y, double z) {
return new MCAxisAlignedBB(internal.grow(x, y, z));
}


Expand All @@ -213,20 +213,20 @@ public MCAxisAlignedBB shrink(double value) {


@ZenCodeType.Method
public MCAxisAlignedBB union(MCAxisAlignedBB other) {
return new MCAxisAlignedBB(internal.union((other).getInternal()));
public double getZSize() {
return internal.getZSize();
}


@ZenCodeType.Method
public MCAxisAlignedBB offset(double x, double y, double z) {
return new MCAxisAlignedBB(internal.offset(x, y, z));
public MCAxisAlignedBB offset(MCBlockPos pos) {
return new MCAxisAlignedBB(internal.offset((pos).getInternal()));
}


@ZenCodeType.Method
public boolean intersects(double x1, double y1, double z1, double x2, double y2, double z2) {
return internal.intersects(x1, y1, z1, x2, y2, z2);
public boolean intersects(MCVec3d min, MCVec3d max) {
return internal.intersects((min).getInternal(), (max).getInternal());
}


Expand Down

0 comments on commit f1c6360

Please sign in to comment.