// Path: src/main/java/com/github/dayzminecraft/dayzminecraft/common/items/ItemMod.java
// public class ItemMod extends Item {
//   public List<String> subNames;
//   private String name;
// 
//   public ItemMod() {
//     super();
//     maxStackSize = 1;
//     setCreativeTab(DayZ.creativeTab);
//   }
// 
//   @SuppressWarnings({"unchecked", "rawtypes"})
//   @Override
//   public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List informationList, boolean advancedItemTooltips) {
//     if (subNames == null) {
//       return;
//     }
//     for (String string : subNames) {
//       informationList.add(string);
//     }
//   }
// 
// 
//   public ItemMod subNames(String... strings) {
//     if (subNames == null) {
//       subNames = new ArrayList<String>();
//     }
//     Collections.addAll(subNames, strings);
//     return this;
//   }
// 
//   public String getName() {
//     return name;
//   }
// 
//   public ItemMod setName(String name) {
//     this.name = name;
//     setUnlocalizedName(name);
//     return this;
//   }
// }
// 
// Path: src/main/java/com/github/dayzminecraft/dayzminecraft/common/thirst/PlayerData.java
// public class PlayerData implements IExtendedEntityProperties {
//   public final static String EXT_PROP_NAME = "DayZPlayerData";
// 
//   private final EntityPlayer player;
// 
//   private int thirst;
// 
//   public PlayerData(EntityPlayer player) {
//     this.player = player;
//     this.thirst = 0;
//   }
// 
//   public static void register(EntityPlayer player) {
//     player.registerExtendedProperties(PlayerData.EXT_PROP_NAME, new PlayerData(player));
//   }
// 
//   public static PlayerData get(EntityPlayer player) {
//     return (PlayerData) player.getExtendedProperties(EXT_PROP_NAME);
//   }
// 
//   @Override
//   public void saveNBTData(NBTTagCompound compound) {
// 
//     NBTTagCompound properties = new NBTTagCompound();
//     properties.setInteger("thirstLevel", thirst);
//     compound.setTag(EXT_PROP_NAME, properties);
//   }
// 
//   @Override
//   public void loadNBTData(NBTTagCompound compound) {
//     NBTTagCompound properties = (NBTTagCompound) compound.getTag(EXT_PROP_NAME);
//     thirst = properties.getInteger("thirstLevel");
//   }
// 
//   @Override
//   public void init(Entity entity, World world) {
//   }
// 
//   public void drink(int amount) {
//     thirst = thirst - amount;
//     if (thirst < 0) thirst = 0;
//   }
// 
//   public void handleThirst() {
//     if (!Config.thirstEnabled) return;
//     if (player == null || player.isDead || player.capabilities.isCreativeMode) {
//       return;
//     } else if (thirst == 20000) {
//       ChatHandler.chatWarning(player, StatCollector.translateToLocal("thirst.thirdwarning"));
//       thirst++;
//     } else if (thirst == 18000) {
//       ChatHandler.chatWarning(player, StatCollector.translateToLocal("thirst.secondwarning"));
//       thirst++;
//     } else if (thirst == 16000) {
//       ChatHandler.chatWarning(player, StatCollector.translateToLocal("thirst.firstwarning"));
//       thirst++;
//     } else if (thirst >= 24000 && FMLCommonHandler.instance().getMinecraftServerInstance().getTickCounter() % 40 == 0) {
//       player.attackEntityFrom(DamageType.thirstDeath, 1);
//     } else if (player.isSprinting() || player.isAirBorne) {
//       thirst = thirst + 2;
//     } else {
//       thirst++;
//     }
//     ChatHandler.logDebug(player.getDisplayName() + " - " + String.valueOf(thirst));
//   }
// 
//   public int getThirst() {
//     return thirst;
//   }
// }


import com.github.dayzminecraft.dayzminecraft.common.items.ItemMod;
import com.github.dayzminecraft.dayzminecraft.common.thirst.PlayerData;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumAction;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.world.World;
package com.github.dayzminecraft.dayzminecraft.common.items.food;


public class ItemDrinkBottle extends ItemMod {
  private final int healAmount;
  private boolean isAlcohol;

  public ItemDrinkBottle(int healAmount, boolean isAlcohol) {
    super();
// Path: src/main/java/com/github/dayzminecraft/dayzminecraft/common/items/ItemMod.java
// public class ItemMod extends Item {
//   public List<String> subNames;
//   private String name;
// 
//   public ItemMod() {
//     super();
//     maxStackSize = 1;
//     setCreativeTab(DayZ.creativeTab);
//   }
// 
//   @SuppressWarnings({"unchecked", "rawtypes"})
//   @Override
//   public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List informationList, boolean advancedItemTooltips) {
//     if (subNames == null) {
//       return;
//     }
//     for (String string : subNames) {
//       informationList.add(string);
//     }
//   }
// 
// 
//   public ItemMod subNames(String... strings) {
//     if (subNames == null) {
//       subNames = new ArrayList<String>();
//     }
//     Collections.addAll(subNames, strings);
//     return this;
//   }
// 
//   public String getName() {
//     return name;
//   }
// 
//   public ItemMod setName(String name) {
//     this.name = name;
//     setUnlocalizedName(name);
//     return this;
//   }
// }
// 
// Path: src/main/java/com/github/dayzminecraft/dayzminecraft/common/thirst/PlayerData.java
// public class PlayerData implements IExtendedEntityProperties {
//   public final static String EXT_PROP_NAME = "DayZPlayerData";
// 
//   private final EntityPlayer player;
// 
//   private int thirst;
// 
//   public PlayerData(EntityPlayer player) {
//     this.player = player;
//     this.thirst = 0;
//   }
// 
//   public static void register(EntityPlayer player) {
//     player.registerExtendedProperties(PlayerData.EXT_PROP_NAME, new PlayerData(player));
//   }
// 
//   public static PlayerData get(EntityPlayer player) {
//     return (PlayerData) player.getExtendedProperties(EXT_PROP_NAME);
//   }
// 
//   @Override
//   public void saveNBTData(NBTTagCompound compound) {
// 
//     NBTTagCompound properties = new NBTTagCompound();
//     properties.setInteger("thirstLevel", thirst);
//     compound.setTag(EXT_PROP_NAME, properties);
//   }
// 
//   @Override
//   public void loadNBTData(NBTTagCompound compound) {
//     NBTTagCompound properties = (NBTTagCompound) compound.getTag(EXT_PROP_NAME);
//     thirst = properties.getInteger("thirstLevel");
//   }
// 
//   @Override
//   public void init(Entity entity, World world) {
//   }
// 
//   public void drink(int amount) {
//     thirst = thirst - amount;
//     if (thirst < 0) thirst = 0;
//   }
// 
//   public void handleThirst() {
//     if (!Config.thirstEnabled) return;
//     if (player == null || player.isDead || player.capabilities.isCreativeMode) {
//       return;
//     } else if (thirst == 20000) {
//       ChatHandler.chatWarning(player, StatCollector.translateToLocal("thirst.thirdwarning"));
//       thirst++;
//     } else if (thirst == 18000) {
//       ChatHandler.chatWarning(player, StatCollector.translateToLocal("thirst.secondwarning"));
//       thirst++;
//     } else if (thirst == 16000) {
//       ChatHandler.chatWarning(player, StatCollector.translateToLocal("thirst.firstwarning"));
//       thirst++;
//     } else if (thirst >= 24000 && FMLCommonHandler.instance().getMinecraftServerInstance().getTickCounter() % 40 == 0) {
//       player.attackEntityFrom(DamageType.thirstDeath, 1);
//     } else if (player.isSprinting() || player.isAirBorne) {
//       thirst = thirst + 2;
//     } else {
//       thirst++;
//     }
//     ChatHandler.logDebug(player.getDisplayName() + " - " + String.valueOf(thirst));
//   }
// 
//   public int getThirst() {
//     return thirst;
//   }
// }


// Path: src/main/java/com/github/dayzminecraft/dayzminecraft/common/items/food/ItemDrinkBottle.java
import com.github.dayzminecraft.dayzminecraft.common.items.ItemMod;
import com.github.dayzminecraft.dayzminecraft.common.thirst.PlayerData;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumAction;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.world.World;

package com.github.dayzminecraft.dayzminecraft.common.items.food;


public class ItemDrinkBottle extends ItemMod {
  private final int healAmount;
  private boolean isAlcohol;

  public ItemDrinkBottle(int healAmount, boolean isAlcohol) {
    super();
    this.healAmount = healAmount;