Class FoodArgument

java.lang.Object
com.zenith.command.brigadier.FoodArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<FoodData>, SerializableArgumentType<FoodData>

public class FoodArgument extends Object implements SerializableArgumentType<FoodData>
  • Field Details

    • INVALID_ITEM_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_ITEM_EXCEPTION
  • Constructor Details

    • FoodArgument

      public FoodArgument()
  • Method Details

    • food

      public static FoodArgument food()
    • parse

      public FoodData parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<FoodData>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getFood

      public static FoodData getFood(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name)
    • commandParser

      public @NonNull CommandParser commandParser()
      Specified by:
      commandParser in interface SerializableArgumentType<FoodData>
    • listSuggestions

      public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<FoodData>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object