Class VelocityBridgeManagement
java.lang.Object
eu.cloudnetservice.modules.bridge.platform.PlatformBridgeManagement<com.velocitypowered.api.proxy.Player,NetworkPlayerProxyInfo>
eu.cloudnetservice.modules.bridge.platform.velocity.VelocityBridgeManagement
- All Implemented Interfaces:
BridgeManagement
@Singleton
@ProvidesFor(platform="velocity",
types={PlatformBridgeManagement.class,BridgeManagement.class})
final class VelocityBridgeManagement
extends PlatformBridgeManagement<com.velocitypowered.api.proxy.Player,NetworkPlayerProxyInfo>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlayerExecutorprivate static final BiFunction<com.velocitypowered.api.proxy.Player, String, Boolean> private final com.velocitypowered.api.proxy.ProxyServerFields inherited from class eu.cloudnetservice.modules.bridge.platform.PlatformBridgeManagement
bridgeServiceHelper, cachedServices, cacheRegisterListener, cacheTester, cacheUnregisterListener, configuration, CONNECTED_SERVICE_TESTER, currentFallbackConfiguration, eventManager, fallbackProfiles, ownNetworkServiceInfo, playerManager, selfTask, sender, serviceInfoHolder, serviceProvider, taskProvider, wrapperConfigFields inherited from interface eu.cloudnetservice.modules.bridge.BridgeManagement
BRIDGE_CHANNEL_NAME, BRIDGE_PLAYER_CHANNEL_NAME, BRIDGE_PLAYER_DB_NAME, BRIDGE_PLAYER_EXECUTOR_CHANNEL_NAME -
Constructor Summary
ConstructorsConstructorDescriptionVelocityBridgeManagement(@NonNull eu.cloudnetservice.driver.network.rpc.factory.RPCFactory rpcFactory, @NonNull com.velocitypowered.api.proxy.ProxyServer proxyServer, @NonNull eu.cloudnetservice.driver.event.EventManager eventManager, @NonNull eu.cloudnetservice.driver.network.NetworkClient networkClient, @NonNull eu.cloudnetservice.driver.provider.ServiceTaskProvider taskProvider, @NonNull BridgeServiceHelper serviceHelper, @NonNull eu.cloudnetservice.wrapper.holder.ServiceInfoHolder serviceInfoHolder, @NonNull eu.cloudnetservice.driver.provider.CloudServiceProvider serviceProvider, @NonNull eu.cloudnetservice.wrapper.configuration.WrapperConfiguration wrapperConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendServiceInformation(@NonNull eu.cloudnetservice.wrapper.event.ServiceInfoPropertiesConfigureEvent configureEvent) createPlayerInformation(@NonNull com.velocitypowered.api.proxy.Player player) directPlayerExecutor(@NonNull UUID uniqueId) voidhandleFallbackConnectionSuccess(@NonNull com.velocitypowered.api.proxy.Player player) booleanisOnAnyFallbackInstance(@NonNull com.velocitypowered.api.proxy.Player player) @NonNull BiFunction<com.velocitypowered.api.proxy.Player, String, Boolean> voidregisterServices(@NonNull eu.cloudnetservice.driver.registry.ServiceRegistry registry) Registers all services provided by this bridge management to the given service registry.voidremoveFallbackProfile(@NonNull com.velocitypowered.api.proxy.Player player) wrapPlayer(@NonNull com.velocitypowered.api.proxy.Player player) Methods inherited from class eu.cloudnetservice.modules.bridge.platform.PlatformBridgeManagement
anyTaskService, cachedService, cachedService, cachedServices, configuration, configuration, configurationSilently, fallback, handleFallbackConnectionSuccess, handleServiceUpdate, handleTaskUpdate, isOnAnyFallbackInstance, ownNetworkServiceInfo, possibleFallbacks, postInit, removeFallbackProfile, selfTask
-
Field Details
-
PERM_FUNCTION
-
proxyServer
private final com.velocitypowered.api.proxy.ProxyServer proxyServer -
globalDirectPlayerExecutor
-
-
Constructor Details
-
VelocityBridgeManagement
@Inject public VelocityBridgeManagement(@NonNull @NonNull eu.cloudnetservice.driver.network.rpc.factory.RPCFactory rpcFactory, @NonNull @NonNull com.velocitypowered.api.proxy.ProxyServer proxyServer, @NonNull @NonNull eu.cloudnetservice.driver.event.EventManager eventManager, @NonNull @NonNull eu.cloudnetservice.driver.network.NetworkClient networkClient, @NonNull @NonNull eu.cloudnetservice.driver.provider.ServiceTaskProvider taskProvider, @NonNull @NonNull BridgeServiceHelper serviceHelper, @NonNull @NonNull eu.cloudnetservice.wrapper.holder.ServiceInfoHolder serviceInfoHolder, @NonNull @NonNull eu.cloudnetservice.driver.provider.CloudServiceProvider serviceProvider, @NonNull @NonNull eu.cloudnetservice.wrapper.configuration.WrapperConfiguration wrapperConfiguration)
-
-
Method Details
-
registerServices
public void registerServices(@NonNull @NonNull eu.cloudnetservice.driver.registry.ServiceRegistry registry) Description copied from interface:BridgeManagementRegisters all services provided by this bridge management to the given service registry.- Parameters:
registry- the registry to register the services in.
-
wrapPlayer
@NonNull public @NonNull ServicePlayer wrapPlayer(@NonNull @NonNull com.velocitypowered.api.proxy.Player player) - Specified by:
wrapPlayerin classPlatformBridgeManagement<com.velocitypowered.api.proxy.Player,NetworkPlayerProxyInfo>
-
createPlayerInformation
@NonNull public @NonNull NetworkPlayerProxyInfo createPlayerInformation(@NonNull @NonNull com.velocitypowered.api.proxy.Player player) - Specified by:
createPlayerInformationin classPlatformBridgeManagement<com.velocitypowered.api.proxy.Player,NetworkPlayerProxyInfo>
-
permissionFunction
@NonNull public @NonNull BiFunction<com.velocitypowered.api.proxy.Player,String, permissionFunction()Boolean> - Specified by:
permissionFunctionin classPlatformBridgeManagement<com.velocitypowered.api.proxy.Player,NetworkPlayerProxyInfo>
-
isOnAnyFallbackInstance
public boolean isOnAnyFallbackInstance(@NonNull @NonNull com.velocitypowered.api.proxy.Player player) - Specified by:
isOnAnyFallbackInstancein classPlatformBridgeManagement<com.velocitypowered.api.proxy.Player,NetworkPlayerProxyInfo>
-
fallback
@NonNull public @NonNull Optional<eu.cloudnetservice.driver.service.ServiceInfoSnapshot> fallback(@NonNull @NonNull com.velocitypowered.api.proxy.Player player) - Specified by:
fallbackin classPlatformBridgeManagement<com.velocitypowered.api.proxy.Player,NetworkPlayerProxyInfo>
-
fallback
@NonNull public @NonNull Optional<eu.cloudnetservice.driver.service.ServiceInfoSnapshot> fallback(@NonNull @NonNull com.velocitypowered.api.proxy.Player player, @Nullable @Nullable String currServer) - Specified by:
fallbackin classPlatformBridgeManagement<com.velocitypowered.api.proxy.Player,NetworkPlayerProxyInfo>
-
handleFallbackConnectionSuccess
public void handleFallbackConnectionSuccess(@NonNull @NonNull com.velocitypowered.api.proxy.Player player) - Specified by:
handleFallbackConnectionSuccessin classPlatformBridgeManagement<com.velocitypowered.api.proxy.Player,NetworkPlayerProxyInfo>
-
removeFallbackProfile
- Specified by:
removeFallbackProfilein classPlatformBridgeManagement<com.velocitypowered.api.proxy.Player,NetworkPlayerProxyInfo>
-
directPlayerExecutor
- Specified by:
directPlayerExecutorin classPlatformBridgeManagement<com.velocitypowered.api.proxy.Player,NetworkPlayerProxyInfo>
-
appendServiceInformation
public void appendServiceInformation(@NonNull @NonNull eu.cloudnetservice.wrapper.event.ServiceInfoPropertiesConfigureEvent configureEvent) - Overrides:
appendServiceInformationin classPlatformBridgeManagement<com.velocitypowered.api.proxy.Player,NetworkPlayerProxyInfo>
-