}
// Spout Start
short customId = 0;
if (SpoutClient.getInstance().getRawWorld() != null && this.hasWorldObj()) {
SpoutcraftChunk sChunk = Spoutcraft.getChunkAt(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
customId = sChunk.getCustomBlockId(this.xCoord, this.yCoord, this.zCoord);
short[] customBlockIds = sChunk.getCustomBlockIds();
byte[] customBlockData = sChunk.getCustomBlockData();
if (customId > 0) {
// Custom Chest Code to be here.
} else {
this.worldObj.playSoundEffect(var8, (double)this.yCoord + 0.5D, var11, "random.chestopen", 0.5F, this.worldObj.rand.nextFloat() * 0.1F + 0.9F);
}
}
// Spout End
}
if (this.numUsingPlayers == 0 && this.lidAngle > 0.0F || this.numUsingPlayers > 0 && this.lidAngle < 1.0F) {
float var9 = this.lidAngle;
if (this.numUsingPlayers > 0) {
this.lidAngle += var1;
} else {
this.lidAngle -= var1;
}
if (this.lidAngle > 1.0F) {
this.lidAngle = 1.0F;
}
float var10 = 0.5F;
if (this.lidAngle < var10 && var9 >= var10 && this.adjacentChestZNeg == null && this.adjacentChestXNeg == null) {
var11 = (double)this.xCoord + 0.5D;
double var6 = (double)this.zCoord + 0.5D;
if (this.adjacentChestZPosition != null) {
var6 += 0.5D;
}
if (this.adjacentChestXPos != null) {
var11 += 0.5D;
}
// Spout Start
short customId = 0;
if (SpoutClient.getInstance().getRawWorld() != null && this.hasWorldObj()) {
SpoutcraftChunk sChunk = Spoutcraft.getChunkAt(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
customId = sChunk.getCustomBlockId(this.xCoord, this.yCoord, this.zCoord);
short[] customBlockIds = sChunk.getCustomBlockIds();
byte[] customBlockData = sChunk.getCustomBlockData();
if (customId > 0) {
// Custom Chest Sound to be here.
} else {
this.worldObj.playSoundEffect(var11, (double)this.yCoord + 0.5D, var6, "random.chestclosed", 0.5F, this.worldObj.rand.nextFloat() * 0.1F + 0.9F);