using System; using Brigadier.NET.Context; using MinecraftClient.CommandHandler.ArgumentType; namespace MinecraftClient.CommandHandler { public static class MccArguments { public static LocationArgumentType Location() { return new LocationArgumentType(); } public static Mapping.Location GetLocation(CommandContext context, string name) { return context.GetArgument(name); } public static TupleArgumentType Tuple() { return new TupleArgumentType(); } public static Tuple GetTuple(CommandContext context, string name) { return context.GetArgument>(name); } public static EntityTypeArgumentType EntityType() { return new EntityTypeArgumentType(); } public static Mapping.EntityType GetEntityType(CommandContext context, string name) { return context.GetArgument(name); } public static ItemTypeArgumentType ItemType() { return new ItemTypeArgumentType(); } public static Inventory.ItemType GetItemType(CommandContext context, string name) { return context.GetArgument(name); } public static BotNameArgumentType BotName() { return new BotNameArgumentType(); } public static ServerNickArgumentType ServerNick() { return new ServerNickArgumentType(); } public static AccountNickArgumentType AccountNick() { return new AccountNickArgumentType(); } public static InventoryIdArgumentType InventoryId() { return new InventoryIdArgumentType(); } public static InventoryActionArgumentType InventoryAction() { return new InventoryActionArgumentType(); } public static InventorySlotArgumentType InventorySlot() { return new InventorySlotArgumentType(); } public static Inventory.WindowActionType GetInventoryAction(CommandContext context, string name) { return context.GetArgument(name); } public static AutoCraftRecipeNameArgumentType AutoCraftRecipeName() { return new AutoCraftRecipeNameArgumentType(); } public static FarmerCropTypeArgumentType FarmerCropType() { return new FarmerCropTypeArgumentType(); } public static ChatBots.Farmer.CropType GetFarmerCropType(CommandContext context, string name) { return context.GetArgument(name); } public static PlayerNameArgumentType PlayerName() { return new PlayerNameArgumentType(); } public static MapBotMapIdArgumentType MapBotMapId() { return new MapBotMapIdArgumentType(); } public static HotbarSlotArgumentType HotbarSlot() { return new HotbarSlotArgumentType(); } public static ScriptNameArgumentType ScriptName() { return new ScriptNameArgumentType(); } } }