How to relate a material to a string

Discussion in 'Plugin Development' started by kampai, Jul 10, 2016.

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

    kampai

    Basically in a config I have a string named lets say ABILITY_ONE. I want to be able to call that, but instead of returning a string it'd return a material. Note, I am using a list for the string names.
     
    Last edited: Jul 10, 2016
  2. Offline

    Sethburster

    @kampai
    A list of strings? or what
    Or is ABILITY_ONE in a list with other abilities.
     
  3. Offline

    kampai

    ABILITY_ONE is in a list with other abilities
     
  4. Offline

    Sethburster

  5. Offline

    kampai

    @Sethburster
    Sorry there was a typo I edited the main thread
     
  6. Offline

    Sethburster

    @kampai I believe Material#matchMaterial is what you need then.
    JavaDocs Info (open)



    You could also use Material#getMaterial but that wont try to format it. It has to be in uppercase and all that.
     
Thread Status:
Not open for further replies.

Share This Page