Add submodule MinecraftProtocolLibrary

This commit is contained in:
BruceChen 2022-12-23 00:50:20 +08:00
parent 87026e1bfb
commit 3f1de66af3
62 changed files with 1093 additions and 450 deletions

View file

@ -1,6 +1,7 @@
using System;
using Brigadier.NET.Context;
using MinecraftClient.CommandHandler.ArgumentType;
using MinecraftClient.EntityHandler;
namespace MinecraftClient.CommandHandler
{
@ -31,9 +32,9 @@ namespace MinecraftClient.CommandHandler
return new EntityTypeArgumentType();
}
public static Mapping.EntityType GetEntityType<TSource>(CommandContext<TSource> context, string name)
public static EntityType GetEntityType<TSource>(CommandContext<TSource> context, string name)
{
return context.GetArgument<Mapping.EntityType>(name);
return context.GetArgument<EntityType>(name);
}
public static ItemTypeArgumentType ItemType()