File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
src/main/java/org/spongepowered/api Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 3131import org .spongepowered .api .data .persistence .DataBuilder ;
3232import org .spongepowered .api .data .persistence .DataSerializable ;
3333import org .spongepowered .api .event .EventManager ;
34- import org .spongepowered .api .network .channel .ChannelRegistry ;
34+ import org .spongepowered .api .network .channel .ChannelManager ;
3535import org .spongepowered .api .plugin .PluginManager ;
3636import org .spongepowered .api .registry .BuilderProvider ;
3737import org .spongepowered .api .registry .FactoryProvider ;
@@ -176,11 +176,11 @@ default Client client() {
176176 ConfigManager configManager ();
177177
178178 /**
179- * Gets the {@link ChannelRegistry } for creating network channels.
179+ * Gets the {@link ChannelManager } for creating network channels.
180180 *
181- * @return The channel registry
181+ * @return The channel manager
182182 */
183- ChannelRegistry channelRegistry ();
183+ ChannelManager channelManager ();
184184
185185 /**
186186 * Gets the {@link MetricsConfigManager} instance, allowing data/metric gathering
Original file line number Diff line number Diff line change 3131import org .spongepowered .api .data .DataManager ;
3232import org .spongepowered .api .event .EventManager ;
3333import org .spongepowered .api .event .lifecycle .LifecycleEvent ;
34- import org .spongepowered .api .network .channel .ChannelRegistry ;
34+ import org .spongepowered .api .network .channel .ChannelManager ;
3535import org .spongepowered .api .plugin .PluginManager ;
3636import org .spongepowered .api .scheduler .Scheduler ;
3737import org .spongepowered .api .service .ServiceProvider ;
@@ -116,12 +116,12 @@ public static ConfigManager configManager() {
116116 }
117117
118118 /**
119- * Gets the {@link ChannelRegistry } for creating network channels.
119+ * Gets the {@link ChannelManager } for creating network channels.
120120 *
121121 * @return The channel registry
122122 */
123- public static ChannelRegistry channelRegistry () {
124- return Sponge .game ().channelRegistry ();
123+ public static ChannelManager channelManager () {
124+ return Sponge .game ().channelManager ();
125125 }
126126
127127 /**
Original file line number Diff line number Diff line change 2828import org .spongepowered .api .network .EngineConnection ;
2929
3030/**
31- * Represents a network channel bound to a {@link ChannelRegistry }. The channel
31+ * Represents a network channel bound to a {@link ChannelManager }. The channel
3232 * can be used to send and receive data.
3333 */
3434public interface Channel {
@@ -38,7 +38,7 @@ public interface Channel {
3838 *
3939 * @return The registrar
4040 */
41- ChannelRegistry registry ();
41+ ChannelManager registry ();
4242
4343 /**
4444 * Gets this channel's bound key.
Original file line number Diff line number Diff line change 3131import java .util .Optional ;
3232
3333/**
34- * A registry handling custom payloads via {@link Channel}s to and from
34+ * A manager handling custom payloads via {@link Channel}s to and from
3535 * {@link EngineConnection}s.
3636 */
37- public interface ChannelRegistry {
37+ public interface ChannelManager {
3838
3939 /**
4040 * Gets a channel binding if a channel exists for the given key.
You can’t perform that action at this time.
0 commit comments