public void rotatedLootPot(World world,Random rand,int x,int y,int z,int offsetX,int offsetY,int offsetZ,int rotation,int min,int max,int chance){
  x-=width / 2;
  z-=depth / 2;
  if (rand.nextInt(chance) == 0)   return;
switch (rotation) {
case 0:
    generateLootPot(world,rand,new BlockPos(x + offsetX,y + offsetY,z + offsetZ),min,max,LootTableRegistry.DUNGEON_POT_LOOT);
  break;
case 1:
generateLootPot(world,rand,new BlockPos(x + offsetZ,y + offsetY,z + depth - offsetX - 1),min,max,LootTableRegistry.DUNGEON_POT_LOOT);
break;
case 2:
generateLootPot(world,rand,new BlockPos(x + width - offsetX - 1,y + offsetY,z + depth - offsetZ - 1),min,max,LootTableRegistry.DUNGEON_POT_LOOT);
break;
case 3:
generateLootPot(world,rand,new BlockPos(x + width - offsetZ - 1,y + offsetY,z + offsetX),min,max,LootTableRegistry.DUNGEON_POT_LOOT);
break;
}
}

public void rotatedLootPot ( World world , Random rand , int x , int y , int z , int offsetX , int offsetY , int offsetZ , int rotation , int min , int max , int chance ) { x -= width / 2 ; z -= depth / 2 ; if ( rand . nextInt ( chance ) == 0 ) return ; switch ( rotation ) { case 0 : generateLootPot ( world , rand , new BlockPos ( x + offsetX , y + offsetY , z + offsetZ ) , min , max , LootTableRegistry . DUNGEON_POT_LOOT ) ; break ; case 1 : generateLootPot ( world , rand , new BlockPos ( x + offsetZ , y + offsetY , z + depth - offsetX - 1 ) , min , max , LootTableRegistry . DUNGEON_POT_LOOT ) ; break ; case 2 : generateLootPot ( world , rand , new BlockPos ( x + width - offsetX - 1 , y + offsetY , z + depth - offsetZ - 1 ) , min , max , LootTableRegistry . DUNGEON_POT_LOOT ) ; break ; case 3 : generateLootPot ( world , rand , new BlockPos ( x + width - offsetZ - 1 , y + offsetY , z + offsetX ) , min , max , LootTableRegistry . DUNGEON_POT_LOOT ) ; break ; } }
generates a loot pot taking the rotation of a structure into a count
