mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-11-27 07:05:39 +00:00
[ci skip] Remove unused import
This commit is contained in:
parent
344357d4c9
commit
70b8aecf57
@ -5,19 +5,18 @@ Subject: [PATCH] Reject translatable components with more than 32 placeholders
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/network/chat/Component.java b/src/main/java/net/minecraft/network/chat/Component.java
|
diff --git a/src/main/java/net/minecraft/network/chat/Component.java b/src/main/java/net/minecraft/network/chat/Component.java
|
||||||
index 3c0ee4e1f42f6056ca86a6f9f129d467e29a2fbc..273a19d0297982dedf4450a8656435abaab29d28 100644
|
index 3c0ee4e1f42f6056ca86a6f9f129d467e29a2fbc..534f1e6092d2b64b6e6e3182eac0cc38718ab2f8 100644
|
||||||
--- a/src/main/java/net/minecraft/network/chat/Component.java
|
--- a/src/main/java/net/minecraft/network/chat/Component.java
|
||||||
+++ b/src/main/java/net/minecraft/network/chat/Component.java
|
+++ b/src/main/java/net/minecraft/network/chat/Component.java
|
||||||
@@ -26,6 +26,8 @@ import java.util.List;
|
@@ -26,6 +26,7 @@ import java.util.List;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
+
|
+
|
||||||
+import net.kyori.adventure.text.TextComponent;
|
|
||||||
import net.minecraft.ChatFormatting;
|
import net.minecraft.ChatFormatting;
|
||||||
import net.minecraft.Util;
|
import net.minecraft.Util;
|
||||||
import net.minecraft.network.chat.contents.BlockDataSource;
|
import net.minecraft.network.chat.contents.BlockDataSource;
|
||||||
@@ -44,6 +46,9 @@ import net.minecraft.util.GsonHelper;
|
@@ -44,6 +45,9 @@ import net.minecraft.util.GsonHelper;
|
||||||
import net.minecraft.util.LowerCaseEnumTypeAdapterFactory;
|
import net.minecraft.util.LowerCaseEnumTypeAdapterFactory;
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
import com.google.common.collect.Streams;
|
import com.google.common.collect.Streams;
|
||||||
@ -27,7 +26,7 @@ index 3c0ee4e1f42f6056ca86a6f9f129d467e29a2fbc..273a19d0297982dedf4450a8656435ab
|
|||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
|
||||||
@@ -255,6 +260,58 @@ public interface Component extends Message, FormattedText, Iterable<Component> {
|
@@ -255,6 +259,58 @@ public interface Component extends Message, FormattedText, Iterable<Component> {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -86,7 +85,7 @@ index 3c0ee4e1f42f6056ca86a6f9f129d467e29a2fbc..273a19d0297982dedf4450a8656435ab
|
|||||||
public Serializer() {}
|
public Serializer() {}
|
||||||
|
|
||||||
public MutableComponent deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {
|
public MutableComponent deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {
|
||||||
@@ -287,6 +344,14 @@ public interface Component extends Message, FormattedText, Iterable<Component> {
|
@@ -287,6 +343,14 @@ public interface Component extends Message, FormattedText, Iterable<Component> {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
JsonObject jsonobject = jsonelement.getAsJsonObject();
|
JsonObject jsonobject = jsonelement.getAsJsonObject();
|
||||||
|
Loading…
Reference in New Issue
Block a user