feat: add bungee typings
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
4e6cda0545
commit
a2efd878db
225
packages/types/dist/typings/bungee/index.d.ts
vendored
Normal file
225
packages/types/dist/typings/bungee/index.d.ts
vendored
Normal file
@ -0,0 +1,225 @@
|
||||
/// <reference path="./net.md_5.bungee.Bootstrap.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.BungeeCord.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.BungeeCordLauncher.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.BungeeSecurityManager.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.BungeeServerInfo.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.BungeeTitle.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.ConnectionThrottle.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.EncryptionUtil.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.Metrics.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.PacketConstants.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.PlayerInfoSerializer.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.PlayerSkinConfiguration.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.ServerConnection.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.ServerConnector.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.UserConnection.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.Util.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.AbstractReconnectHandler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.Callback.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ChatColor.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ChatMessageType.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.CommandSender.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.Favicon.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ProxyConfig.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ProxyServer.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ReconnectHandler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ServerConnectRequest.Builder.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ServerConnectRequest.Result.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ServerConnectRequest.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ServerPing.ModInfo.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ServerPing.ModItem.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ServerPing.PlayerInfo.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ServerPing.Players.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ServerPing.Protocol.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.ServerPing.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.SkinConfiguration.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.Title.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.BaseComponent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.ClickEvent.Action.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.ClickEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.ComponentBuilder.Joiner.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.ComponentBuilder.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.HoverEvent.Action.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.HoverEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.KeybindComponent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.Keybinds.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.ScoreComponent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.SelectorComponent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.TextComponent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.chat.TranslatableComponent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.config.ConfigurationAdapter.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.config.ListenerInfo.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.config.ServerInfo.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.connection.ConnectedPlayer.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.connection.Connection.Unsafe.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.connection.Connection.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.connection.PendingConnection.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.connection.ProxiedPlayer.MainHand.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.connection.ProxiedPlayer.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.connection.Server.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.AsyncEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.ChatEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.LoginEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.PermissionCheckEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.PlayerDisconnectEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.PlayerHandshakeEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.PluginMessageEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.PostLoginEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.PreLoginEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.ProxyPingEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.ProxyReloadEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.ServerConnectEvent.Reason.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.ServerConnectEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.ServerConnectedEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.ServerDisconnectEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.ServerKickEvent.State.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.ServerKickEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.ServerSwitchEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.SettingsChangedEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.TabCompleteEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.TabCompleteResponseEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.event.TargetedEvent.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.plugin.Cancellable.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.plugin.Command.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.plugin.Event.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.plugin.Listener.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.plugin.Plugin.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.plugin.PluginClassloader.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.plugin.PluginDescription.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.plugin.PluginLogger.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.plugin.PluginManager.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.plugin.TabExecutor.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.scheduler.GroupedThreadFactory.BungeeGroup.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.scheduler.GroupedThreadFactory.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.scheduler.ScheduledTask.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.scheduler.TaskScheduler.Unsafe.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.scheduler.TaskScheduler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.score.Objective.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.score.Position.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.score.Score.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.score.Scoreboard.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.api.score.Team.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.chat.BaseComponentSerializer.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.chat.ComponentSerializer.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.chat.KeybindComponentSerializer.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.chat.ScoreComponentSerializer.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.chat.SelectorComponentSerializer.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.chat.TextComponentSerializer.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.chat.TranslatableComponentSerializer.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.chat.TranslationRegistry.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.command.CommandBungee.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.command.CommandEnd.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.command.CommandIP.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.command.CommandPerms.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.command.CommandReload.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.command.ConsoleCommandCompleter.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.command.ConsoleCommandSender.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.command.PlayerCommand.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.compress.CompressFactory.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.conf.Configuration.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.conf.YamlConfig.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.config.Configuration.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.config.ConfigurationProvider.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.config.YamlConfiguration.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.connection.CancelSendSignal.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.connection.DownstreamBridge.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.connection.InitialHandler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.connection.LoginResult.Property.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.connection.LoginResult.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.connection.PingHandler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.connection.UpstreamBridge.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.entitymap.EntityMap.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.event.EventBus.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.event.EventHandler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.event.EventHandlerMethod.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.event.EventPriority.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.forge.ForgeClientHandler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.forge.ForgeConstants.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.forge.ForgeServerHandler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.forge.ForgeServerHandshakeState.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.forge.ForgeUtils.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.forge.IForgeClientPacketHandler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.forge.IForgeServerPacketHandler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.http.HttpClient.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.jni.NativeCode.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.jni.NativeCodeException.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.jni.cipher.BungeeCipher.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.jni.cipher.JavaCipher.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.jni.cipher.NativeCipher.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.jni.zlib.BungeeZlib.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.jni.zlib.JavaZlib.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.jni.zlib.NativeCompressImpl.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.jni.zlib.NativeZlib.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.log.BungeeLogger.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.log.ColouredWriter.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.log.ConciseFormatter.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.log.LogDispatcher.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.log.LoggingOutputStream.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.module.JenkinsModuleSource.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.module.ModuleManager.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.module.ModuleSpec.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.module.ModuleVersion.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.netty.ChannelWrapper.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.netty.HandlerBoss.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.netty.PacketHandler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.netty.PipelineUtils.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.AbstractPacketHandler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.BadPacketException.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.DefinedPacket.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.LegacyDecoder.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.OverflowPacketException.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.PacketWrapper.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.Protocol.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.ProtocolConstants.Direction.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.ProtocolConstants.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.Varint21FrameDecoder.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.BossBar.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.Chat.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.ClientSettings.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.ClientStatus.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.Commands.SuggestionRegistry.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.Commands.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.EncryptionRequest.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.EncryptionResponse.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.EntityStatus.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.Handshake.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.KeepAlive.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.Kick.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.LegacyHandshake.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.LegacyPing.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.Login.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.LoginPayloadRequest.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.LoginPayloadResponse.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.LoginRequest.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.LoginSuccess.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.PingPacket.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.PlayerListHeaderFooter.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.PlayerListItem.Action.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.PlayerListItem.Item.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.PlayerListItem.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.PluginMessage.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.Respawn.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.ScoreboardDisplay.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.ScoreboardObjective.HealthDisplay.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.ScoreboardObjective.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.ScoreboardScore.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.SetCompression.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.StatusRequest.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.StatusResponse.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.TabCompleteRequest.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.TabCompleteResponse.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.Team.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.Title.Action.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.Title.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.protocol.packet.ViewDistance.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.query.RemoteQuery.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.scheduler.BungeeScheduler.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.scheduler.BungeeTask.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.tab.ServerUnique.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.tab.TabList.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.util.BoundedArrayList.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.util.BufUtil.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.util.ChatComponentTransformer.d.ts" />
|
||||
/// <reference path="./net.md_5.bungee.util.QuietException.d.ts" />
|
13
packages/types/dist/typings/bungee/net.md_5.bungee.Bootstrap.d.ts
vendored
Normal file
13
packages/types/dist/typings/bungee/net.md_5.bungee.Bootstrap.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class Bootstrap extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public static main(args: string): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
94
packages/types/dist/typings/bungee/net.md_5.bungee.BungeeCord.d.ts
vendored
Normal file
94
packages/types/dist/typings/bungee/net.md_5.bungee.BungeeCord.d.ts
vendored
Normal file
@ -0,0 +1,94 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class BungeeCord extends ProxyServer {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public isRunning: boolean;
|
||||
// @ts-ignore
|
||||
public config: any /*net.md_5.bungee.conf.Configuration*/;
|
||||
// @ts-ignore
|
||||
public eventLoops: EventLoopGroup;
|
||||
// @ts-ignore
|
||||
public pluginManager: PluginManager;
|
||||
// @ts-ignore
|
||||
public gson: any /*Gson*/;
|
||||
// @ts-ignore
|
||||
public static getInstance(): any /*net.md_5.bungee.BungeeCord*/;
|
||||
/**
|
||||
* Start this proxy instance by loading the configuration, plugins and
|
||||
* starting the connect thread.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public start(): void;
|
||||
// @ts-ignore
|
||||
public startListeners(): void;
|
||||
// @ts-ignore
|
||||
public stopListeners(): void;
|
||||
// @ts-ignore
|
||||
public stop(): void;
|
||||
// @ts-ignore
|
||||
public stop(reason: string): void;
|
||||
/**
|
||||
* Broadcasts a packet to all clients that is connected to this instance.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public broadcast(packet: DefinedPacket): void;
|
||||
// @ts-ignore
|
||||
public getName(): string;
|
||||
// @ts-ignore
|
||||
public getVersion(): string;
|
||||
// @ts-ignore
|
||||
public reloadMessages(): void;
|
||||
// @ts-ignore
|
||||
public getTranslation(name: string, args: java.lang.Object): string;
|
||||
// @ts-ignore
|
||||
public getPlayers(): java.util.Collection;
|
||||
// @ts-ignore
|
||||
public getOnlineCount(): number;
|
||||
// @ts-ignore
|
||||
public getPlayer(name: string): ProxiedPlayer;
|
||||
// @ts-ignore
|
||||
public getPlayerByOfflineUUID(name: java.util.UUID): any /*net.md_5.bungee.UserConnection*/;
|
||||
// @ts-ignore
|
||||
public getPlayer(uuid: java.util.UUID): ProxiedPlayer;
|
||||
// @ts-ignore
|
||||
public getServers(): java.util.Map;
|
||||
// @ts-ignore
|
||||
public getServerInfo(name: string): ServerInfo;
|
||||
// @ts-ignore
|
||||
public registerChannel(channel: string): void;
|
||||
// @ts-ignore
|
||||
public unregisterChannel(channel: string): void;
|
||||
// @ts-ignore
|
||||
public getChannels(): java.util.Collection;
|
||||
// @ts-ignore
|
||||
public registerChannels(protocolVersion: number): PluginMessage;
|
||||
// @ts-ignore
|
||||
public getProtocolVersion(): number;
|
||||
// @ts-ignore
|
||||
public getGameVersion(): string;
|
||||
// @ts-ignore
|
||||
public constructServerInfo(name: string, address: java.net.InetSocketAddress, motd: string, restricted: boolean): ServerInfo;
|
||||
// @ts-ignore
|
||||
public getConsole(): CommandSender;
|
||||
// @ts-ignore
|
||||
public broadcast(message: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public broadcast(message: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public addConnection(con: any /*net.md_5.bungee.UserConnection*/): void;
|
||||
// @ts-ignore
|
||||
public removeConnection(con: any /*net.md_5.bungee.UserConnection*/): void;
|
||||
// @ts-ignore
|
||||
public getDisabledCommands(): java.util.Collection;
|
||||
// @ts-ignore
|
||||
public matchPlayer(partialName: string): java.util.Collection;
|
||||
// @ts-ignore
|
||||
public createTitle(): Title;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
packages/types/dist/typings/bungee/net.md_5.bungee.BungeeCordLauncher.d.ts
vendored
Normal file
13
packages/types/dist/typings/bungee/net.md_5.bungee.BungeeCordLauncher.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class BungeeCordLauncher extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public static main(args: string): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
19
packages/types/dist/typings/bungee/net.md_5.bungee.BungeeSecurityManager.d.ts
vendored
Normal file
19
packages/types/dist/typings/bungee/net.md_5.bungee.BungeeSecurityManager.d.ts
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class BungeeSecurityManager extends java.lang.SecurityManager {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public checkExit(status: number): void;
|
||||
// @ts-ignore
|
||||
public checkAccess(g: java.lang.ThreadGroup): void;
|
||||
// @ts-ignore
|
||||
public checkPermission(perm: java.security.Permission, context: java.lang.Object): void;
|
||||
// @ts-ignore
|
||||
public checkPermission(perm: java.security.Permission): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
33
packages/types/dist/typings/bungee/net.md_5.bungee.BungeeServerInfo.d.ts
vendored
Normal file
33
packages/types/dist/typings/bungee/net.md_5.bungee.BungeeServerInfo.d.ts
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class BungeeServerInfo extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public addPlayer(player: ProxiedPlayer): void;
|
||||
// @ts-ignore
|
||||
public removePlayer(player: ProxiedPlayer): void;
|
||||
// @ts-ignore
|
||||
public getPlayers(): java.util.Collection;
|
||||
// @ts-ignore
|
||||
public getPermission(): string;
|
||||
// @ts-ignore
|
||||
public canAccess(player: CommandSender): boolean;
|
||||
// @ts-ignore
|
||||
public equals(obj: java.lang.Object): boolean;
|
||||
// @ts-ignore
|
||||
public hashCode(): number;
|
||||
// @ts-ignore
|
||||
public sendData(channel: string, data: number): void;
|
||||
// @ts-ignore
|
||||
public sendData(channel: string, data: number, queue: boolean): boolean;
|
||||
// @ts-ignore
|
||||
public ping(callback: any): void;
|
||||
// @ts-ignore
|
||||
public ping(callback: any, protocolVersion: number): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
31
packages/types/dist/typings/bungee/net.md_5.bungee.BungeeTitle.d.ts
vendored
Normal file
31
packages/types/dist/typings/bungee/net.md_5.bungee.BungeeTitle.d.ts
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class BungeeTitle extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public title(text: BaseComponent): Title;
|
||||
// @ts-ignore
|
||||
public title(text: BaseComponent): Title;
|
||||
// @ts-ignore
|
||||
public subTitle(text: BaseComponent): Title;
|
||||
// @ts-ignore
|
||||
public subTitle(text: BaseComponent): Title;
|
||||
// @ts-ignore
|
||||
public fadeIn(ticks: number): Title;
|
||||
// @ts-ignore
|
||||
public stay(ticks: number): Title;
|
||||
// @ts-ignore
|
||||
public fadeOut(ticks: number): Title;
|
||||
// @ts-ignore
|
||||
public clear(): Title;
|
||||
// @ts-ignore
|
||||
public reset(): Title;
|
||||
// @ts-ignore
|
||||
public send(player: ProxiedPlayer): Title;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.ConnectionThrottle.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.ConnectionThrottle.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class ConnectionThrottle extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor(throttleTime: number, throttleLimit: number)
|
||||
// @ts-ignore
|
||||
public unthrottle(address: java.net.InetAddress): void;
|
||||
// @ts-ignore
|
||||
public throttle(address: java.net.InetAddress): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
23
packages/types/dist/typings/bungee/net.md_5.bungee.EncryptionUtil.d.ts
vendored
Normal file
23
packages/types/dist/typings/bungee/net.md_5.bungee.EncryptionUtil.d.ts
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class EncryptionUtil extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public static nativeFactory: any;
|
||||
// @ts-ignore
|
||||
public static encryptRequest(): EncryptionRequest;
|
||||
// @ts-ignore
|
||||
public static getSecret(resp: EncryptionResponse, request: EncryptionRequest): any /*javax.crypto.SecretKey*/;
|
||||
// @ts-ignore
|
||||
public static getCipher(forEncryption: boolean, shared: any /*javax.crypto.SecretKey*/): BungeeCipher;
|
||||
// @ts-ignore
|
||||
public static getPubkey(request: EncryptionRequest): java.security.PublicKey;
|
||||
// @ts-ignore
|
||||
public static encrypt(key: java.security.Key, b: number): number[];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
packages/types/dist/typings/bungee/net.md_5.bungee.Metrics.d.ts
vendored
Normal file
13
packages/types/dist/typings/bungee/net.md_5.bungee.Metrics.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class Metrics extends java.util.TimerTask {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public run(): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
19
packages/types/dist/typings/bungee/net.md_5.bungee.PacketConstants.d.ts
vendored
Normal file
19
packages/types/dist/typings/bungee/net.md_5.bungee.PacketConstants.d.ts
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class PacketConstants extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public static DIM1_SWITCH: Respawn;
|
||||
// @ts-ignore
|
||||
public static DIM2_SWITCH: Respawn;
|
||||
// @ts-ignore
|
||||
public static CLIENT_LOGIN: ClientStatus;
|
||||
// @ts-ignore
|
||||
public static FORGE_MOD_REQUEST: PluginMessage;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.PlayerInfoSerializer.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.PlayerInfoSerializer.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class PlayerInfoSerializer extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public deserialize(json: JsonElement, typeOfT: java.lang.reflect.Type, context: JsonDeserializationContext): any /*ServerPing.PlayerInfo*/;
|
||||
// @ts-ignore
|
||||
public serialize(src: any /*ServerPing.PlayerInfo*/, typeOfSrc: java.lang.reflect.Type, context: JsonSerializationContext): JsonElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
25
packages/types/dist/typings/bungee/net.md_5.bungee.PlayerSkinConfiguration.d.ts
vendored
Normal file
25
packages/types/dist/typings/bungee/net.md_5.bungee.PlayerSkinConfiguration.d.ts
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class PlayerSkinConfiguration extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public hasCape(): boolean;
|
||||
// @ts-ignore
|
||||
public hasJacket(): boolean;
|
||||
// @ts-ignore
|
||||
public hasLeftSleeve(): boolean;
|
||||
// @ts-ignore
|
||||
public hasRightSleeve(): boolean;
|
||||
// @ts-ignore
|
||||
public hasLeftPants(): boolean;
|
||||
// @ts-ignore
|
||||
public hasRightPants(): boolean;
|
||||
// @ts-ignore
|
||||
public hasHat(): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
25
packages/types/dist/typings/bungee/net.md_5.bungee.ServerConnection.d.ts
vendored
Normal file
25
packages/types/dist/typings/bungee/net.md_5.bungee.ServerConnection.d.ts
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class ServerConnection extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public sendData(channel: string, data: number): void;
|
||||
// @ts-ignore
|
||||
public disconnect(reason: string): void;
|
||||
// @ts-ignore
|
||||
public disconnect(reason: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public disconnect(reason: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public getAddress(): java.net.InetSocketAddress;
|
||||
// @ts-ignore
|
||||
public isConnected(): boolean;
|
||||
// @ts-ignore
|
||||
public unsafe(): Unsafe;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
33
packages/types/dist/typings/bungee/net.md_5.bungee.ServerConnector.d.ts
vendored
Normal file
33
packages/types/dist/typings/bungee/net.md_5.bungee.ServerConnector.d.ts
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class ServerConnector extends net.md_5.bungee.netty.PacketHandler {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public exception(t: java.lang.Throwable): void;
|
||||
// @ts-ignore
|
||||
public connected(channel: any /*net.md_5.bungee.netty.ChannelWrapper*/): void;
|
||||
// @ts-ignore
|
||||
public disconnected(channel: any /*net.md_5.bungee.netty.ChannelWrapper*/): void;
|
||||
// @ts-ignore
|
||||
public handle(packet: PacketWrapper): void;
|
||||
// @ts-ignore
|
||||
public handle(loginSuccess: LoginSuccess): void;
|
||||
// @ts-ignore
|
||||
public handle(setCompression: SetCompression): void;
|
||||
// @ts-ignore
|
||||
public handle(login: Login): void;
|
||||
// @ts-ignore
|
||||
public handle(encryptionRequest: EncryptionRequest): void;
|
||||
// @ts-ignore
|
||||
public handle(kick: Kick): void;
|
||||
// @ts-ignore
|
||||
public handle(pluginMessage: PluginMessage): void;
|
||||
// @ts-ignore
|
||||
public toString(): string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
119
packages/types/dist/typings/bungee/net.md_5.bungee.UserConnection.d.ts
vendored
Normal file
119
packages/types/dist/typings/bungee/net.md_5.bungee.UserConnection.d.ts
vendored
Normal file
@ -0,0 +1,119 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class UserConnection extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public init(): void;
|
||||
// @ts-ignore
|
||||
public sendPacket(packet: PacketWrapper): void;
|
||||
// @ts-ignore
|
||||
public isActive(): boolean;
|
||||
// @ts-ignore
|
||||
public setDisplayName(name: string): void;
|
||||
// @ts-ignore
|
||||
public connect(target: ServerInfo): void;
|
||||
// @ts-ignore
|
||||
public connect(target: ServerInfo, reason: any /*ServerConnectEvent.Reason*/): void;
|
||||
// @ts-ignore
|
||||
public connect(target: ServerInfo, callback: any): void;
|
||||
// @ts-ignore
|
||||
public connect(target: ServerInfo, callback: any, reason: any /*ServerConnectEvent.Reason*/): void;
|
||||
// @ts-ignore
|
||||
public connectNow(target: ServerInfo): void;
|
||||
// @ts-ignore
|
||||
public connectNow(target: ServerInfo, reason: any /*ServerConnectEvent.Reason*/): void;
|
||||
// @ts-ignore
|
||||
public updateAndGetNextServer(currentTarget: ServerInfo): ServerInfo;
|
||||
// @ts-ignore
|
||||
public connect(info: ServerInfo, callback: any, retry: boolean): void;
|
||||
// @ts-ignore
|
||||
public connect(info: ServerInfo, callback: any, retry: boolean, reason: any /*ServerConnectEvent.Reason*/): void;
|
||||
// @ts-ignore
|
||||
public connect(request: ServerConnectRequest): void;
|
||||
// @ts-ignore
|
||||
public disconnect(reason: string): void;
|
||||
// @ts-ignore
|
||||
public disconnect(reason: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public disconnect(reason: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public disconnect0(reason: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public chat(message: string): void;
|
||||
// @ts-ignore
|
||||
public sendMessage(message: string): void;
|
||||
// @ts-ignore
|
||||
public sendMessages(messages: string): void;
|
||||
// @ts-ignore
|
||||
public sendMessage(message: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public sendMessage(message: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public sendMessage(position: ChatMessageType, message: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public sendMessage(position: ChatMessageType, message: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public sendData(channel: string, data: number): void;
|
||||
// @ts-ignore
|
||||
public getAddress(): java.net.InetSocketAddress;
|
||||
// @ts-ignore
|
||||
public getGroups(): java.util.Collection;
|
||||
// @ts-ignore
|
||||
public addGroups(groups: string): void;
|
||||
// @ts-ignore
|
||||
public removeGroups(groups: string): void;
|
||||
// @ts-ignore
|
||||
public hasPermission(permission: string): boolean;
|
||||
// @ts-ignore
|
||||
public setPermission(permission: string, value: boolean): void;
|
||||
// @ts-ignore
|
||||
public getPermissions(): java.util.Collection;
|
||||
// @ts-ignore
|
||||
public toString(): string;
|
||||
// @ts-ignore
|
||||
public unsafe(): Unsafe;
|
||||
// @ts-ignore
|
||||
public getUUID(): string;
|
||||
// @ts-ignore
|
||||
public getUniqueId(): java.util.UUID;
|
||||
// @ts-ignore
|
||||
public setSettings(settings: ClientSettings): void;
|
||||
// @ts-ignore
|
||||
public getLocale(): java.util.Locale;
|
||||
// @ts-ignore
|
||||
public getViewDistance(): number;
|
||||
// @ts-ignore
|
||||
public getChatMode(): any /*ProxiedPlayer.ChatMode*/;
|
||||
// @ts-ignore
|
||||
public hasChatColors(): boolean;
|
||||
// @ts-ignore
|
||||
public getSkinParts(): SkinConfiguration;
|
||||
// @ts-ignore
|
||||
public getMainHand(): any /*ProxiedPlayer.MainHand*/;
|
||||
// @ts-ignore
|
||||
public isForgeUser(): boolean;
|
||||
// @ts-ignore
|
||||
public getModList(): java.util.Map;
|
||||
// @ts-ignore
|
||||
public setTabHeader(header: BaseComponent, footer: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public setTabHeader(header: BaseComponent, footer: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public resetTabHeader(): void;
|
||||
// @ts-ignore
|
||||
public sendTitle(title: Title): void;
|
||||
// @ts-ignore
|
||||
public getExtraDataInHandshake(): string;
|
||||
// @ts-ignore
|
||||
public setCompressionThreshold(compressionThreshold: number): void;
|
||||
// @ts-ignore
|
||||
public isConnected(): boolean;
|
||||
// @ts-ignore
|
||||
public getScoreboard(): Scoreboard;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
38
packages/types/dist/typings/bungee/net.md_5.bungee.Util.d.ts
vendored
Normal file
38
packages/types/dist/typings/bungee/net.md_5.bungee.Util.d.ts
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
// @ts-ignore
|
||||
class Util extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public static DEFAULT_PORT: number;
|
||||
/**
|
||||
* Method to transform human readable addresses into usable address objects.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static getAddr(hostline: string): java.net.InetSocketAddress;
|
||||
/**
|
||||
* Formats an integer as a hex value.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static hex(i: number): string;
|
||||
/**
|
||||
* Constructs a pretty one line version of a {@link Throwable}. Useful for
|
||||
* debugging.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static exception(t: java.lang.Throwable): string;
|
||||
// @ts-ignore
|
||||
public static csv(objects: java.lang.Iterable): string;
|
||||
// @ts-ignore
|
||||
public static format(objects: java.lang.Iterable, separators: string): string;
|
||||
/**
|
||||
* Converts a String to a UUID
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static getUUID(uuid: string): java.util.UUID;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
19
packages/types/dist/typings/bungee/net.md_5.bungee.api.AbstractReconnectHandler.d.ts
vendored
Normal file
19
packages/types/dist/typings/bungee/net.md_5.bungee.api.AbstractReconnectHandler.d.ts
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
abstract class AbstractReconnectHandler extends java.lang.Object implements net.md_5.bungee.api.ReconnectHandler {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public getServer(player: any /*net.md_5.bungee.api.connection.ProxiedPlayer*/): any /*net.md_5.bungee.api.config.ServerInfo*/;
|
||||
// @ts-ignore
|
||||
public static getForcedHost(con: any /*net.md_5.bungee.api.connection.PendingConnection*/): any /*net.md_5.bungee.api.config.ServerInfo*/;
|
||||
// @ts-ignore
|
||||
protected abstract getStoredServer(player: any /*net.md_5.bungee.api.connection.ProxiedPlayer*/): any /*net.md_5.bungee.api.config.ServerInfo*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
16
packages/types/dist/typings/bungee/net.md_5.bungee.api.Callback.d.ts
vendored
Normal file
16
packages/types/dist/typings/bungee/net.md_5.bungee.api.Callback.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
interface Callback {
|
||||
/**
|
||||
* Called when the result is done.
|
||||
*/
|
||||
// @ts-ignore
|
||||
done(result: java.lang.Object, error: java.lang.Throwable): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
79
packages/types/dist/typings/bungee/net.md_5.bungee.api.ChatColor.d.ts
vendored
Normal file
79
packages/types/dist/typings/bungee/net.md_5.bungee.api.ChatColor.d.ts
vendored
Normal file
@ -0,0 +1,79 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
class ChatColor extends java.lang.Enum {
|
||||
// @ts-ignore
|
||||
public static BLACK: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static DARK_BLUE: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static DARK_GREEN: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static DARK_AQUA: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static DARK_RED: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static DARK_PURPLE: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static GOLD: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static GRAY: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static DARK_GRAY: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static BLUE: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static GREEN: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static AQUA: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static RED: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static LIGHT_PURPLE: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static YELLOW: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static WHITE: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static MAGIC: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static BOLD: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static STRIKETHROUGH: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static UNDERLINE: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static ITALIC: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static RESET: any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public static COLOR_CHAR: string;
|
||||
// @ts-ignore
|
||||
public static ALL_CODES: string;
|
||||
// @ts-ignore
|
||||
public static STRIP_COLOR_PATTERN: java.util.regex.Pattern;
|
||||
// @ts-ignore
|
||||
public static values(): any /*net.md_5.bungee.api.ChatColor[]*/;
|
||||
// @ts-ignore
|
||||
public static valueOf(name: string): any /*net.md_5.bungee.api.ChatColor*/;
|
||||
// @ts-ignore
|
||||
public toString(): string;
|
||||
/**
|
||||
* Strips the given message of all color codes
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static stripColor(input: string): string;
|
||||
// @ts-ignore
|
||||
public static translateAlternateColorCodes(altColorChar: string, textToTranslate: string): string;
|
||||
/**
|
||||
* Get the colour represented by the specified code.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static getByChar(code: string): any /*net.md_5.bungee.api.ChatColor*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
21
packages/types/dist/typings/bungee/net.md_5.bungee.api.ChatMessageType.d.ts
vendored
Normal file
21
packages/types/dist/typings/bungee/net.md_5.bungee.api.ChatMessageType.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
class ChatMessageType extends java.lang.Enum {
|
||||
// @ts-ignore
|
||||
public static CHAT: any /*net.md_5.bungee.api.ChatMessageType*/;
|
||||
// @ts-ignore
|
||||
public static SYSTEM: any /*net.md_5.bungee.api.ChatMessageType*/;
|
||||
// @ts-ignore
|
||||
public static ACTION_BAR: any /*net.md_5.bungee.api.ChatMessageType*/;
|
||||
// @ts-ignore
|
||||
public static values(): any /*net.md_5.bungee.api.ChatMessageType[]*/;
|
||||
// @ts-ignore
|
||||
public static valueOf(name: string): any /*net.md_5.bungee.api.ChatMessageType*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
68
packages/types/dist/typings/bungee/net.md_5.bungee.api.CommandSender.d.ts
vendored
Normal file
68
packages/types/dist/typings/bungee/net.md_5.bungee.api.CommandSender.d.ts
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
interface CommandSender {
|
||||
/**
|
||||
* Get the unique name of this command sender.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getName(): string;
|
||||
/**
|
||||
* Send a message to this sender.
|
||||
*/
|
||||
// @ts-ignore
|
||||
sendMessage(message: string): void;
|
||||
/**
|
||||
* Send several messages to this sender. Each message will be sent
|
||||
* separately.
|
||||
*/
|
||||
// @ts-ignore
|
||||
sendMessages(messages: string): void;
|
||||
/**
|
||||
* Send a message to this sender.
|
||||
*/
|
||||
// @ts-ignore
|
||||
sendMessage(message: BaseComponent): void;
|
||||
/**
|
||||
* Send a message to this sender.
|
||||
*/
|
||||
// @ts-ignore
|
||||
sendMessage(message: BaseComponent): void;
|
||||
/**
|
||||
* Get all groups this user is part of. This returns an unmodifiable
|
||||
* collection.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getGroups(): java.util.Collection;
|
||||
/**
|
||||
* Adds groups to a this user for the current session only.
|
||||
*/
|
||||
// @ts-ignore
|
||||
addGroups(groups: string): void;
|
||||
/**
|
||||
* Remove groups from this user for the current session only.
|
||||
*/
|
||||
// @ts-ignore
|
||||
removeGroups(groups: string): void;
|
||||
/**
|
||||
* Checks if this user has the specified permission node.
|
||||
*/
|
||||
// @ts-ignore
|
||||
hasPermission(permission: string): boolean;
|
||||
/**
|
||||
* Set a permission node for this user.
|
||||
*/
|
||||
// @ts-ignore
|
||||
setPermission(permission: string, value: boolean): void;
|
||||
/**
|
||||
* Get all Permissions which this CommandSender has
|
||||
*/
|
||||
// @ts-ignore
|
||||
getPermissions(): java.util.Collection;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
25
packages/types/dist/typings/bungee/net.md_5.bungee.api.Favicon.d.ts
vendored
Normal file
25
packages/types/dist/typings/bungee/net.md_5.bungee.api.Favicon.d.ts
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
class Favicon extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public static getFaviconTypeAdapter(): any;
|
||||
/**
|
||||
* Creates a favicon from an image.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static create(image: java.awt.image.BufferedImage): any /*net.md_5.bungee.api.Favicon*/;
|
||||
/**
|
||||
* Creates a Favicon from an encoded PNG.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static create(encodedString: string): any /*net.md_5.bungee.api.Favicon*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
71
packages/types/dist/typings/bungee/net.md_5.bungee.api.ProxyConfig.d.ts
vendored
Normal file
71
packages/types/dist/typings/bungee/net.md_5.bungee.api.ProxyConfig.d.ts
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
interface ProxyConfig {
|
||||
/**
|
||||
* Time before users are disconnected due to no network activity.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getTimeout(): number;
|
||||
/**
|
||||
* UUID used for metrics.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getUuid(): string;
|
||||
/**
|
||||
* Set of all listeners.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getListeners(): java.util.Collection;
|
||||
/**
|
||||
* Set of all servers.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getServers(): java.util.Map;
|
||||
/**
|
||||
* Does the server authenticate with Mojang.
|
||||
*/
|
||||
// @ts-ignore
|
||||
isOnlineMode(): boolean;
|
||||
/**
|
||||
* Whether proxy commands are logged to the proxy log.
|
||||
*/
|
||||
// @ts-ignore
|
||||
isLogCommands(): boolean;
|
||||
/**
|
||||
* Returns the player max.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getPlayerLimit(): number;
|
||||
/**
|
||||
* A collection of disabled commands.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getDisabledCommands(): java.util.Collection;
|
||||
/**
|
||||
* The connection throttle delay.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getThrottle(): number;
|
||||
/**
|
||||
* Whether the proxy will parse IPs with spigot or not
|
||||
*/
|
||||
// @ts-ignore
|
||||
isIpForward(): boolean;
|
||||
/**
|
||||
* The encoded favicon.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getFavicon(): string;
|
||||
/**
|
||||
* The favicon used for the server ping list.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getFaviconObject(): any /*net.md_5.bungee.api.Favicon*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
182
packages/types/dist/typings/bungee/net.md_5.bungee.api.ProxyServer.d.ts
vendored
Normal file
182
packages/types/dist/typings/bungee/net.md_5.bungee.api.ProxyServer.d.ts
vendored
Normal file
@ -0,0 +1,182 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
abstract class ProxyServer extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
/**
|
||||
* Sets the proxy instance. This method may only be called once per an
|
||||
* application.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static setInstance(instance: any /*net.md_5.bungee.api.ProxyServer*/): void;
|
||||
/**
|
||||
* Gets the name of the currently running proxy software.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getName(): string;
|
||||
/**
|
||||
* Gets the version of the currently running proxy software.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getVersion(): string;
|
||||
/**
|
||||
* Gets a localized string from the .properties file.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getTranslation(name: string, args: java.lang.Object): string;
|
||||
/**
|
||||
* Gets the main logger which can be used as a suitable replacement for
|
||||
* {@link System#out} and {@link System#err}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getLogger(): java.util.logging.Logger;
|
||||
/**
|
||||
* Return all players currently connected.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getPlayers(): java.util.Collection;
|
||||
/**
|
||||
* Gets a connected player via their unique username.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getPlayer(name: string): any /*net.md_5.bungee.api.connection.ProxiedPlayer*/;
|
||||
/**
|
||||
* Return all servers registered to this proxy, keyed by name. Unlike the
|
||||
* methods in {@link ConfigurationAdapter#getServers()}, this will not
|
||||
* return a fresh map each time.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getServers(): java.util.Map;
|
||||
/**
|
||||
* Gets the server info of a server.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getServerInfo(name: string): any /*net.md_5.bungee.api.config.ServerInfo*/;
|
||||
/**
|
||||
* Get the {@link PluginManager} associated with loading plugins and
|
||||
* dispatching events. It is recommended that implementations use the
|
||||
* provided PluginManager class.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getPluginManager(): any /*net.md_5.bungee.api.plugin.PluginManager*/;
|
||||
/**
|
||||
* Returns the currently in use configuration adapter.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getConfigurationAdapter(): any /*net.md_5.bungee.api.config.ConfigurationAdapter*/;
|
||||
/**
|
||||
* Set the configuration adapter to be used. Must be called from
|
||||
* {@link Plugin#onLoad()}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract setConfigurationAdapter(adapter: any /*net.md_5.bungee.api.config.ConfigurationAdapter*/): void;
|
||||
/**
|
||||
* Get the currently in use reconnect handler.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getReconnectHandler(): any /*net.md_5.bungee.api.ReconnectHandler*/;
|
||||
/**
|
||||
* Sets the reconnect handler to be used for subsequent connections.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract setReconnectHandler(handler: any /*net.md_5.bungee.api.ReconnectHandler*/): void;
|
||||
/**
|
||||
* Gracefully mark this instance for shutdown.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract stop(): void;
|
||||
/**
|
||||
* Register a channel for use with plugin messages. This is required by some
|
||||
* server / client implementations.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract registerChannel(channel: string): void;
|
||||
/**
|
||||
* Unregister a previously registered channel.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract unregisterChannel(channel: string): void;
|
||||
/**
|
||||
* Get an immutable set of all registered plugin channels.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getChannels(): java.util.Collection;
|
||||
/**
|
||||
* Get the Minecraft version supported by this proxy.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getGameVersion(): string;
|
||||
/**
|
||||
* Get the Minecraft protocol version supported by this proxy.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getProtocolVersion(): number;
|
||||
/**
|
||||
* Factory method to construct an implementation specific server info
|
||||
* instance.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract constructServerInfo(name: string, address: java.net.InetSocketAddress, motd: string, restricted: boolean): any /*net.md_5.bungee.api.config.ServerInfo*/;
|
||||
/**
|
||||
* Returns the console overlord for this proxy. Being the console, this
|
||||
* command server cannot have permissions or groups, and will be able to
|
||||
* execute anything.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getConsole(): any /*net.md_5.bungee.api.CommandSender*/;
|
||||
/**
|
||||
* Return the folder used to load plugins from.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getPluginsFolder(): java.io.File;
|
||||
/**
|
||||
* Get the scheduler instance for this proxy.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getScheduler(): any /*net.md_5.bungee.api.scheduler.TaskScheduler*/;
|
||||
/**
|
||||
* Get the current number of connected users. The default implementation is
|
||||
* more efficient than {@link #getPlayers()} as it does not take a lock or
|
||||
* make a copy.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getOnlineCount(): number;
|
||||
/**
|
||||
* Send the specified message to the console and all connected players.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract broadcast(message: string): void;
|
||||
/**
|
||||
* Gets the commands which are disabled and will not be run on this proxy.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getDisabledCommands(): java.util.Collection;
|
||||
/**
|
||||
* Gets BungeeCord's core config.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract getConfig(): any /*net.md_5.bungee.api.ProxyConfig*/;
|
||||
/**
|
||||
* Attempts to match any players with the given name, and returns a list of
|
||||
* all possible matches.
|
||||
* The exact algorithm to use to match players is implementation specific,
|
||||
* but in general you can expect this method to return player's whose names
|
||||
* begin with the specified prefix.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract matchPlayer(match: string): java.util.Collection;
|
||||
/**
|
||||
* Creates a new empty title configuration. In most cases you will want to
|
||||
* {@link Title#reset()} the current title first so your title won't be
|
||||
* affected by a previous one.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract createTitle(): any /*net.md_5.bungee.api.Title*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
36
packages/types/dist/typings/bungee/net.md_5.bungee.api.ReconnectHandler.d.ts
vendored
Normal file
36
packages/types/dist/typings/bungee/net.md_5.bungee.api.ReconnectHandler.d.ts
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
interface ReconnectHandler {
|
||||
/**
|
||||
* Gets the initial server name for a connecting player.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getServer(player: any /*net.md_5.bungee.api.connection.ProxiedPlayer*/): any /*net.md_5.bungee.api.config.ServerInfo*/;
|
||||
/**
|
||||
* Save the server of this player before they disconnect so it can be
|
||||
* retrieved later.
|
||||
*/
|
||||
// @ts-ignore
|
||||
setServer(player: any /*net.md_5.bungee.api.connection.ProxiedPlayer*/): void;
|
||||
/**
|
||||
* Save all pending reconnect locations. Whilst not used for database
|
||||
* connections, this method will be called at a predefined interval to allow
|
||||
* the saving of reconnect files.
|
||||
*/
|
||||
// @ts-ignore
|
||||
save(): void;
|
||||
/**
|
||||
* Close all connections indicating that the proxy is about to shutdown and
|
||||
* all data should be saved. No new requests will be made after this method
|
||||
* has been called.
|
||||
*/
|
||||
// @ts-ignore
|
||||
close(): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.Builder.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.Builder.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace ServerConnectRequest {
|
||||
// @ts-ignore
|
||||
class Builder extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
27
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.Result.d.ts
vendored
Normal file
27
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.Result.d.ts
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace ServerConnectRequest {
|
||||
// @ts-ignore
|
||||
class Result extends java.lang.Enum {
|
||||
// @ts-ignore
|
||||
public static EVENT_CANCEL: any /*net.md_5.bungee.api.ServerConnectRequest.Result*/;
|
||||
// @ts-ignore
|
||||
public static ALREADY_CONNECTED: any /*net.md_5.bungee.api.ServerConnectRequest.Result*/;
|
||||
// @ts-ignore
|
||||
public static ALREADY_CONNECTING: any /*net.md_5.bungee.api.ServerConnectRequest.Result*/;
|
||||
// @ts-ignore
|
||||
public static SUCCESS: any /*net.md_5.bungee.api.ServerConnectRequest.Result*/;
|
||||
// @ts-ignore
|
||||
public static FAIL: any /*net.md_5.bungee.api.ServerConnectRequest.Result*/;
|
||||
// @ts-ignore
|
||||
public static values(): any /*net.md_5.bungee.api.ServerConnectRequest.Result[]*/;
|
||||
// @ts-ignore
|
||||
public static valueOf(name: string): any /*net.md_5.bungee.api.ServerConnectRequest.Result*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.d.ts
vendored
Normal file
13
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
class ServerConnectRequest extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.ModInfo.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.ModInfo.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace ServerPing {
|
||||
// @ts-ignore
|
||||
class ModInfo extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.ModItem.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.ModItem.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace ServerPing {
|
||||
// @ts-ignore
|
||||
class ModItem extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
19
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.PlayerInfo.d.ts
vendored
Normal file
19
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.PlayerInfo.d.ts
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace ServerPing {
|
||||
// @ts-ignore
|
||||
class PlayerInfo extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor(name: string, id: string)
|
||||
// @ts-ignore
|
||||
public setId(id: string): void;
|
||||
// @ts-ignore
|
||||
public getId(): string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.Players.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.Players.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace ServerPing {
|
||||
// @ts-ignore
|
||||
class Players extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.Protocol.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.Protocol.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace ServerPing {
|
||||
// @ts-ignore
|
||||
class Protocol extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
31
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.d.ts
vendored
Normal file
31
packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.d.ts
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
class ServerPing extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor(version: any /*net.md_5.bungee.api.ServerPing.Protocol*/, players: any /*net.md_5.bungee.api.ServerPing.Players*/, description: string, favicon: string)
|
||||
// @ts-ignore
|
||||
constructor(version: any /*net.md_5.bungee.api.ServerPing.Protocol*/, players: any /*net.md_5.bungee.api.ServerPing.Players*/, description: string, favicon: any /*net.md_5.bungee.api.Favicon*/)
|
||||
// @ts-ignore
|
||||
public getFavicon(): string;
|
||||
// @ts-ignore
|
||||
public getFaviconObject(): any /*net.md_5.bungee.api.Favicon*/;
|
||||
// @ts-ignore
|
||||
public setFavicon(favicon: string): void;
|
||||
// @ts-ignore
|
||||
public setFavicon(favicon: any /*net.md_5.bungee.api.Favicon*/): void;
|
||||
// @ts-ignore
|
||||
public setDescription(description: string): void;
|
||||
// @ts-ignore
|
||||
public getDescription(): string;
|
||||
// @ts-ignore
|
||||
public setDescriptionComponent(description: BaseComponent): void;
|
||||
// @ts-ignore
|
||||
public getDescriptionComponent(): BaseComponent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
25
packages/types/dist/typings/bungee/net.md_5.bungee.api.SkinConfiguration.d.ts
vendored
Normal file
25
packages/types/dist/typings/bungee/net.md_5.bungee.api.SkinConfiguration.d.ts
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
interface SkinConfiguration {
|
||||
// @ts-ignore
|
||||
hasCape(): boolean;
|
||||
// @ts-ignore
|
||||
hasJacket(): boolean;
|
||||
// @ts-ignore
|
||||
hasLeftSleeve(): boolean;
|
||||
// @ts-ignore
|
||||
hasRightSleeve(): boolean;
|
||||
// @ts-ignore
|
||||
hasLeftPants(): boolean;
|
||||
// @ts-ignore
|
||||
hasRightPants(): boolean;
|
||||
// @ts-ignore
|
||||
hasHat(): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
71
packages/types/dist/typings/bungee/net.md_5.bungee.api.Title.d.ts
vendored
Normal file
71
packages/types/dist/typings/bungee/net.md_5.bungee.api.Title.d.ts
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
interface Title {
|
||||
/**
|
||||
* Set the title to send to the player.
|
||||
*/
|
||||
// @ts-ignore
|
||||
title(text: BaseComponent): any /*net.md_5.bungee.api.Title*/;
|
||||
/**
|
||||
* Set the title to send to the player.
|
||||
*/
|
||||
// @ts-ignore
|
||||
title(text: BaseComponent): any /*net.md_5.bungee.api.Title*/;
|
||||
/**
|
||||
* Set the subtitle to send to the player.
|
||||
*/
|
||||
// @ts-ignore
|
||||
subTitle(text: BaseComponent): any /*net.md_5.bungee.api.Title*/;
|
||||
/**
|
||||
* Set the subtitle to send to the player.
|
||||
*/
|
||||
// @ts-ignore
|
||||
subTitle(text: BaseComponent): any /*net.md_5.bungee.api.Title*/;
|
||||
/**
|
||||
* Set the duration in ticks of the fade in effect of the title. Once this
|
||||
* period of time is over the title will stay for the amount of time
|
||||
* specified in {@link #stay(int)}. The default value for the official
|
||||
* Minecraft version is 20 (1 second).
|
||||
*/
|
||||
// @ts-ignore
|
||||
fadeIn(ticks: number): any /*net.md_5.bungee.api.Title*/;
|
||||
/**
|
||||
* Set the duration in ticks how long the title should stay on the screen.
|
||||
* Once this period of time is over the title will fade out using the
|
||||
* duration specified in {@link #fadeOut(int)}. The default value for the
|
||||
* official Minecraft version is 60 (3 seconds).
|
||||
*/
|
||||
// @ts-ignore
|
||||
stay(ticks: number): any /*net.md_5.bungee.api.Title*/;
|
||||
/**
|
||||
* Set the duration in ticks of the fade out effect of the title. The
|
||||
* default value for the official Minecraft version is 20 (1 second).
|
||||
*/
|
||||
// @ts-ignore
|
||||
fadeOut(ticks: number): any /*net.md_5.bungee.api.Title*/;
|
||||
/**
|
||||
* Remove the currently displayed title from the player's screen. This will
|
||||
* keep the currently used display times and will only remove the title.
|
||||
*/
|
||||
// @ts-ignore
|
||||
clear(): any /*net.md_5.bungee.api.Title*/;
|
||||
/**
|
||||
* Remove the currently displayed title from the player's screen and set the
|
||||
* configuration back to the default values.
|
||||
*/
|
||||
// @ts-ignore
|
||||
reset(): any /*net.md_5.bungee.api.Title*/;
|
||||
/**
|
||||
* Send this title configuration to the specified player. This is the same
|
||||
* as calling {@link ProxiedPlayer#sendTitle(Title)}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
send(player: any /*net.md_5.bungee.api.connection.ProxiedPlayer*/): any /*net.md_5.bungee.api.Title*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
163
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.BaseComponent.d.ts
vendored
Normal file
163
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.BaseComponent.d.ts
vendored
Normal file
@ -0,0 +1,163 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
// @ts-ignore
|
||||
abstract class BaseComponent extends java.lang.Object {
|
||||
/**
|
||||
* Copies the events and formatting of a BaseComponent. Already set
|
||||
* formatting will be replaced.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public copyFormatting(component: any /*net.md_5.bungee.api.chat.BaseComponent*/): void;
|
||||
/**
|
||||
* Copies the events and formatting of a BaseComponent.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public copyFormatting(component: any /*net.md_5.bungee.api.chat.BaseComponent*/, replace: boolean): void;
|
||||
/**
|
||||
* Copies the specified formatting of a BaseComponent.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public copyFormatting(component: any /*net.md_5.bungee.api.chat.BaseComponent*/, retention: any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/, replace: boolean): void;
|
||||
/**
|
||||
* Retains only the specified formatting.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public retain(retention: any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/): void;
|
||||
/**
|
||||
* Clones the BaseComponent and returns the clone.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract duplicate(): any /*net.md_5.bungee.api.chat.BaseComponent*/;
|
||||
/**
|
||||
* Clones the BaseComponent without formatting and returns the clone.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public duplicateWithoutFormatting(): any /*net.md_5.bungee.api.chat.BaseComponent*/;
|
||||
/**
|
||||
* Converts the components to a string that uses the old formatting codes
|
||||
* ({@link net.md_5.bungee.api.ChatColor#COLOR_CHAR}
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static toLegacyText(components: any /*net.md_5.bungee.api.chat.BaseComponent*/): string;
|
||||
/**
|
||||
* Converts the components into a string without any formatting
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static toPlainText(components: any /*net.md_5.bungee.api.chat.BaseComponent*/): string;
|
||||
/**
|
||||
* Returns the color of this component. This uses the parent's color if this
|
||||
* component doesn't have one. {@link net.md_5.bungee.api.ChatColor#WHITE}
|
||||
* is returned if no color is found.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public getColor(): any /*net.md_5.bungee.api.ChatColor*/;
|
||||
/**
|
||||
* Returns the color of this component without checking the parents color.
|
||||
* May return null
|
||||
*/
|
||||
// @ts-ignore
|
||||
public getColorRaw(): any /*net.md_5.bungee.api.ChatColor*/;
|
||||
/**
|
||||
* Returns whether this component is bold. This uses the parent's setting if
|
||||
* this component hasn't been set. false is returned if none of the parent
|
||||
* chain has been set.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isBold(): boolean;
|
||||
/**
|
||||
* Returns whether this component is bold without checking the parents
|
||||
* setting. May return null
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isBoldRaw(): java.lang.Boolean;
|
||||
/**
|
||||
* Returns whether this component is italic. This uses the parent's setting
|
||||
* if this component hasn't been set. false is returned if none of the
|
||||
* parent chain has been set.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isItalic(): boolean;
|
||||
/**
|
||||
* Returns whether this component is italic without checking the parents
|
||||
* setting. May return null
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isItalicRaw(): java.lang.Boolean;
|
||||
/**
|
||||
* Returns whether this component is underlined. This uses the parent's
|
||||
* setting if this component hasn't been set. false is returned if none of
|
||||
* the parent chain has been set.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isUnderlined(): boolean;
|
||||
/**
|
||||
* Returns whether this component is underlined without checking the parents
|
||||
* setting. May return null
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isUnderlinedRaw(): java.lang.Boolean;
|
||||
/**
|
||||
* Returns whether this component is strikethrough. This uses the parent's
|
||||
* setting if this component hasn't been set. false is returned if none of
|
||||
* the parent chain has been set.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isStrikethrough(): boolean;
|
||||
/**
|
||||
* Returns whether this component is strikethrough without checking the
|
||||
* parents setting. May return null
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isStrikethroughRaw(): java.lang.Boolean;
|
||||
/**
|
||||
* Returns whether this component is obfuscated. This uses the parent's
|
||||
* setting if this component hasn't been set. false is returned if none of
|
||||
* the parent chain has been set.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isObfuscated(): boolean;
|
||||
/**
|
||||
* Returns whether this component is obfuscated without checking the parents
|
||||
* setting. May return null
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isObfuscatedRaw(): java.lang.Boolean;
|
||||
// @ts-ignore
|
||||
public setExtra(components: java.util.List): void;
|
||||
/**
|
||||
* Appends a text element to the component. The text will inherit this
|
||||
* component's formatting
|
||||
*/
|
||||
// @ts-ignore
|
||||
public addExtra(text: string): void;
|
||||
/**
|
||||
* Appends a component to the component. The text will inherit this
|
||||
* component's formatting
|
||||
*/
|
||||
// @ts-ignore
|
||||
public addExtra(component: any /*net.md_5.bungee.api.chat.BaseComponent*/): void;
|
||||
/**
|
||||
* Returns whether the component has any formatting or events applied to it
|
||||
*/
|
||||
// @ts-ignore
|
||||
public hasFormatting(): boolean;
|
||||
/**
|
||||
* Converts the component into a string without any formatting
|
||||
*/
|
||||
// @ts-ignore
|
||||
public toPlainText(): string;
|
||||
/**
|
||||
* Converts the component to a string that uses the old formatting codes
|
||||
* ({@link net.md_5.bungee.api.ChatColor#COLOR_CHAR}
|
||||
*/
|
||||
// @ts-ignore
|
||||
public toLegacyText(): string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
29
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ClickEvent.Action.d.ts
vendored
Normal file
29
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ClickEvent.Action.d.ts
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
namespace ClickEvent {
|
||||
// @ts-ignore
|
||||
class Action extends java.lang.Enum {
|
||||
// @ts-ignore
|
||||
public static OPEN_URL: any /*net.md_5.bungee.api.chat.ClickEvent.Action*/;
|
||||
// @ts-ignore
|
||||
public static OPEN_FILE: any /*net.md_5.bungee.api.chat.ClickEvent.Action*/;
|
||||
// @ts-ignore
|
||||
public static RUN_COMMAND: any /*net.md_5.bungee.api.chat.ClickEvent.Action*/;
|
||||
// @ts-ignore
|
||||
public static SUGGEST_COMMAND: any /*net.md_5.bungee.api.chat.ClickEvent.Action*/;
|
||||
// @ts-ignore
|
||||
public static CHANGE_PAGE: any /*net.md_5.bungee.api.chat.ClickEvent.Action*/;
|
||||
// @ts-ignore
|
||||
public static values(): any /*net.md_5.bungee.api.chat.ClickEvent.Action[]*/;
|
||||
// @ts-ignore
|
||||
public static valueOf(name: string): any /*net.md_5.bungee.api.chat.ClickEvent.Action*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ClickEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ClickEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
// @ts-ignore
|
||||
class ClickEvent extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
namespace ComponentBuilder {
|
||||
// @ts-ignore
|
||||
class FormatRetention extends java.lang.Enum {
|
||||
// @ts-ignore
|
||||
public static NONE: any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/;
|
||||
// @ts-ignore
|
||||
public static FORMATTING: any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/;
|
||||
// @ts-ignore
|
||||
public static EVENTS: any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/;
|
||||
// @ts-ignore
|
||||
public static ALL: any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/;
|
||||
// @ts-ignore
|
||||
public static values(): any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention[]*/;
|
||||
// @ts-ignore
|
||||
public static valueOf(name: string): any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
24
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.Joiner.d.ts
vendored
Normal file
24
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.Joiner.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
namespace ComponentBuilder {
|
||||
// @ts-ignore
|
||||
interface Joiner {
|
||||
/**
|
||||
* Joins additional components to the provided {@link ComponentBuilder}
|
||||
* and then returns it to fulfill a chain pattern.
|
||||
* Retention may be ignored and is to be understood as an optional
|
||||
* recommendation to the Joiner and not as a guarantee to have a
|
||||
* previous component in builder unmodified.
|
||||
*/
|
||||
// @ts-ignore
|
||||
join(componentBuilder: any /*net.md_5.bungee.api.chat.ComponentBuilder*/, retention: any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
179
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.d.ts
vendored
Normal file
179
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.d.ts
vendored
Normal file
@ -0,0 +1,179 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
// @ts-ignore
|
||||
class ComponentBuilder extends java.lang.Object {
|
||||
/**
|
||||
* Creates a ComponentBuilder from the other given ComponentBuilder to clone
|
||||
* it.
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(original: any /*net.md_5.bungee.api.chat.ComponentBuilder*/)
|
||||
/**
|
||||
* Creates a ComponentBuilder with the given text as the first part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(text: string)
|
||||
/**
|
||||
* Creates a ComponentBuilder with the given component as the first part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(component: any /*net.md_5.bungee.api.chat.BaseComponent*/)
|
||||
/**
|
||||
* Resets the cursor to index of the last element.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public resetCursor(): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Sets the position of the current component to be modified
|
||||
*/
|
||||
// @ts-ignore
|
||||
public setCursor(pos: number): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Appends a component to the builder and makes it the current target for
|
||||
* formatting. The component will have all the formatting from previous
|
||||
* part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public append(component: any /*net.md_5.bungee.api.chat.BaseComponent*/): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Appends a component to the builder and makes it the current target for
|
||||
* formatting. You can specify the amount of formatting retained from
|
||||
* previous part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public append(component: any /*net.md_5.bungee.api.chat.BaseComponent*/, retention: any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Appends the components to the builder and makes the last element the
|
||||
* current target for formatting. The components will have all the
|
||||
* formatting from previous part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public append(components: any /*net.md_5.bungee.api.chat.BaseComponent*/): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Appends the components to the builder and makes the last element the
|
||||
* current target for formatting. You can specify the amount of formatting
|
||||
* retained from previous part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public append(components: any /*net.md_5.bungee.api.chat.BaseComponent*/, retention: any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Appends the text to the builder and makes it the current target for
|
||||
* formatting. The text will have all the formatting from previous part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public append(text: string): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Parse text to BaseComponent[] with colors and format, appends the text to
|
||||
* the builder and makes it the current target for formatting. The component
|
||||
* will have all the formatting from previous part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public appendLegacy(text: string): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Appends the text to the builder and makes it the current target for
|
||||
* formatting. You can specify the amount of formatting retained from
|
||||
* previous part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public append(text: string, retention: any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Allows joining additional components to this builder using the given
|
||||
* {@link Joiner} and {@link FormatRetention#ALL}.
|
||||
* Simply executes the provided joiner on this instance to facilitate a
|
||||
* chain pattern.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public append(joiner: any /*net.md_5.bungee.api.chat.ComponentBuilder.Joiner*/): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Allows joining additional components to this builder using the given
|
||||
* {@link Joiner}.
|
||||
* Simply executes the provided joiner on this instance to facilitate a
|
||||
* chain pattern.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public append(joiner: any /*net.md_5.bungee.api.chat.ComponentBuilder.Joiner*/, retention: any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Remove the component part at the position of given index.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public removeComponent(pos: number): void;
|
||||
/**
|
||||
* Gets the component part at the position of given index.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public getComponent(pos: number): any /*net.md_5.bungee.api.chat.BaseComponent*/;
|
||||
/**
|
||||
* Gets the component at the position of the cursor.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public getCurrentComponent(): any /*net.md_5.bungee.api.chat.BaseComponent*/;
|
||||
/**
|
||||
* Sets the color of the current part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public color(color: any /*net.md_5.bungee.api.ChatColor*/): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Sets whether the current part is bold.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public bold(bold: boolean): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Sets whether the current part is italic.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public italic(italic: boolean): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Sets whether the current part is underlined.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public underlined(underlined: boolean): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Sets whether the current part is strikethrough.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public strikethrough(strikethrough: boolean): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Sets whether the current part is obfuscated.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public obfuscated(obfuscated: boolean): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Sets the insertion text for the current part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public insertion(insertion: string): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Sets the click event for the current part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public event(clickEvent: any /*net.md_5.bungee.api.chat.ClickEvent*/): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Sets the hover event for the current part.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public event(hoverEvent: any /*net.md_5.bungee.api.chat.HoverEvent*/): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Sets the current part back to normal settings. Only text is kept.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public reset(): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Retains only the specified formatting. Text is not modified.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public retain(retention: any /*net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention*/): any /*net.md_5.bungee.api.chat.ComponentBuilder*/;
|
||||
/**
|
||||
* Returns the components needed to display the message created by this
|
||||
* builder.git
|
||||
*/
|
||||
// @ts-ignore
|
||||
public create(): any /*net.md_5.bungee.api.chat.BaseComponent[]*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
27
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.HoverEvent.Action.d.ts
vendored
Normal file
27
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.HoverEvent.Action.d.ts
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
namespace HoverEvent {
|
||||
// @ts-ignore
|
||||
class Action extends java.lang.Enum {
|
||||
// @ts-ignore
|
||||
public static SHOW_TEXT: any /*net.md_5.bungee.api.chat.HoverEvent.Action*/;
|
||||
// @ts-ignore
|
||||
public static SHOW_ACHIEVEMENT: any /*net.md_5.bungee.api.chat.HoverEvent.Action*/;
|
||||
// @ts-ignore
|
||||
public static SHOW_ITEM: any /*net.md_5.bungee.api.chat.HoverEvent.Action*/;
|
||||
// @ts-ignore
|
||||
public static SHOW_ENTITY: any /*net.md_5.bungee.api.chat.HoverEvent.Action*/;
|
||||
// @ts-ignore
|
||||
public static values(): any /*net.md_5.bungee.api.chat.HoverEvent.Action[]*/;
|
||||
// @ts-ignore
|
||||
public static valueOf(name: string): any /*net.md_5.bungee.api.chat.HoverEvent.Action*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.HoverEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.HoverEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
// @ts-ignore
|
||||
class HoverEvent extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
29
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.KeybindComponent.d.ts
vendored
Normal file
29
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.KeybindComponent.d.ts
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
// @ts-ignore
|
||||
class KeybindComponent extends net.md_5.bungee.api.chat.BaseComponent {
|
||||
/**
|
||||
* Creates a keybind component from the original to clone it.
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(original: any /*net.md_5.bungee.api.chat.KeybindComponent*/)
|
||||
/**
|
||||
* Creates a keybind component with the passed internal keybind value.
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(keybind: string)
|
||||
// @ts-ignore
|
||||
public duplicate(): any /*net.md_5.bungee.api.chat.BaseComponent*/;
|
||||
// @ts-ignore
|
||||
protected toPlainText(builder: java.lang.StringBuilder): void;
|
||||
// @ts-ignore
|
||||
protected toLegacyText(builder: java.lang.StringBuilder): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
79
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.Keybinds.d.ts
vendored
Normal file
79
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.Keybinds.d.ts
vendored
Normal file
@ -0,0 +1,79 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
// @ts-ignore
|
||||
interface Keybinds {
|
||||
// @ts-ignore
|
||||
JUMP: string;
|
||||
// @ts-ignore
|
||||
SNEAK: string;
|
||||
// @ts-ignore
|
||||
SPRINT: string;
|
||||
// @ts-ignore
|
||||
LEFT: string;
|
||||
// @ts-ignore
|
||||
RIGHT: string;
|
||||
// @ts-ignore
|
||||
BACK: string;
|
||||
// @ts-ignore
|
||||
FORWARD: string;
|
||||
// @ts-ignore
|
||||
ATTACK: string;
|
||||
// @ts-ignore
|
||||
PICK_ITEM: string;
|
||||
// @ts-ignore
|
||||
USE: string;
|
||||
// @ts-ignore
|
||||
DROP: string;
|
||||
// @ts-ignore
|
||||
HOTBAR_1: string;
|
||||
// @ts-ignore
|
||||
HOTBAR_2: string;
|
||||
// @ts-ignore
|
||||
HOTBAR_3: string;
|
||||
// @ts-ignore
|
||||
HOTBAR_4: string;
|
||||
// @ts-ignore
|
||||
HOTBAR_5: string;
|
||||
// @ts-ignore
|
||||
HOTBAR_6: string;
|
||||
// @ts-ignore
|
||||
HOTBAR_7: string;
|
||||
// @ts-ignore
|
||||
HOTBAR_8: string;
|
||||
// @ts-ignore
|
||||
HOTBAR_9: string;
|
||||
// @ts-ignore
|
||||
INVENTORY: string;
|
||||
// @ts-ignore
|
||||
SWAP_HANDS: string;
|
||||
// @ts-ignore
|
||||
LOAD_TOOLBAR_ACTIVATOR: string;
|
||||
// @ts-ignore
|
||||
SAVE_TOOLBAR_ACTIVATOR: string;
|
||||
// @ts-ignore
|
||||
PLAYERLIST: string;
|
||||
// @ts-ignore
|
||||
CHAT: string;
|
||||
// @ts-ignore
|
||||
COMMAND: string;
|
||||
// @ts-ignore
|
||||
ADVANCEMENTS: string;
|
||||
// @ts-ignore
|
||||
SPECTATOR_OUTLINES: string;
|
||||
// @ts-ignore
|
||||
SCREENSHOT: string;
|
||||
// @ts-ignore
|
||||
SMOOTH_CAMERA: string;
|
||||
// @ts-ignore
|
||||
FULLSCREEN: string;
|
||||
// @ts-ignore
|
||||
TOGGLE_PERSPECTIVE: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
34
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ScoreComponent.d.ts
vendored
Normal file
34
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ScoreComponent.d.ts
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
// @ts-ignore
|
||||
class ScoreComponent extends net.md_5.bungee.api.chat.BaseComponent {
|
||||
/**
|
||||
* Creates a new score component with the specified name and objective.<br>
|
||||
* If not specifically set, value will default to an empty string;
|
||||
* signifying that the scoreboard value should take precedence. If not null,
|
||||
* nor empty, {@code value} will override any value found in the
|
||||
* scoreboard.<br>
|
||||
* The value defaults to an empty string.
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(name: string, objective: string)
|
||||
/**
|
||||
* Creates a score component from the original to clone it.
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(original: any /*net.md_5.bungee.api.chat.ScoreComponent*/)
|
||||
// @ts-ignore
|
||||
public duplicate(): any /*net.md_5.bungee.api.chat.ScoreComponent*/;
|
||||
// @ts-ignore
|
||||
protected toPlainText(builder: java.lang.StringBuilder): void;
|
||||
// @ts-ignore
|
||||
protected toLegacyText(builder: java.lang.StringBuilder): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
24
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.SelectorComponent.d.ts
vendored
Normal file
24
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.SelectorComponent.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
// @ts-ignore
|
||||
class SelectorComponent extends net.md_5.bungee.api.chat.BaseComponent {
|
||||
/**
|
||||
* Creates a selector component from the original to clone it.
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(original: any /*net.md_5.bungee.api.chat.SelectorComponent*/)
|
||||
// @ts-ignore
|
||||
public duplicate(): any /*net.md_5.bungee.api.chat.SelectorComponent*/;
|
||||
// @ts-ignore
|
||||
protected toPlainText(builder: java.lang.StringBuilder): void;
|
||||
// @ts-ignore
|
||||
protected toLegacyText(builder: java.lang.StringBuilder): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
55
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.TextComponent.d.ts
vendored
Normal file
55
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.TextComponent.d.ts
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
// @ts-ignore
|
||||
class TextComponent extends net.md_5.bungee.api.chat.BaseComponent {
|
||||
/**
|
||||
* Creates a TextComponent with blank text.
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
/**
|
||||
* Creates a TextComponent with formatting and text from the passed
|
||||
* component
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(textComponent: any /*net.md_5.bungee.api.chat.TextComponent*/)
|
||||
/**
|
||||
* Creates a TextComponent with blank text and the extras set to the passed
|
||||
* array
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(extras: any /*net.md_5.bungee.api.chat.BaseComponent*/)
|
||||
/**
|
||||
* Converts the old formatting system that used
|
||||
* {@link net.md_5.bungee.api.ChatColor#COLOR_CHAR} into the new json based
|
||||
* system.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static fromLegacyText(message: string): any /*net.md_5.bungee.api.chat.BaseComponent[]*/;
|
||||
/**
|
||||
* Converts the old formatting system that used
|
||||
* {@link net.md_5.bungee.api.ChatColor#COLOR_CHAR} into the new json based
|
||||
* system.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public static fromLegacyText(message: string, defaultColor: any /*net.md_5.bungee.api.ChatColor*/): any /*net.md_5.bungee.api.chat.BaseComponent[]*/;
|
||||
/**
|
||||
* Creates a duplicate of this TextComponent.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public duplicate(): any /*net.md_5.bungee.api.chat.BaseComponent*/;
|
||||
// @ts-ignore
|
||||
protected toPlainText(builder: java.lang.StringBuilder): void;
|
||||
// @ts-ignore
|
||||
protected toLegacyText(builder: java.lang.StringBuilder): void;
|
||||
// @ts-ignore
|
||||
public toString(): string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
50
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.TranslatableComponent.d.ts
vendored
Normal file
50
packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.TranslatableComponent.d.ts
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace chat {
|
||||
// @ts-ignore
|
||||
class TranslatableComponent extends net.md_5.bungee.api.chat.BaseComponent {
|
||||
/**
|
||||
* Creates a translatable component from the original to clone it.
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(original: any /*net.md_5.bungee.api.chat.TranslatableComponent*/)
|
||||
/**
|
||||
* Creates a translatable component with the passed substitutions
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(translate: string, object: java.lang.Object)
|
||||
/**
|
||||
* Creates a duplicate of this TranslatableComponent.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public duplicate(): any /*net.md_5.bungee.api.chat.BaseComponent*/;
|
||||
/**
|
||||
* Sets the translation substitutions to be used in this component. Removes
|
||||
* any previously set substitutions
|
||||
*/
|
||||
// @ts-ignore
|
||||
public setWith(components: java.util.List): void;
|
||||
/**
|
||||
* Adds a text substitution to the component. The text will inherit this
|
||||
* component's formatting
|
||||
*/
|
||||
// @ts-ignore
|
||||
public addWith(text: string): void;
|
||||
/**
|
||||
* Adds a component substitution to the component. The text will inherit
|
||||
* this component's formatting
|
||||
*/
|
||||
// @ts-ignore
|
||||
public addWith(component: any /*net.md_5.bungee.api.chat.BaseComponent*/): void;
|
||||
// @ts-ignore
|
||||
protected toPlainText(builder: java.lang.StringBuilder): void;
|
||||
// @ts-ignore
|
||||
protected toLegacyText(builder: java.lang.StringBuilder): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
60
packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ConfigurationAdapter.d.ts
vendored
Normal file
60
packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ConfigurationAdapter.d.ts
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace config {
|
||||
// @ts-ignore
|
||||
interface ConfigurationAdapter {
|
||||
/**
|
||||
* Reload all the possible values, and if necessary cache them for
|
||||
* individual getting.
|
||||
*/
|
||||
// @ts-ignore
|
||||
load(): void;
|
||||
/**
|
||||
* Gets an integer from the specified path.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getInt(path: string, def: number): number;
|
||||
/**
|
||||
* Gets a string from the specified path.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getString(path: string, def: string): string;
|
||||
/**
|
||||
* Gets a boolean from the specified path.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getBoolean(path: string, def: boolean): boolean;
|
||||
/**
|
||||
* Get a list from the specified path.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getList(path: string, def: java.util.Collection): java.util.Collection;
|
||||
/**
|
||||
* Get the configuration all servers which may be accessible via the proxy.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getServers(): java.util.Map;
|
||||
/**
|
||||
* Get information about all hosts to bind the proxy to.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getListeners(): java.util.Collection;
|
||||
/**
|
||||
* Get all groups this player is in.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getGroups(player: string): java.util.Collection;
|
||||
/**
|
||||
* Get all permission corresponding to the specified group. The result of
|
||||
* this method may or may not be cached, depending on the implementation.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getPermissions(group: string): java.util.Collection;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
26
packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ListenerInfo.d.ts
vendored
Normal file
26
packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ListenerInfo.d.ts
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace config {
|
||||
// @ts-ignore
|
||||
class ListenerInfo extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor(host: java.net.InetSocketAddress, motd: string, maxPlayers: number, tabListSize: number, serverPriority: java.util.List, forceDefault: boolean, forcedHosts: java.util.Map, tabListType: string, setLocalAddress: boolean, pingPassthrough: boolean, queryPort: number, queryEnabled: boolean)
|
||||
/**
|
||||
* Gets the highest priority server to join.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public getDefaultServer(): string;
|
||||
/**
|
||||
* Gets the second highest priority server to join, or else the highest
|
||||
* priority.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public getFallbackServer(): string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
75
packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ServerInfo.d.ts
vendored
Normal file
75
packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ServerInfo.d.ts
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace config {
|
||||
// @ts-ignore
|
||||
interface ServerInfo {
|
||||
/**
|
||||
* Get the name of this server.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getName(): string;
|
||||
/**
|
||||
* Gets the connectable host + port pair for this server. Implementations
|
||||
* expect this to be used as the unique identifier per each instance of this
|
||||
* class.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getAddress(): java.net.InetSocketAddress;
|
||||
/**
|
||||
* Get the set of all players on this server.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getPlayers(): java.util.Collection;
|
||||
/**
|
||||
* Returns the MOTD which should be used when this server is a forced host.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getMotd(): string;
|
||||
/**
|
||||
* Whether this server is restricted and therefore only players with the
|
||||
* given permission can access it.
|
||||
*/
|
||||
// @ts-ignore
|
||||
isRestricted(): boolean;
|
||||
/**
|
||||
* Get the permission required to access this server. Only enforced when the
|
||||
* server is restricted.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getPermission(): string;
|
||||
/**
|
||||
* Whether the player can access this server. It will only return false when
|
||||
* the player has no permission and this server is restricted.
|
||||
*/
|
||||
// @ts-ignore
|
||||
canAccess(sender: any /*net.md_5.bungee.api.CommandSender*/): boolean;
|
||||
/**
|
||||
* Send data by any available means to this server. This data may be queued
|
||||
* and there is no guarantee of its timely arrival.
|
||||
* In recent Minecraft versions channel names must contain a colon separator
|
||||
* and consist of [a-z0-9/._-]. This will be enforced in a future version.
|
||||
* The "BungeeCord" channel is an exception and may only take this form.
|
||||
*/
|
||||
// @ts-ignore
|
||||
sendData(channel: string, data: number): void;
|
||||
/**
|
||||
* Send data by any available means to this server.
|
||||
* In recent Minecraft versions channel names must contain a colon separator
|
||||
* and consist of [a-z0-9/._-]. This will be enforced in a future version.
|
||||
* The "BungeeCord" channel is an exception and may only take this form.
|
||||
*/
|
||||
// @ts-ignore
|
||||
sendData(channel: string, data: number, queue: boolean): boolean;
|
||||
/**
|
||||
* Asynchronously gets the current player count on this server.
|
||||
*/
|
||||
// @ts-ignore
|
||||
ping(callback: any /*net.md_5.bungee.api.Callback*/): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ConnectedPlayer.d.ts
vendored
Normal file
13
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ConnectedPlayer.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace connection {
|
||||
// @ts-ignore
|
||||
interface ConnectedPlayer extends net.md_5.bungee.api.connection.ProxiedPlayer {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
20
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Connection.Unsafe.d.ts
vendored
Normal file
20
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Connection.Unsafe.d.ts
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace connection {
|
||||
namespace Connection {
|
||||
// @ts-ignore
|
||||
interface Unsafe {
|
||||
/**
|
||||
* Send a packet to this connection.
|
||||
*/
|
||||
// @ts-ignore
|
||||
sendPacket(packet: DefinedPacket): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
50
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Connection.d.ts
vendored
Normal file
50
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Connection.d.ts
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace connection {
|
||||
// @ts-ignore
|
||||
interface Connection {
|
||||
/**
|
||||
* Gets the remote address of this connection.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getAddress(): java.net.InetSocketAddress;
|
||||
/**
|
||||
* Disconnects this end of the connection for the specified reason. If this
|
||||
* is an {@link ProxiedPlayer} the respective server connection will be
|
||||
* closed too.
|
||||
*/
|
||||
// @ts-ignore
|
||||
disconnect(reason: string): void;
|
||||
/**
|
||||
* Disconnects this end of the connection for the specified reason. If this
|
||||
* is an {@link ProxiedPlayer} the respective server connection will be
|
||||
* closed too.
|
||||
*/
|
||||
// @ts-ignore
|
||||
disconnect(reason: BaseComponent): void;
|
||||
/**
|
||||
* Disconnects this end of the connection for the specified reason. If this
|
||||
* is an {@link ProxiedPlayer} the respective server connection will be
|
||||
* closed too.
|
||||
*/
|
||||
// @ts-ignore
|
||||
disconnect(reason: BaseComponent): void;
|
||||
/**
|
||||
* Gets whether this connection is currently open, ie: not disconnected, and
|
||||
* able to send / receive data.
|
||||
*/
|
||||
// @ts-ignore
|
||||
isConnected(): boolean;
|
||||
/**
|
||||
* Get the unsafe methods of this class.
|
||||
*/
|
||||
// @ts-ignore
|
||||
unsafe(): any /*net.md_5.bungee.api.connection.Connection.Unsafe*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
71
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.PendingConnection.d.ts
vendored
Normal file
71
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.PendingConnection.d.ts
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace connection {
|
||||
// @ts-ignore
|
||||
interface PendingConnection extends net.md_5.bungee.api.connection.Connection {
|
||||
/**
|
||||
* Get the requested username.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getName(): string;
|
||||
/**
|
||||
* Get the numerical client version of the player attempting to log in.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getVersion(): number;
|
||||
/**
|
||||
* Get the requested virtual host that the client tried to connect to.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getVirtualHost(): java.net.InetSocketAddress;
|
||||
/**
|
||||
* Get the listener that accepted this connection.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getListener(): any /*net.md_5.bungee.api.config.ListenerInfo*/;
|
||||
/**
|
||||
* Get this connection's UUID, if set.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getUUID(): string;
|
||||
/**
|
||||
* Get this connection's UUID, if set.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getUniqueId(): java.util.UUID;
|
||||
/**
|
||||
* Set the connection's uuid
|
||||
*/
|
||||
// @ts-ignore
|
||||
setUniqueId(uuid: java.util.UUID): void;
|
||||
/**
|
||||
* Get this connection's online mode.
|
||||
* <br>
|
||||
* See {@link #setOnlineMode(boolean)} for a description of how this option
|
||||
* works.
|
||||
*/
|
||||
// @ts-ignore
|
||||
isOnlineMode(): boolean;
|
||||
/**
|
||||
* Set this connection's online mode.
|
||||
* <br>
|
||||
* May be called only during the PlayerHandshakeEvent to set the online mode
|
||||
* configuration setting for this connection only (i.e. whether or not the
|
||||
* client will be treated as if it is connecting to an online mode server).
|
||||
*/
|
||||
// @ts-ignore
|
||||
setOnlineMode(onlineMode: boolean): void;
|
||||
/**
|
||||
* Check if the client is using the older unsupported Minecraft protocol
|
||||
* used by Minecraft clients older than 1.7.
|
||||
*/
|
||||
// @ts-ignore
|
||||
isLegacy(): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
25
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode.d.ts
vendored
Normal file
25
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode.d.ts
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace connection {
|
||||
namespace ProxiedPlayer {
|
||||
// @ts-ignore
|
||||
class ChatMode extends java.lang.Enum {
|
||||
// @ts-ignore
|
||||
public static SHOWN: any /*net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode*/;
|
||||
// @ts-ignore
|
||||
public static COMMANDS_ONLY: any /*net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode*/;
|
||||
// @ts-ignore
|
||||
public static HIDDEN: any /*net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode*/;
|
||||
// @ts-ignore
|
||||
public static values(): any /*net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode[]*/;
|
||||
// @ts-ignore
|
||||
public static valueOf(name: string): any /*net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
23
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.MainHand.d.ts
vendored
Normal file
23
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.MainHand.d.ts
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace connection {
|
||||
namespace ProxiedPlayer {
|
||||
// @ts-ignore
|
||||
class MainHand extends java.lang.Enum {
|
||||
// @ts-ignore
|
||||
public static LEFT: any /*net.md_5.bungee.api.connection.ProxiedPlayer.MainHand*/;
|
||||
// @ts-ignore
|
||||
public static RIGHT: any /*net.md_5.bungee.api.connection.ProxiedPlayer.MainHand*/;
|
||||
// @ts-ignore
|
||||
public static values(): any /*net.md_5.bungee.api.connection.ProxiedPlayer.MainHand[]*/;
|
||||
// @ts-ignore
|
||||
public static valueOf(name: string): any /*net.md_5.bungee.api.connection.ProxiedPlayer.MainHand*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
206
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.d.ts
vendored
Normal file
206
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.d.ts
vendored
Normal file
@ -0,0 +1,206 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace connection {
|
||||
// @ts-ignore
|
||||
interface ProxiedPlayer extends net.md_5.bungee.api.connection.Connection, net.md_5.bungee.api.CommandSender {
|
||||
/**
|
||||
* Gets this player's display name.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getDisplayName(): string;
|
||||
/**
|
||||
* Sets this players display name to be used as their nametag and tab list
|
||||
* name.
|
||||
*/
|
||||
// @ts-ignore
|
||||
setDisplayName(name: string): void;
|
||||
/**
|
||||
* Send a message to the specified screen position of this player.
|
||||
*/
|
||||
// @ts-ignore
|
||||
sendMessage(position: ChatMessageType, message: BaseComponent): void;
|
||||
/**
|
||||
* Send a message to the specified screen position of this player.
|
||||
*/
|
||||
// @ts-ignore
|
||||
sendMessage(position: ChatMessageType, message: BaseComponent): void;
|
||||
/**
|
||||
* Connects / transfers this user to the specified connection, gracefully
|
||||
* closing the current one. Depending on the implementation, this method
|
||||
* might return before the user has been connected.
|
||||
*/
|
||||
// @ts-ignore
|
||||
connect(target: any /*net.md_5.bungee.api.config.ServerInfo*/): void;
|
||||
/**
|
||||
* Connects / transfers this user to the specified connection, gracefully
|
||||
* closing the current one. Depending on the implementation, this method
|
||||
* might return before the user has been connected.
|
||||
*/
|
||||
// @ts-ignore
|
||||
connect(target: any /*net.md_5.bungee.api.config.ServerInfo*/, reason: any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason*/): void;
|
||||
/**
|
||||
* Connects / transfers this user to the specified connection, gracefully
|
||||
* closing the current one. Depending on the implementation, this method
|
||||
* might return before the user has been connected.
|
||||
*/
|
||||
// @ts-ignore
|
||||
connect(target: any /*net.md_5.bungee.api.config.ServerInfo*/, callback: any /*net.md_5.bungee.api.Callback*/): void;
|
||||
/**
|
||||
* Connects / transfers this user to the specified connection, gracefully
|
||||
* closing the current one. Depending on the implementation, this method
|
||||
* might return before the user has been connected.
|
||||
*/
|
||||
// @ts-ignore
|
||||
connect(target: any /*net.md_5.bungee.api.config.ServerInfo*/, callback: any /*net.md_5.bungee.api.Callback*/, reason: any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason*/): void;
|
||||
/**
|
||||
* Connects / transfers this user to the specified connection, gracefully
|
||||
* closing the current one. Depending on the implementation, this method
|
||||
* might return before the user has been connected.
|
||||
*/
|
||||
// @ts-ignore
|
||||
connect(request: any /*net.md_5.bungee.api.ServerConnectRequest*/): void;
|
||||
/**
|
||||
* Gets the server this player is connected to.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getServer(): any /*net.md_5.bungee.api.connection.Server*/;
|
||||
/**
|
||||
* Gets the ping time between the proxy and this connection.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getPing(): number;
|
||||
/**
|
||||
* Send a plugin message to this player.
|
||||
* In recent Minecraft versions channel names must contain a colon separator
|
||||
* and consist of [a-z0-9/._-]. This will be enforced in a future version.
|
||||
* The "BungeeCord" channel is an exception and may only take this form.
|
||||
*/
|
||||
// @ts-ignore
|
||||
sendData(channel: string, data: number): void;
|
||||
/**
|
||||
* Get the pending connection that belongs to this player.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getPendingConnection(): any /*net.md_5.bungee.api.connection.PendingConnection*/;
|
||||
/**
|
||||
* Make this player chat (say something), to the server he is currently on.
|
||||
*/
|
||||
// @ts-ignore
|
||||
chat(message: string): void;
|
||||
/**
|
||||
* Get the server which this player will be sent to next time the log in.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getReconnectServer(): any /*net.md_5.bungee.api.config.ServerInfo*/;
|
||||
/**
|
||||
* Set the server which this player will be sent to next time the log in.
|
||||
*/
|
||||
// @ts-ignore
|
||||
setReconnectServer(server: any /*net.md_5.bungee.api.config.ServerInfo*/): void;
|
||||
/**
|
||||
* Get this connection's UUID, if set.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getUUID(): string;
|
||||
/**
|
||||
* Get this connection's UUID, if set.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getUniqueId(): java.util.UUID;
|
||||
/**
|
||||
* Gets this player's locale.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getLocale(): java.util.Locale;
|
||||
/**
|
||||
* Gets this player's view distance.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getViewDistance(): number;
|
||||
/**
|
||||
* Gets this player's chat mode.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getChatMode(): any /*net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode*/;
|
||||
/**
|
||||
* Gets if this player has chat colors enabled or disabled.
|
||||
*/
|
||||
// @ts-ignore
|
||||
hasChatColors(): boolean;
|
||||
/**
|
||||
* Gets this player's skin settings.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getSkinParts(): any /*net.md_5.bungee.api.SkinConfiguration*/;
|
||||
/**
|
||||
* Gets this player's main hand setting.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getMainHand(): any /*net.md_5.bungee.api.connection.ProxiedPlayer.MainHand*/;
|
||||
/**
|
||||
* Set the header and footer displayed in the tab player list.
|
||||
*/
|
||||
// @ts-ignore
|
||||
setTabHeader(header: BaseComponent, footer: BaseComponent): void;
|
||||
/**
|
||||
* Set the header and footer displayed in the tab player list.
|
||||
*/
|
||||
// @ts-ignore
|
||||
setTabHeader(header: BaseComponent, footer: BaseComponent): void;
|
||||
/**
|
||||
* Clears the header and footer displayed in the tab player list.
|
||||
*/
|
||||
// @ts-ignore
|
||||
resetTabHeader(): void;
|
||||
/**
|
||||
* Sends a {@link Title} to this player. This is the same as calling
|
||||
* {@link Title#send(ProxiedPlayer)}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
sendTitle(title: any /*net.md_5.bungee.api.Title*/): void;
|
||||
/**
|
||||
* Gets whether this player is using a FML client.
|
||||
* <p>
|
||||
* This method is only reliable if BungeeCord links Minecraft 1.8 servers
|
||||
* together, as Bungee can pick up whether a user is a Forge user with the
|
||||
* initial handshake. If this is used for a 1.7 network, this might return
|
||||
* <code>false</code> even if the user is a FML user, as Bungee can only
|
||||
* determine this information if a handshake successfully completes.
|
||||
* </p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
isForgeUser(): boolean;
|
||||
/**
|
||||
* Gets this player's Forge Mod List, if the player has sent this
|
||||
* information during the lifetime of their connection to Bungee. There is
|
||||
* no guarantee that information is available at any time, as it is only
|
||||
* sent during a FML handshake. Therefore, this will only contain
|
||||
* information for a user that has attempted joined a Forge server.
|
||||
* <p>
|
||||
* Consumers of this API should be aware that an empty mod list does
|
||||
* <em>not</em> indicate that a user is not a Forge user, and so should not
|
||||
* use this API to check for this. See the {@link #isForgeUser()
|
||||
* isForgeUser} method instead.
|
||||
* </p>
|
||||
* <p>
|
||||
* Calling this when handling a
|
||||
* {@link net.md_5.bungee.api.event.ServerConnectedEvent} may be the best
|
||||
* place to do so as this event occurs after a FML handshake has completed,
|
||||
* if any has occurred.
|
||||
* </p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
getModList(): java.util.Map;
|
||||
/**
|
||||
* Get the {@link Scoreboard} that belongs to this player.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getScoreboard(): any /*net.md_5.bungee.api.score.Scoreboard*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
26
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Server.d.ts
vendored
Normal file
26
packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Server.d.ts
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace connection {
|
||||
// @ts-ignore
|
||||
interface Server extends net.md_5.bungee.api.connection.Connection {
|
||||
/**
|
||||
* Returns the basic information about this server.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getInfo(): any /*net.md_5.bungee.api.config.ServerInfo*/;
|
||||
/**
|
||||
* Send data by any available means to this server.
|
||||
* In recent Minecraft versions channel names must contain a colon separator
|
||||
* and consist of [a-z0-9/._-]. This will be enforced in a future version.
|
||||
* The "BungeeCord" channel is an exception and may only take this form.
|
||||
*/
|
||||
// @ts-ignore
|
||||
sendData(channel: string, data: number): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
32
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.AsyncEvent.d.ts
vendored
Normal file
32
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.AsyncEvent.d.ts
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class AsyncEvent extends net.md_5.bungee.api.plugin.Event {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public postCall(): void;
|
||||
/**
|
||||
* Register an intent that this plugin will continue to perform work on a
|
||||
* background task, and wishes to let the event proceed once the registered
|
||||
* background task has completed. Multiple intents can be registered by a
|
||||
* plugin, but the plugin must complete the same amount of intents for the
|
||||
* event to proceed.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public registerIntent(plugin: any /*net.md_5.bungee.api.plugin.Plugin*/): void;
|
||||
/**
|
||||
* Notifies this event that this plugin has completed an intent and wishes
|
||||
* to let the event proceed once all intents have been completed.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public completeIntent(plugin: any /*net.md_5.bungee.api.plugin.Plugin*/): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
25
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ChatEvent.d.ts
vendored
Normal file
25
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ChatEvent.d.ts
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class ChatEvent extends net.md_5.bungee.api.event.TargetedEvent implements net.md_5.bungee.api.plugin.Cancellable {
|
||||
// @ts-ignore
|
||||
constructor(sender: any /*net.md_5.bungee.api.connection.Connection*/, receiver: any /*net.md_5.bungee.api.connection.Connection*/, message: string)
|
||||
/**
|
||||
* Checks whether this message is valid as a command
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isCommand(): boolean;
|
||||
/**
|
||||
* Checks whether this message is run on this proxy server.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isProxyCommand(): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
21
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.LoginEvent.d.ts
vendored
Normal file
21
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.LoginEvent.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class LoginEvent extends net.md_5.bungee.api.event.AsyncEvent implements net.md_5.bungee.api.plugin.Cancellable {
|
||||
// @ts-ignore
|
||||
constructor(connection: any /*net.md_5.bungee.api.connection.PendingConnection*/, done: any /*net.md_5.bungee.api.Callback*/)
|
||||
// @ts-ignore
|
||||
public getCancelReason(): string;
|
||||
// @ts-ignore
|
||||
public setCancelReason(cancelReason: string): void;
|
||||
// @ts-ignore
|
||||
public setCancelReason(cancelReason: BaseComponent): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
17
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PermissionCheckEvent.d.ts
vendored
Normal file
17
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PermissionCheckEvent.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class PermissionCheckEvent extends net.md_5.bungee.api.plugin.Event {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
// @ts-ignore
|
||||
public hasPermission(): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PlayerDisconnectEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PlayerDisconnectEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class PlayerDisconnectEvent extends net.md_5.bungee.api.plugin.Event {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PlayerHandshakeEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PlayerHandshakeEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class PlayerHandshakeEvent extends net.md_5.bungee.api.plugin.Event {
|
||||
// @ts-ignore
|
||||
constructor(connection: any /*net.md_5.bungee.api.connection.PendingConnection*/, handshake: Handshake)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PluginMessageEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PluginMessageEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class PluginMessageEvent extends net.md_5.bungee.api.event.TargetedEvent implements net.md_5.bungee.api.plugin.Cancellable {
|
||||
// @ts-ignore
|
||||
constructor(sender: any /*net.md_5.bungee.api.connection.Connection*/, receiver: any /*net.md_5.bungee.api.connection.Connection*/, tag: string, data: number)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PostLoginEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PostLoginEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class PostLoginEvent extends net.md_5.bungee.api.plugin.Event {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
21
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PreLoginEvent.d.ts
vendored
Normal file
21
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PreLoginEvent.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class PreLoginEvent extends net.md_5.bungee.api.event.AsyncEvent implements net.md_5.bungee.api.plugin.Cancellable {
|
||||
// @ts-ignore
|
||||
constructor(connection: any /*net.md_5.bungee.api.connection.PendingConnection*/, done: any /*net.md_5.bungee.api.Callback*/)
|
||||
// @ts-ignore
|
||||
public getCancelReason(): string;
|
||||
// @ts-ignore
|
||||
public setCancelReason(cancelReason: string): void;
|
||||
// @ts-ignore
|
||||
public setCancelReason(cancelReason: BaseComponent): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ProxyPingEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ProxyPingEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class ProxyPingEvent extends net.md_5.bungee.api.event.AsyncEvent {
|
||||
// @ts-ignore
|
||||
constructor(connection: any /*net.md_5.bungee.api.connection.PendingConnection*/, response: any /*net.md_5.bungee.api.ServerPing*/, done: any /*net.md_5.bungee.api.Callback*/)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ProxyReloadEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ProxyReloadEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class ProxyReloadEvent extends net.md_5.bungee.api.plugin.Event {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
35
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectEvent.Reason.d.ts
vendored
Normal file
35
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectEvent.Reason.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
namespace ServerConnectEvent {
|
||||
// @ts-ignore
|
||||
class Reason extends java.lang.Enum {
|
||||
// @ts-ignore
|
||||
public static LOBBY_FALLBACK: any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason*/;
|
||||
// @ts-ignore
|
||||
public static COMMAND: any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason*/;
|
||||
// @ts-ignore
|
||||
public static SERVER_DOWN_REDIRECT: any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason*/;
|
||||
// @ts-ignore
|
||||
public static KICK_REDIRECT: any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason*/;
|
||||
// @ts-ignore
|
||||
public static PLUGIN_MESSAGE: any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason*/;
|
||||
// @ts-ignore
|
||||
public static JOIN_PROXY: any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason*/;
|
||||
// @ts-ignore
|
||||
public static PLUGIN: any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason*/;
|
||||
// @ts-ignore
|
||||
public static UNKNOWN: any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason*/;
|
||||
// @ts-ignore
|
||||
public static values(): any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason[]*/;
|
||||
// @ts-ignore
|
||||
public static valueOf(name: string): any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
17
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectEvent.d.ts
vendored
Normal file
17
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectEvent.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class ServerConnectEvent extends net.md_5.bungee.api.plugin.Event implements net.md_5.bungee.api.plugin.Cancellable {
|
||||
// @ts-ignore
|
||||
constructor(player: any /*net.md_5.bungee.api.connection.ProxiedPlayer*/, target: any /*net.md_5.bungee.api.config.ServerInfo*/)
|
||||
// @ts-ignore
|
||||
constructor(player: any /*net.md_5.bungee.api.connection.ProxiedPlayer*/, target: any /*net.md_5.bungee.api.config.ServerInfo*/, reason: any /*net.md_5.bungee.api.event.ServerConnectEvent.Reason*/)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectedEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectedEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class ServerConnectedEvent extends net.md_5.bungee.api.plugin.Event {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerDisconnectEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerDisconnectEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class ServerDisconnectEvent extends net.md_5.bungee.api.plugin.Event {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
25
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerKickEvent.State.d.ts
vendored
Normal file
25
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerKickEvent.State.d.ts
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
namespace ServerKickEvent {
|
||||
// @ts-ignore
|
||||
class State extends java.lang.Enum {
|
||||
// @ts-ignore
|
||||
public static CONNECTING: any /*net.md_5.bungee.api.event.ServerKickEvent.State*/;
|
||||
// @ts-ignore
|
||||
public static CONNECTED: any /*net.md_5.bungee.api.event.ServerKickEvent.State*/;
|
||||
// @ts-ignore
|
||||
public static UNKNOWN: any /*net.md_5.bungee.api.event.ServerKickEvent.State*/;
|
||||
// @ts-ignore
|
||||
public static values(): any /*net.md_5.bungee.api.event.ServerKickEvent.State[]*/;
|
||||
// @ts-ignore
|
||||
public static valueOf(name: string): any /*net.md_5.bungee.api.event.ServerKickEvent.State*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
23
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerKickEvent.d.ts
vendored
Normal file
23
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerKickEvent.d.ts
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class ServerKickEvent extends net.md_5.bungee.api.plugin.Event implements net.md_5.bungee.api.plugin.Cancellable {
|
||||
// @ts-ignore
|
||||
constructor(player: any /*net.md_5.bungee.api.connection.ProxiedPlayer*/, kickReasonComponent: BaseComponent, cancelServer: any /*net.md_5.bungee.api.config.ServerInfo*/)
|
||||
// @ts-ignore
|
||||
constructor(player: any /*net.md_5.bungee.api.connection.ProxiedPlayer*/, kickReasonComponent: BaseComponent, cancelServer: any /*net.md_5.bungee.api.config.ServerInfo*/, state: any /*net.md_5.bungee.api.event.ServerKickEvent.State*/)
|
||||
// @ts-ignore
|
||||
constructor(player: any /*net.md_5.bungee.api.connection.ProxiedPlayer*/, kickedFrom: any /*net.md_5.bungee.api.config.ServerInfo*/, kickReasonComponent: BaseComponent, cancelServer: any /*net.md_5.bungee.api.config.ServerInfo*/, state: any /*net.md_5.bungee.api.event.ServerKickEvent.State*/)
|
||||
// @ts-ignore
|
||||
public getKickReason(): string;
|
||||
// @ts-ignore
|
||||
public setKickReason(reason: string): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerSwitchEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerSwitchEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class ServerSwitchEvent extends net.md_5.bungee.api.plugin.Event {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.SettingsChangedEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.SettingsChangedEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class SettingsChangedEvent extends net.md_5.bungee.api.plugin.Event {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TabCompleteEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TabCompleteEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class TabCompleteEvent extends net.md_5.bungee.api.event.TargetedEvent implements net.md_5.bungee.api.plugin.Cancellable {
|
||||
// @ts-ignore
|
||||
constructor(sender: any /*net.md_5.bungee.api.connection.Connection*/, receiver: any /*net.md_5.bungee.api.connection.Connection*/, cursor: string, suggestions: java.util.List)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TabCompleteResponseEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TabCompleteResponseEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
class TabCompleteResponseEvent extends net.md_5.bungee.api.event.TargetedEvent implements net.md_5.bungee.api.plugin.Cancellable {
|
||||
// @ts-ignore
|
||||
constructor(sender: any /*net.md_5.bungee.api.connection.Connection*/, receiver: any /*net.md_5.bungee.api.connection.Connection*/, suggestions: java.util.List)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TargetedEvent.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TargetedEvent.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace event {
|
||||
// @ts-ignore
|
||||
abstract class TargetedEvent extends net.md_5.bungee.api.plugin.Event {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
23
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Cancellable.d.ts
vendored
Normal file
23
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Cancellable.d.ts
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace plugin {
|
||||
// @ts-ignore
|
||||
interface Cancellable {
|
||||
/**
|
||||
* Get whether or not this event is cancelled.
|
||||
*/
|
||||
// @ts-ignore
|
||||
isCancelled(): boolean;
|
||||
/**
|
||||
* Sets the cancelled state of this event.
|
||||
*/
|
||||
// @ts-ignore
|
||||
setCancelled(cancel: boolean): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
33
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Command.d.ts
vendored
Normal file
33
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Command.d.ts
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace plugin {
|
||||
// @ts-ignore
|
||||
abstract class Command extends java.lang.Object {
|
||||
/**
|
||||
* Construct a new command with no permissions or aliases.
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(name: string)
|
||||
/**
|
||||
* Construct a new command.
|
||||
*/
|
||||
// @ts-ignore
|
||||
constructor(name: string, permission: string, aliases: string)
|
||||
/**
|
||||
* Execute this command with the specified sender and arguments.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public abstract execute(sender: any /*net.md_5.bungee.api.CommandSender*/, args: string): void;
|
||||
/**
|
||||
* Check if this command can be executed by the given sender.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public hasPermission(sender: any /*net.md_5.bungee.api.CommandSender*/): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
20
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Event.d.ts
vendored
Normal file
20
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Event.d.ts
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace plugin {
|
||||
// @ts-ignore
|
||||
abstract class Event extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
/**
|
||||
* Method called after this event has been dispatched to all handlers.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public postCall(): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Listener.d.ts
vendored
Normal file
13
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Listener.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace plugin {
|
||||
// @ts-ignore
|
||||
interface Listener {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
46
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Plugin.d.ts
vendored
Normal file
46
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Plugin.d.ts
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace plugin {
|
||||
// @ts-ignore
|
||||
class Plugin extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
/**
|
||||
* Called when the plugin has just been loaded. Most of the proxy will not
|
||||
* be initialized, so only use it for registering
|
||||
* {@link ConfigurationAdapter}'s and other predefined behavior.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public onLoad(): void;
|
||||
/**
|
||||
* Called when this plugin is enabled.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public onEnable(): void;
|
||||
/**
|
||||
* Called when this plugin is disabled.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public onDisable(): void;
|
||||
/**
|
||||
* Gets the data folder where this plugin may store arbitrary data. It will
|
||||
* be a child of {@link ProxyServer#getPluginsFolder()}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public getDataFolder(): java.io.File;
|
||||
/**
|
||||
* Get a resource from within this plugins jar or container. Care must be
|
||||
* taken to close the returned stream.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public getResourceAsStream(name: string): java.io.InputStream;
|
||||
// @ts-ignore
|
||||
public getExecutorService(): java.util.concurrent.ExecutorService;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
17
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginClassloader.d.ts
vendored
Normal file
17
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginClassloader.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace plugin {
|
||||
// @ts-ignore
|
||||
class PluginClassloader extends java.net.URLClassLoader {
|
||||
// @ts-ignore
|
||||
constructor(urls: java.net.URL)
|
||||
// @ts-ignore
|
||||
protected loadClass(name: string, resolve: boolean): java.lang.Class;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginDescription.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginDescription.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace plugin {
|
||||
// @ts-ignore
|
||||
class PluginDescription extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
17
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginLogger.d.ts
vendored
Normal file
17
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginLogger.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace plugin {
|
||||
// @ts-ignore
|
||||
class PluginLogger extends java.util.logging.Logger {
|
||||
// @ts-ignore
|
||||
constructor(plugin: any /*net.md_5.bungee.api.plugin.Plugin*/)
|
||||
// @ts-ignore
|
||||
public log(logRecord: java.util.logging.LogRecord): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
90
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginManager.d.ts
vendored
Normal file
90
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginManager.d.ts
vendored
Normal file
@ -0,0 +1,90 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace plugin {
|
||||
// @ts-ignore
|
||||
class PluginManager extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor(proxy: any /*net.md_5.bungee.api.ProxyServer*/)
|
||||
/**
|
||||
* Register a command so that it may be executed.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public registerCommand(plugin: any /*net.md_5.bungee.api.plugin.Plugin*/, command: any /*net.md_5.bungee.api.plugin.Command*/): void;
|
||||
/**
|
||||
* Unregister a command so it will no longer be executed.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public unregisterCommand(command: any /*net.md_5.bungee.api.plugin.Command*/): void;
|
||||
/**
|
||||
* Unregister all commands owned by a {@link Plugin}
|
||||
*/
|
||||
// @ts-ignore
|
||||
public unregisterCommands(plugin: any /*net.md_5.bungee.api.plugin.Plugin*/): void;
|
||||
/**
|
||||
* Checks if the command is registered and can possibly be executed by the
|
||||
* sender (without taking permissions into account).
|
||||
*/
|
||||
// @ts-ignore
|
||||
public isExecutableCommand(commandName: string, sender: any /*net.md_5.bungee.api.CommandSender*/): boolean;
|
||||
// @ts-ignore
|
||||
public dispatchCommand(sender: any /*net.md_5.bungee.api.CommandSender*/, commandLine: string): boolean;
|
||||
/**
|
||||
* Execute a command if it is registered, else return false.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public dispatchCommand(sender: any /*net.md_5.bungee.api.CommandSender*/, commandLine: string, tabResults: java.util.List): boolean;
|
||||
/**
|
||||
* Returns the {@link Plugin} objects corresponding to all loaded plugins.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public getPlugins(): java.util.Collection;
|
||||
/**
|
||||
* Returns a loaded plugin identified by the specified name.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public getPlugin(name: string): any /*net.md_5.bungee.api.plugin.Plugin*/;
|
||||
// @ts-ignore
|
||||
public loadPlugins(): void;
|
||||
// @ts-ignore
|
||||
public enablePlugins(): void;
|
||||
/**
|
||||
* Load all plugins from the specified folder.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public detectPlugins(folder: java.io.File): void;
|
||||
/**
|
||||
* Dispatch an event to all subscribed listeners and return the event once
|
||||
* it has been handled by these listeners.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public callEvent(event: any /*net.md_5.bungee.api.plugin.Event*/): any /*net.md_5.bungee.api.plugin.Event*/;
|
||||
/**
|
||||
* Register a {@link Listener} for receiving called events. Methods in this
|
||||
* Object which wish to receive events must be annotated with the
|
||||
* {@link EventHandler} annotation.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public registerListener(plugin: any /*net.md_5.bungee.api.plugin.Plugin*/, listener: any /*net.md_5.bungee.api.plugin.Listener*/): void;
|
||||
/**
|
||||
* Unregister a {@link Listener} so that the events do not reach it anymore.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public unregisterListener(listener: any /*net.md_5.bungee.api.plugin.Listener*/): void;
|
||||
/**
|
||||
* Unregister all of a Plugin's listener.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public unregisterListeners(plugin: any /*net.md_5.bungee.api.plugin.Plugin*/): void;
|
||||
/**
|
||||
* Get an unmodifiable collection of all registered commands.
|
||||
*/
|
||||
// @ts-ignore
|
||||
public getCommands(): java.util.Collection;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.TabExecutor.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.TabExecutor.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace plugin {
|
||||
// @ts-ignore
|
||||
interface TabExecutor {
|
||||
// @ts-ignore
|
||||
onTabComplete(sender: any /*net.md_5.bungee.api.CommandSender*/, args: string): java.lang.Iterable;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace scheduler {
|
||||
namespace GroupedThreadFactory {
|
||||
// @ts-ignore
|
||||
class BungeeGroup extends java.lang.ThreadGroup {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
17
packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.GroupedThreadFactory.d.ts
vendored
Normal file
17
packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.GroupedThreadFactory.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace scheduler {
|
||||
// @ts-ignore
|
||||
class GroupedThreadFactory extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor(plugin: any /*net.md_5.bungee.api.plugin.Plugin*/, name: string)
|
||||
// @ts-ignore
|
||||
public newThread(r: java.lang.Runnable): java.lang.Thread;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
33
packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.ScheduledTask.d.ts
vendored
Normal file
33
packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.ScheduledTask.d.ts
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace scheduler {
|
||||
// @ts-ignore
|
||||
interface ScheduledTask {
|
||||
/**
|
||||
* Gets the unique ID of this task.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getId(): number;
|
||||
/**
|
||||
* Return the plugin which scheduled this task for execution.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getOwner(): any /*net.md_5.bungee.api.plugin.Plugin*/;
|
||||
/**
|
||||
* Get the actual method which will be executed by this task.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getTask(): java.lang.Runnable;
|
||||
/**
|
||||
* Cancel this task to suppress subsequent executions.
|
||||
*/
|
||||
// @ts-ignore
|
||||
cancel(): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
20
packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.TaskScheduler.Unsafe.d.ts
vendored
Normal file
20
packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.TaskScheduler.Unsafe.d.ts
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace scheduler {
|
||||
namespace TaskScheduler {
|
||||
// @ts-ignore
|
||||
interface Unsafe {
|
||||
/**
|
||||
* An executor service which underlies this scheduler.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getExecutorService(plugin: any /*net.md_5.bungee.api.plugin.Plugin*/): java.util.concurrent.ExecutorService;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
56
packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.TaskScheduler.d.ts
vendored
Normal file
56
packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.TaskScheduler.d.ts
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace scheduler {
|
||||
// @ts-ignore
|
||||
interface TaskScheduler {
|
||||
/**
|
||||
* Cancel a task to prevent it from executing, or if its a repeating task,
|
||||
* prevent its further execution.
|
||||
*/
|
||||
// @ts-ignore
|
||||
cancel(id: number): void;
|
||||
/**
|
||||
* Cancel a task to prevent it from executing, or if its a repeating task,
|
||||
* prevent its further execution.
|
||||
*/
|
||||
// @ts-ignore
|
||||
cancel(task: any /*net.md_5.bungee.api.scheduler.ScheduledTask*/): void;
|
||||
/**
|
||||
* Cancel all tasks owned by this plugin, this preventing them from being
|
||||
* executed hereon in.
|
||||
*/
|
||||
// @ts-ignore
|
||||
cancel(plugin: any /*net.md_5.bungee.api.plugin.Plugin*/): number;
|
||||
/**
|
||||
* Schedule a task to be executed asynchronously. The task will commence
|
||||
* running as soon as this method returns.
|
||||
*/
|
||||
// @ts-ignore
|
||||
runAsync(owner: any /*net.md_5.bungee.api.plugin.Plugin*/, task: java.lang.Runnable): any /*net.md_5.bungee.api.scheduler.ScheduledTask*/;
|
||||
/**
|
||||
* Schedules a task to be executed asynchronously after the specified delay
|
||||
* is up.
|
||||
*/
|
||||
// @ts-ignore
|
||||
schedule(owner: any /*net.md_5.bungee.api.plugin.Plugin*/, task: java.lang.Runnable, delay: number, unit: java.util.concurrent.TimeUnit): any /*net.md_5.bungee.api.scheduler.ScheduledTask*/;
|
||||
/**
|
||||
* Schedules a task to be executed asynchronously after the specified delay
|
||||
* is up. The scheduled task will continue running at the specified
|
||||
* interval. The interval will not begin to count down until the last task
|
||||
* invocation is complete.
|
||||
*/
|
||||
// @ts-ignore
|
||||
schedule(owner: any /*net.md_5.bungee.api.plugin.Plugin*/, task: java.lang.Runnable, delay: number, period: number, unit: java.util.concurrent.TimeUnit): any /*net.md_5.bungee.api.scheduler.ScheduledTask*/;
|
||||
/**
|
||||
* Get the unsafe methods of this class.
|
||||
*/
|
||||
// @ts-ignore
|
||||
unsafe(): any /*net.md_5.bungee.api.scheduler.TaskScheduler.Unsafe*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Objective.d.ts
vendored
Normal file
15
packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Objective.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
declare namespace net {
|
||||
namespace md_5 {
|
||||
namespace bungee {
|
||||
namespace api {
|
||||
namespace score {
|
||||
// @ts-ignore
|
||||
class Objective extends java.lang.Object {
|
||||
// @ts-ignore
|
||||
constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user