    001    package net.minecraft.src;
    002
    003    import net.minecraft.server.MinecraftServer;
    004
    005    public class BehaviorPotionDispense implements IBehaviorDispenseItem
    006    {
    007        private final BehaviorDefaultDispenseItem field_82484_c;
    008
    009        /** Gets Minecraft Server profile. */
    010        final MinecraftServer minecraftServerProfiler;
    011
    012        public BehaviorPotionDispense(MinecraftServer par1)
    013        {
    014            this.minecraftServerProfiler = par1;
    015            this.field_82484_c = new BehaviorDefaultDispenseItem();
    016        }
    017
    018        public ItemStack func_82482_a(IBlockSource par1IBlockSource, ItemStack par2ItemStack)
    019        {
    020            return ItemPotion.isSplash(par2ItemStack.getItemDamage()) ? (new BehaviorPotionDispenseLogic(this, par2ItemStack)).func_82482_a(par1IBlockSource, par2ItemStack) : this.field_82484_c.func_82482_a(par1IBlockSource, par2ItemStack);
    021        }
    022    }