final BlockFace face = getCocoaFace(i);
final CocoaPlantSize size = getCocoaSize(random.nextInt(3));
final Block block = delegate.getBlockState(loc.getWorld(), sourceX, sourceY + height - 5 + y, sourceZ)
.getBlock().getRelative(face);
delegate.setTypeAndData(loc.getWorld(), block.getX(), block.getY(), block.getZ(),
Material.COCOA, new CocoaPlant(size, face.getOppositeFace()));
}
}
}
}
}