Skip to content

Commit 06599f3

Browse files
committed
Remove methods in SpongeComponents in preparation for Adventure 4.8.0
1 parent a4c8052 commit 06599f3

File tree

1 file changed

+0
-87
lines changed

1 file changed

+0
-87
lines changed

src/main/java/org/spongepowered/api/adventure/SpongeComponents.java

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
import net.kyori.adventure.audience.Audience;
2828
import net.kyori.adventure.text.Component;
2929
import net.kyori.adventure.text.event.ClickEvent;
30-
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
31-
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
32-
import net.kyori.adventure.text.serializer.plain.PlainComponentSerializer;
3330
import org.spongepowered.api.Sponge;
3431
import org.spongepowered.api.command.CommandCause;
3532
import org.spongepowered.api.registry.DefaultedRegistryReference;
@@ -102,97 +99,13 @@ public static Component resolve(
10299
return SpongeComponents.factory().render(component, senderContext, resolver, otherResolvers);
103100
}
104101

105-
/**
106-
* Get a serializer for {@link Component}s that will convert to and from the
107-
* legacy component format used by the Vanilla client.
108-
*
109-
* <p>This legacy serializer uses the standard section symbol to mark
110-
* formatting characters.</p>
111-
*
112-
* <p>Implementations may provide a serializer capable of processing any
113-
* information that requires access to implementation details.</p>
114-
*
115-
* @return a section serializer
116-
*/
117-
public static LegacyComponentSerializer legacySectionSerializer() {
118-
return SpongeComponents.factory().legacySectionSerializer();
119-
}
120-
121-
/**
122-
* Get a serializer for {@link Component}s that will convert to and from the
123-
* legacy component format used by the Vanilla client.
124-
*
125-
* <p>This legacy serializer uses the alternate ampersand symbol ({@code &})
126-
* to mark formatting characters.</p>
127-
*
128-
* <p>Implementations may provide a serializer capable of processing any
129-
* information that requires access to implementation details.</p>
130-
*
131-
* @return a legacy serializer using ampersands
132-
*/
133-
public static LegacyComponentSerializer legacyAmpersandSerializer() {
134-
return SpongeComponents.factory().legacyAmpersandSerializer();
135-
}
136-
137-
/**
138-
* Get a serializer for {@link Component}s that will convert to and from the
139-
* legacy component format used by the Vanilla client.
140-
*
141-
* <p>Implementations may provide a serializer capable of processing any
142-
* information that requires access to implementation details.</p>
143-
*
144-
* @param formatChar the format character to use in place of the standard
145-
* section symbol
146-
* @return a legacy serializer using ampersands
147-
*/
148-
public static LegacyComponentSerializer legacySerializer(final char formatChar) {
149-
return SpongeComponents.factory().legacySerializer(formatChar);
150-
}
151-
152-
/**
153-
* Get a serializer for {@link Component}s that will convert to and from the
154-
* standard JSON serialization format using Gson.
155-
*
156-
* <p>Implementations may provide a serializer capable of processing any
157-
* information that requires implementation details, such as legacy
158-
* (pre-1.16) hover events.</p>
159-
*
160-
* @return a json component serializer
161-
*/
162-
public static GsonComponentSerializer gsonSerializer() {
163-
return SpongeComponents.factory().gsonSerializer();
164-
}
165-
166-
/**
167-
* Get a serializer for {@link Component}s that will convert components to
168-
* a plain-text string.
169-
*
170-
* <p>Implementations may provide a serializer capable of processing any
171-
* information that requires access to implementation details.</p>
172-
*
173-
* @return a serializer to plain text
174-
*/
175-
public static PlainComponentSerializer plainSerializer() {
176-
return SpongeComponents.factory().plainSerializer();
177-
}
178-
179102
private static Factory factory() {
180103
return Sponge.game().factoryProvider().provide(Factory.class);
181104
}
182105

183106
public interface Factory {
184107
ClickEvent callbackClickEvent(final Consumer<CommandCause> callback);
185108

186-
LegacyComponentSerializer legacySectionSerializer();
187-
188-
LegacyComponentSerializer legacyAmpersandSerializer();
189-
190-
LegacyComponentSerializer legacySerializer(final char formatChar);
191-
192-
GsonComponentSerializer gsonSerializer();
193-
194-
PlainComponentSerializer plainSerializer();
195-
196109
@SuppressWarnings("unchecked")
197110
Component render(
198111
final Component component,

0 commit comments

Comments
 (0)