Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2025-01-11 23:51:00 +01:00
Move up method to ComponentRewriter interface
Dieser Commit ist enthalten in:
Ursprung
3418e2c21a
Commit
b244776cc9
@ -32,4 +32,6 @@ public interface ComponentRewriter {
|
||||
void processTag(UserConnection connection, @Nullable Tag tag);
|
||||
|
||||
void processText(UserConnection connection, @Nullable JsonElement element);
|
||||
|
||||
JsonElement processText(UserConnection connection, @Nullable String json);
|
||||
}
|
||||
|
@ -159,6 +159,7 @@ public abstract class ComponentRewriterBase<C extends ClientboundPacketType> imp
|
||||
// -----------------------------------------------------------------------
|
||||
// Json methods
|
||||
|
||||
@Override
|
||||
public JsonElement processText(final UserConnection connection, final String value) {
|
||||
try {
|
||||
final JsonElement root = JsonParser.parseString(value);
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren