22w16b with massive Component changes
This commit is contained in:
1 parent
8101abb431
commit
746c8548e9
31 files changed
+153
-162
No files matched your search
@@ -14,7 +14,7 @@ import net.minecraft.commands.CommandBuildContext;
|
||||
import net.minecraft.commands.CommandSourceStack;
|
||||
import net.minecraft.commands.arguments.coordinates.BlockPosArgument;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.network.chat.BaseComponent;
|
||||
import net.minecraft.network.chat.Component;
|
||||
|
||||
import static com.mojang.brigadier.arguments.StringArgumentType.getString;
|
||||
import static com.mojang.brigadier.arguments.StringArgumentType.greedyString;
|
||||
@@ -42,7 +42,7 @@ public class InfoCommand
|
||||
dispatcher.register(command);
|
||||
}
|
||||
|
||||
public static void printBlock(List<BaseComponent> messages, CommandSourceStack source, String grep)
|
||||
public static void printBlock(List<Component> messages, CommandSourceStack source, String grep)
|
||||
{
|
||||
Messenger.m(source, "");
|
||||
if (grep != null)
|
||||
@@ -51,7 +51,7 @@ public class InfoCommand
|
||||
Messenger.m(source, messages.get(0));
|
||||
for (int i = 1; i<messages.size(); i++)
|
||||
{
|
||||
BaseComponent line = messages.get(i);
|
||||
Component line = messages.get(i);
|
||||
Matcher m = p.matcher(line.getString());
|
||||
if (m.find())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user