/**
  * Helper function. Returns the comparator signal strength of the container at this position, or 0
  * if there is no container or the function is called on client-side.
  */
 public static int getContainerComparatorSignalStrength(IBlockAccess world, int x, int y, int z) {
   TileEntityContainer container = WorldUtils.get(world, x, y, z, TileEntityContainer.class);
   return ((container != null) ? container.getComparatorSignalStrength() : 0);
 }