Fix Javac generics breakage.
This commit is contained in:
parent
283c3d1664
commit
1ab40e0b3f
1 changed files with 2 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
||||||
package net.minecraftforge.server.command;
|
package net.minecraftforge.server.command;
|
||||||
|
|
||||||
import com.google.gson.JsonObject;
|
|
||||||
import com.mojang.brigadier.StringReader;
|
import com.mojang.brigadier.StringReader;
|
||||||
import com.mojang.brigadier.arguments.ArgumentType;
|
import com.mojang.brigadier.arguments.ArgumentType;
|
||||||
import com.mojang.brigadier.context.CommandContext;
|
import com.mojang.brigadier.context.CommandContext;
|
||||||
|
@ -8,9 +7,6 @@ import com.mojang.brigadier.exceptions.CommandSyntaxException;
|
||||||
import com.mojang.brigadier.suggestion.Suggestions;
|
import com.mojang.brigadier.suggestion.Suggestions;
|
||||||
import com.mojang.brigadier.suggestion.SuggestionsBuilder;
|
import com.mojang.brigadier.suggestion.SuggestionsBuilder;
|
||||||
import net.minecraft.command.ISuggestionProvider;
|
import net.minecraft.command.ISuggestionProvider;
|
||||||
import net.minecraft.command.arguments.IArgumentSerializer;
|
|
||||||
import net.minecraft.network.PacketBuffer;
|
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
@ -41,6 +37,7 @@ public class EnumArgument<T extends Enum<T>> implements ArgumentType<T> {
|
||||||
return Stream.of(enumClass.getEnumConstants()).map(Object::toString).collect(Collectors.toList());
|
return Stream.of(enumClass.getEnumConstants()).map(Object::toString).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* JAVAC HATES RAW TYPES!
|
||||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||||
public static class Serialzier implements IArgumentSerializer<EnumArgument> {
|
public static class Serialzier implements IArgumentSerializer<EnumArgument> {
|
||||||
@Override
|
@Override
|
||||||
|
@ -63,4 +60,5 @@ public class EnumArgument<T extends Enum<T>> implements ArgumentType<T> {
|
||||||
json.addProperty("enum", argument.enumClass.getName());
|
json.addProperty("enum", argument.enumClass.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue