package me.kaZep.Base; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.block.BrewingStand; import org.bukkit.block.Furnace; import org.bukkit.inventory.BrewerInventory; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.Potion; import org.bukkit.potion.PotionType; public class BrewingStandData { Location pos; String owner; long time; boolean setnewtime; public BrewingStandData(Location pos, String owner) { this.pos=pos; this.owner=owner; this.time=Main.SERVER_TICK_TIME+9000; this.setnewtime=false; } public void setOwner(String owner) { this.owner=owner; } public void setBrewingTime(int newval) { if ((BrewingStand)Bukkit.getWorld("world").getBlockAt(pos).getState()!=null) { BrewingStand brewingstand = (BrewingStand)Bukkit.getWorld("world").getBlockAt(pos).getState(); brewingstand.setBrewingTime(newval); } } public int getBrewingTime() { if ((BrewingStand)Bukkit.getWorld("world").getBlockAt(pos).getState()!=null) { BrewingStand brewingstand = (BrewingStand)Bukkit.getWorld("world").getBlockAt(pos).getState(); return brewingstand.getBrewingTime(); } else { return 0; } } public int getBrewingPotions() { if ((BrewingStand)Bukkit.getWorld("world").getBlockAt(pos).getState()!=null) { BrewingStand brewingstand = (BrewingStand)Bukkit.getWorld("world").getBlockAt(pos).getState(); ItemStack[] b = brewingstand.getInventory().getContents(); int potioncount=0; for (int i=0;i