Skip to content
PHONGNGYUEN1 edited this page Aug 21, 2024 · 10 revisions

Usage

Carrot is a subclass of the Food class. This item provides values for the quantity, limit, texture, name, and item code of this specific item.

Creating item

public Carrot(Texture foodTexture) {
        super("Carrot", 6, 10, 5, new FeedEffect(3));
        this.carrotTexture = new Texture("foodTexture/carrot.png");
    }

Image of Carrot

image

Clone this wiki locally