Package com.teamjmonkey.entity.food

Examples of com.teamjmonkey.entity.food.FoodEntity


        this.target = target;
    }

    private void eat() {
        FoodControl fc = target.getControl(FoodControl.class);
        FoodEntity fe = (FoodEntity)target.getUserData("entity");
        if (fc != null && fe != null) {
            creature.stop();
            creature.eat(fc);
            fe.remove();
            done = true;
        }
    }
View Full Code Here

TOP

Related Classes of com.teamjmonkey.entity.food.FoodEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.