mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-28 15:56:07 +00:00
Adjust all renderers to support break overlay
This commit is contained in:
1 parent
471f665351
commit
2c19fe16b7
30 files changed
+231
-144
No files matched your search
@@ -345,4 +345,40 @@ public final class BoundingBox {
|
||||
return AxisAlignedBB.getBoundingBox(minX, minY, minZ, maxX, maxY, maxZ);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + Float.floatToIntBits(maxX);
|
||||
result = prime * result + Float.floatToIntBits(maxY);
|
||||
result = prime * result + Float.floatToIntBits(maxZ);
|
||||
result = prime * result + Float.floatToIntBits(minX);
|
||||
result = prime * result + Float.floatToIntBits(minY);
|
||||
result = prime * result + Float.floatToIntBits(minZ);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if(this == obj)
|
||||
return true;
|
||||
if(obj == null)
|
||||
return false;
|
||||
if(getClass() != obj.getClass())
|
||||
return false;
|
||||
BoundingBox other = (BoundingBox) obj;
|
||||
if(Float.floatToIntBits(maxX) != Float.floatToIntBits(other.maxX))
|
||||
return false;
|
||||
if(Float.floatToIntBits(maxY) != Float.floatToIntBits(other.maxY))
|
||||
return false;
|
||||
if(Float.floatToIntBits(maxZ) != Float.floatToIntBits(other.maxZ))
|
||||
return false;
|
||||
if(Float.floatToIntBits(minX) != Float.floatToIntBits(other.minX))
|
||||
return false;
|
||||
if(Float.floatToIntBits(minY) != Float.floatToIntBits(other.minY))
|
||||
return false;
|
||||
if(Float.floatToIntBits(minZ) != Float.floatToIntBits(other.minZ))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,6 @@ public class CustomCubeRenderer {
|
||||
if(rb == null) {
|
||||
rb = new CustomRenderBlocks(ba);
|
||||
}
|
||||
|
||||
rb.blockAccess = ba;
|
||||
rb.setOverrideTexture(getOverrideTexture());
|
||||
rb.setFaceRenderers(null);
|
||||
@@ -31,7 +30,6 @@ public class CustomCubeRenderer {
|
||||
}
|
||||
rb.setRenderBoundsFromBlock(par1Block);
|
||||
rb.renderStandardBlock(par1Block, par2, par3, par4);
|
||||
|
||||
}
|
||||
|
||||
public void renderBlock(IBlockAccess ba, Block par1Block, int par2, int par3, int par4, Collection<IRenderFace> renderers) {
|
||||
@@ -43,7 +41,6 @@ public class CustomCubeRenderer {
|
||||
rb.setFaceRenderers(renderers);
|
||||
rb.setRenderBoundsFromBlock(par1Block);
|
||||
rb.renderStandardBlock(par1Block, par2, par3, par4);
|
||||
|
||||
}
|
||||
|
||||
public IIcon getOverrideTexture() {
|
||||
|
||||
Reference in new issue
Block a user