    001    package net.minecraft.dispenser;
    002
    003    import net.minecraft.entity.IProjectile;
    004    import net.minecraft.entity.projectile.EntitySnowball;
    005    import net.minecraft.server.MinecraftServer;
    006    import net.minecraft.world.World;
    007
    008    public class BehaviorSnowballDispense extends BehaviorProjectileDispense
    009    {
    010        /** Instance of MinecraftServer. */
    011        final MinecraftServer theServer;
    012
    013        public BehaviorSnowballDispense(MinecraftServer par1)
    014        {
    015            this.theServer = par1;
    016        }
    017
    018        /**
    019         * Return the projectile entity spawned by this dispense behavior.
    020         */
    021        protected IProjectile getProjectileEntity(World par1World, IPosition par2IPosition)
    022        {
    023            return new EntitySnowball(par1World, par2IPosition.getX(), par2IPosition.getY(), par2IPosition.getZ());
    024        }
    025    }