Class ParsableOrdinaryColor

java.lang.Object
dev.esophose.playerparticles.util.inputparser.Parsable<OrdinaryColor>
dev.esophose.playerparticles.util.inputparser.parsable.ParsableOrdinaryColor

public class ParsableOrdinaryColor
extends Parsable<OrdinaryColor>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.util.Map<java.lang.String,​OrdinaryColor> COLOR_NAME_MAP  

    Fields inherited from class dev.esophose.playerparticles.util.inputparser.Parsable

    targetType
  • Constructor Summary

    Constructors 
    Constructor Description
    ParsableOrdinaryColor()  
  • Method Summary

    Modifier and Type Method Description
    OrdinaryColor parse​(PPlayer pplayer, java.util.List<java.lang.String> inputs)
    Consumes and parses input from the list

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • parse

      public OrdinaryColor parse​(PPlayer pplayer, java.util.List<java.lang.String> inputs)
      Description copied from class: Parsable
      Consumes and parses input from the list
      Specified by:
      parse in class Parsable<OrdinaryColor>
      Parameters:
      pplayer - The PPlayer who entered the input
      inputs - The input contents to try parsing
      Returns:
      The parsed value or null if parsing failed