Class ContentParser<C,T extends mindustry.ctype.MappableContent>

java.lang.Object
com.xpdustry.distributor.command.cloud.parser.ContentParser<C,T>
All Implemented Interfaces:
org.incendo.cloud.parser.ArgumentParser<C,T>, org.incendo.cloud.suggestion.SuggestionProviderHolder<C>
Direct Known Subclasses:
ContentParser.Block, ContentParser.Item, ContentParser.Liquid, ContentParser.Planet, ContentParser.Status, ContentParser.Unit, ContentParser.Weather

public sealed class ContentParser<C,T extends mindustry.ctype.MappableContent> extends Object implements org.incendo.cloud.parser.ArgumentParser<C,T> permits ContentParser.Weather<C>, ContentParser.Unit<C>, ContentParser.Status<C>, ContentParser.Planet<C>, ContentParser.Liquid<C>, ContentParser.Item<C>, ContentParser.Block<C>
  • Method Details

    • parse

      public org.incendo.cloud.parser.ArgumentParseResult<T> parse(org.incendo.cloud.context.CommandContext<C> ctx, org.incendo.cloud.context.CommandInput input)
      Specified by:
      parse in interface org.incendo.cloud.parser.ArgumentParser<C,T extends mindustry.ctype.MappableContent>