lilypad.client.connect.api.Connect Java Examples
The following examples show how to use
lilypad.client.connect.api.Connect.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HelperLilyPad.java From helper with MIT License | 6 votes |
public HelperLilyPad(@Nonnull Connect connect) { this.connect = connect; this.messenger = new AbstractMessenger( (channel, message) -> new MessageRequestTask(this.connect, channel, message).run(), channel -> { if (this.listening.getAndSet(true)) { return; } try { this.connect.registerEvents(this); } catch (Exception e) { this.listening.set(false); } }, channel -> {} ); }
Example #2
Source File: HelperLilyPadPlugin.java From helper with MIT License | 5 votes |
@Override protected void enable() { Connect connect = getService(Connect.class); this.globalLilyPad = new HelperLilyPad(connect); // expose all instances as services. provideService(LilyPad.class, this.globalLilyPad); provideService(Messenger.class, this.globalLilyPad); provideService(InstanceData.class, this.globalLilyPad); getLogger().info("Hooked with LilyPad-Connect"); }
Example #3
Source File: HelperLilyPad.java From helper with MIT License | 4 votes |
MessageRequestTask(Connect connect, String channel, byte[] message) { this.connect = connect; this.channel = channel; this.message = message; }
Example #4
Source File: HelperLilyPad.java From helper with MIT License | 4 votes |
@Nonnull @Override public Connect getConnect() { return this.connect; }
Example #5
Source File: LilyPadMessenger.java From LuckPerms with MIT License | 4 votes |
public void init() { this.connect = this.plugin.getBootstrap().getServer().getServicesManager().getRegistration(Connect.class).getProvider(); this.connect.registerEvents(this); }
Example #6
Source File: ConnectPlugin.java From Bukkit-Connect with GNU General Public License v3.0 | 4 votes |
public Connect getConnect() { return this.connect; }
Example #7
Source File: ConnectPlayerCallback.java From JLilyPad with GNU General Public License v3.0 | 4 votes |
public ConnectPlayerCallback(Connect connect) { this.connect = connect; }
Example #8
Source File: ConnectServerSource.java From JLilyPad with GNU General Public License v3.0 | 4 votes |
public ConnectServerSource(Connect connect) { this.connect = connect; }
Example #9
Source File: ConnectThread.java From JLilyPad with GNU General Public License v3.0 | 4 votes |
public ConnectThread(Connect connect, ConnectServerSource connectServerSource, ConnectPlayerCallback connectPlayerCallback, ProxyConfig proxyConfig) { this.connect = connect; this.connectServerSource = connectServerSource; this.connectPlayerCallback = connectPlayerCallback; this.proxyConfig = proxyConfig; }
Example #10
Source File: QueryCacheUpdater.java From JLilyPad with GNU General Public License v3.0 | 4 votes |
public QueryCacheUpdater(Connect connect, QueryCache queryCache) { this.connect = connect; this.queryCache = queryCache; }
Example #11
Source File: LilyPad.java From helper with MIT License | 2 votes |
/** * Gets the Connect instance * * @return the Connect instance */ @Nonnull Connect getConnect();