Class for Inventories

Discussion in 'Plugin Development' started by BurnerDiamond, Jan 3, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    BurnerDiamond

    I have 5 different Classes and each of them has 10 different chests or inventories.

    Is there a way I can make a class only for Inventories sort of Inventories.java.

    It would contain ONLY inventories/chests/itemstacks which I would use in different classes.

    It's not necessary but it would make the plugin look cleaner
     
  2. Offline

    HeadGam3z

    Make another class. Call it whatever. Put your inventories in there. Make getters and (if needed) setters. Use your new class to call your inventories (getters).
     
  3. Offline

    BurnerDiamond

    Could I have an example with a main class and an inventory class?
     
Thread Status:
Not open for further replies.

Share This Page