Redstone Tools (RST)

Redstone Tools (RST)

0 Downloads

Rework argument and seriaizers to fit with minecrafts new format

RUGMJ opened this issue ยท 1 comments

commented
commented

All our serializers will now need to implement net.minecraft.command.argument.serialize.ArgumentSerializer

public interface ArgumentSerializer<A extends ArgumentType<?>, T extends ArgumentTypeProperties<A>> {
    public void writePacket(T var1, PacketByteBuf var2);

    public T fromPacket(PacketByteBuf var1);

    public void writeJson(T var1, JsonObject var2);

    public T getArgumentTypeProperties(A var1);

    public static interface ArgumentTypeProperties<A extends ArgumentType<?>> {
        public A createType(CommandRegistryAccess var1);

        public ArgumentSerializer<A, ?> getSerializer();
    }
}