public void generateLootChest(World world,Random random,BlockPos pos,int min,int max,IBlockState state,ResourceLocation lootTable){
  world.setBlockState(pos,state,3);
  TileEntityChest chest=(TileEntityChest)world.getTileEntity(pos);
  if (chest != null)   chest.setLootTable(lootTable,random.nextLong());
}

public void generateLootChest ( World world , Random random , BlockPos pos , int min , int max , IBlockState state , ResourceLocation lootTable ) { world . setBlockState ( pos , state , 3 ) ; TileEntityChest chest = ( TileEntityChest ) world . getTileEntity ( pos ) ; if ( chest != null ) chest . setLootTable ( lootTable , random . nextLong ( ) ) ; }
generates a loot chest at a location
