Jump to content

[Snippet] Tanner


Recommended Posts

Posted (edited)
public enum Tanner {

    LEATHER("Cowhide", 324, 148, "Leather"),
    HARD_LEATHER("Cowhide", 324, 149, "Hard leather"),
    GREEN_LEATHER("Green dragonhide", 324, 152, "Green dragon leather"),
    RED_LEATHER("Red dragonhide", 324, 154, "Red dragon leather"),
    BLUE_LEATHER("Blue dragonhide", 324, 153, "Blue dragon leather"),
    BLACK_LEATHER("Black dragonhide", 324, 107, "Black dragon leather");

    private int parent, child; //WidgetParent, WidgetChild
    private String startProduct, endProduct;

    Tanner(String startProduct, int parent, int child, String endProduct) {
        this.startProduct = startProduct;
        this.parent = parent;
        this.child = child;
        this.endProduct = endProduct;
    }

    public int getParent() {
        return parent;
    }

    public int getChild() {
        return child;
    }

    public String getStartProduct() {
        return startProduct;
    }

    public String getEndProduct() {
        return endProduct;
    }

}

refer to http://osbot.org/forum/topic/95545-snippet-a-start-to-an-aio-runecrafter-open-source for an example on usage.

Edited by Scripter 3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...