Material Sets

Discussion in 'Plugin Development' started by DrEinsteinium, May 2, 2014.

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

    DrEinsteinium

    Hi, this might be a dumb question, but is there an enum that contains small collections of enums that are related to eachother? In particular, the Material enum?

    Example:

    Code:
    public static Material[] BUCKETS = {Material.MILK_BUCKET,
    Material.LAVA_BUCKET, Material.WATER_BUCKET};
     
    public static Material[] ARMOR_LEATHER = {Material.LEATHER_HELMET,
    Material.LEATHER_CHESTPLATE, Material.LEATHER_LEGGINGS, Material.LEATHER_BOOTS};
    
    I dont like how cluttered and ugly the code is so I was wondering if there was another way of getting the same outcome.
     
  2. Offline

    DxDy

    There aren't any to my knowledge. There are however several functions in the Material Enum that describe material properties. Click me!
     
    DrEinsteinium likes this.
Thread Status:
Not open for further replies.

Share This Page