From a2efd878db5349359883e5f88e55a31a2a36ab8a Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Tue, 14 Jan 2020 17:40:28 +0800 Subject: [PATCH] feat: add bungee typings Signed-off-by: MiaoWoo --- packages/types/dist/typings/bungee/index.d.ts | 225 ++++++++++++++++++ .../bungee/net.md_5.bungee.Bootstrap.d.ts | 13 + .../bungee/net.md_5.bungee.BungeeCord.d.ts | 94 ++++++++ .../net.md_5.bungee.BungeeCordLauncher.d.ts | 13 + ...net.md_5.bungee.BungeeSecurityManager.d.ts | 19 ++ .../net.md_5.bungee.BungeeServerInfo.d.ts | 33 +++ .../bungee/net.md_5.bungee.BungeeTitle.d.ts | 31 +++ .../net.md_5.bungee.ConnectionThrottle.d.ts | 15 ++ .../net.md_5.bungee.EncryptionUtil.d.ts | 23 ++ .../bungee/net.md_5.bungee.Metrics.d.ts | 13 + .../net.md_5.bungee.PacketConstants.d.ts | 19 ++ .../net.md_5.bungee.PlayerInfoSerializer.d.ts | 15 ++ ...t.md_5.bungee.PlayerSkinConfiguration.d.ts | 25 ++ .../net.md_5.bungee.ServerConnection.d.ts | 25 ++ .../net.md_5.bungee.ServerConnector.d.ts | 33 +++ .../net.md_5.bungee.UserConnection.d.ts | 119 +++++++++ .../typings/bungee/net.md_5.bungee.Util.d.ts | 38 +++ ...5.bungee.api.AbstractReconnectHandler.d.ts | 19 ++ .../bungee/net.md_5.bungee.api.Callback.d.ts | 16 ++ .../bungee/net.md_5.bungee.api.ChatColor.d.ts | 79 ++++++ .../net.md_5.bungee.api.ChatMessageType.d.ts | 21 ++ .../net.md_5.bungee.api.CommandSender.d.ts | 68 ++++++ .../bungee/net.md_5.bungee.api.Favicon.d.ts | 25 ++ .../net.md_5.bungee.api.ProxyConfig.d.ts | 71 ++++++ .../net.md_5.bungee.api.ProxyServer.d.ts | 182 ++++++++++++++ .../net.md_5.bungee.api.ReconnectHandler.d.ts | 36 +++ ...ngee.api.ServerConnectRequest.Builder.d.ts | 15 ++ ...ungee.api.ServerConnectRequest.Result.d.ts | 27 +++ ....md_5.bungee.api.ServerConnectRequest.d.ts | 13 + ...et.md_5.bungee.api.ServerPing.ModInfo.d.ts | 15 ++ ...et.md_5.bungee.api.ServerPing.ModItem.d.ts | 15 ++ ...md_5.bungee.api.ServerPing.PlayerInfo.d.ts | 19 ++ ...et.md_5.bungee.api.ServerPing.Players.d.ts | 15 ++ ...t.md_5.bungee.api.ServerPing.Protocol.d.ts | 15 ++ .../net.md_5.bungee.api.ServerPing.d.ts | 31 +++ ...net.md_5.bungee.api.SkinConfiguration.d.ts | 25 ++ .../bungee/net.md_5.bungee.api.Title.d.ts | 71 ++++++ ...et.md_5.bungee.api.chat.BaseComponent.d.ts | 163 +++++++++++++ ...d_5.bungee.api.chat.ClickEvent.Action.d.ts | 29 +++ .../net.md_5.bungee.api.chat.ClickEvent.d.ts | 15 ++ ...chat.ComponentBuilder.FormatRetention.d.ts | 27 +++ ...ngee.api.chat.ComponentBuilder.Joiner.d.ts | 24 ++ ...md_5.bungee.api.chat.ComponentBuilder.d.ts | 179 ++++++++++++++ ...d_5.bungee.api.chat.HoverEvent.Action.d.ts | 27 +++ .../net.md_5.bungee.api.chat.HoverEvent.d.ts | 15 ++ ...md_5.bungee.api.chat.KeybindComponent.d.ts | 29 +++ .../net.md_5.bungee.api.chat.Keybinds.d.ts | 79 ++++++ ...t.md_5.bungee.api.chat.ScoreComponent.d.ts | 34 +++ ...d_5.bungee.api.chat.SelectorComponent.d.ts | 24 ++ ...et.md_5.bungee.api.chat.TextComponent.d.ts | 55 +++++ ...bungee.api.chat.TranslatableComponent.d.ts | 50 ++++ ...ungee.api.config.ConfigurationAdapter.d.ts | 60 +++++ ...t.md_5.bungee.api.config.ListenerInfo.d.ts | 26 ++ ...net.md_5.bungee.api.config.ServerInfo.d.ts | 75 ++++++ ...bungee.api.connection.ConnectedPlayer.d.ts | 13 + ...ngee.api.connection.Connection.Unsafe.d.ts | 20 ++ ...md_5.bungee.api.connection.Connection.d.ts | 50 ++++ ...ngee.api.connection.PendingConnection.d.ts | 71 ++++++ ...api.connection.ProxiedPlayer.ChatMode.d.ts | 25 ++ ...api.connection.ProxiedPlayer.MainHand.d.ts | 23 ++ ...5.bungee.api.connection.ProxiedPlayer.d.ts | 206 ++++++++++++++++ ...net.md_5.bungee.api.connection.Server.d.ts | 26 ++ .../net.md_5.bungee.api.event.AsyncEvent.d.ts | 32 +++ .../net.md_5.bungee.api.event.ChatEvent.d.ts | 25 ++ .../net.md_5.bungee.api.event.LoginEvent.d.ts | 21 ++ ...bungee.api.event.PermissionCheckEvent.d.ts | 17 ++ ...ungee.api.event.PlayerDisconnectEvent.d.ts | 15 ++ ...bungee.api.event.PlayerHandshakeEvent.d.ts | 15 ++ ...5.bungee.api.event.PluginMessageEvent.d.ts | 15 ++ ....md_5.bungee.api.event.PostLoginEvent.d.ts | 15 ++ ...t.md_5.bungee.api.event.PreLoginEvent.d.ts | 21 ++ ....md_5.bungee.api.event.ProxyPingEvent.d.ts | 15 ++ ...d_5.bungee.api.event.ProxyReloadEvent.d.ts | 15 ++ ...e.api.event.ServerConnectEvent.Reason.d.ts | 35 +++ ...5.bungee.api.event.ServerConnectEvent.d.ts | 17 ++ ...bungee.api.event.ServerConnectedEvent.d.ts | 15 ++ ...ungee.api.event.ServerDisconnectEvent.d.ts | 15 ++ ...ungee.api.event.ServerKickEvent.State.d.ts | 25 ++ ...md_5.bungee.api.event.ServerKickEvent.d.ts | 23 ++ ..._5.bungee.api.event.ServerSwitchEvent.d.ts | 15 ++ ...bungee.api.event.SettingsChangedEvent.d.ts | 15 ++ ...d_5.bungee.api.event.TabCompleteEvent.d.ts | 15 ++ ...ee.api.event.TabCompleteResponseEvent.d.ts | 15 ++ ...t.md_5.bungee.api.event.TargetedEvent.d.ts | 15 ++ ...et.md_5.bungee.api.plugin.Cancellable.d.ts | 23 ++ .../net.md_5.bungee.api.plugin.Command.d.ts | 33 +++ .../net.md_5.bungee.api.plugin.Event.d.ts | 20 ++ .../net.md_5.bungee.api.plugin.Listener.d.ts | 13 + .../net.md_5.bungee.api.plugin.Plugin.d.ts | 46 ++++ ...5.bungee.api.plugin.PluginClassloader.d.ts | 17 ++ ...5.bungee.api.plugin.PluginDescription.d.ts | 15 ++ ...t.md_5.bungee.api.plugin.PluginLogger.d.ts | 17 ++ ....md_5.bungee.api.plugin.PluginManager.d.ts | 90 +++++++ ...et.md_5.bungee.api.plugin.TabExecutor.d.ts | 15 ++ ...uler.GroupedThreadFactory.BungeeGroup.d.ts | 15 ++ ...ee.api.scheduler.GroupedThreadFactory.d.ts | 17 ++ ..._5.bungee.api.scheduler.ScheduledTask.d.ts | 33 +++ ...ee.api.scheduler.TaskScheduler.Unsafe.d.ts | 20 ++ ..._5.bungee.api.scheduler.TaskScheduler.d.ts | 56 +++++ .../net.md_5.bungee.api.score.Objective.d.ts | 15 ++ .../net.md_5.bungee.api.score.Position.d.ts | 55 +++++ .../net.md_5.bungee.api.score.Score.d.ts | 15 ++ .../net.md_5.bungee.api.score.Scoreboard.d.ts | 41 ++++ .../net.md_5.bungee.api.score.Team.d.ts | 21 ++ ...5.bungee.chat.BaseComponentSerializer.d.ts | 17 ++ ....md_5.bungee.chat.ComponentSerializer.d.ts | 23 ++ ...ungee.chat.KeybindComponentSerializer.d.ts | 17 ++ ....bungee.chat.ScoreComponentSerializer.d.ts | 17 ++ ...ngee.chat.SelectorComponentSerializer.d.ts | 17 ++ ...5.bungee.chat.TextComponentSerializer.d.ts | 17 ++ ....chat.TranslatableComponentSerializer.d.ts | 17 ++ ....md_5.bungee.chat.TranslationRegistry.d.ts | 17 ++ ...net.md_5.bungee.command.CommandBungee.d.ts | 15 ++ .../net.md_5.bungee.command.CommandEnd.d.ts | 15 ++ .../net.md_5.bungee.command.CommandIP.d.ts | 15 ++ .../net.md_5.bungee.command.CommandPerms.d.ts | 15 ++ ...net.md_5.bungee.command.CommandReload.d.ts | 15 ++ ...ungee.command.ConsoleCommandCompleter.d.ts | 15 ++ ...5.bungee.command.ConsoleCommandSender.d.ts | 35 +++ ...net.md_5.bungee.command.PlayerCommand.d.ts | 17 ++ ....md_5.bungee.compress.CompressFactory.d.ts | 15 ++ .../net.md_5.bungee.conf.Configuration.d.ts | 19 ++ .../net.md_5.bungee.conf.YamlConfig.d.ts | 31 +++ .../net.md_5.bungee.config.Configuration.d.ts | 90 +++++++ ...5.bungee.config.ConfigurationProvider.d.ts | 19 ++ ....md_5.bungee.config.YamlConfiguration.d.ts | 33 +++ ..._5.bungee.connection.CancelSendSignal.d.ts | 19 ++ ..._5.bungee.connection.DownstreamBridge.d.ts | 49 ++++ ...md_5.bungee.connection.InitialHandler.d.ts | 63 +++++ ...ungee.connection.LoginResult.Property.d.ts | 15 ++ ...et.md_5.bungee.connection.LoginResult.d.ts | 13 + ...et.md_5.bungee.connection.PingHandler.d.ts | 23 ++ ...md_5.bungee.connection.UpstreamBridge.d.ts | 35 +++ .../net.md_5.bungee.entitymap.EntityMap.d.ts | 33 +++ .../net.md_5.bungee.event.EventBus.d.ts | 21 ++ .../net.md_5.bungee.event.EventHandler.d.ts | 25 ++ ....md_5.bungee.event.EventHandlerMethod.d.ts | 15 ++ .../net.md_5.bungee.event.EventPriority.d.ts | 23 ++ ....md_5.bungee.forge.ForgeClientHandler.d.ts | 53 +++++ .../net.md_5.bungee.forge.ForgeConstants.d.ts | 37 +++ ....md_5.bungee.forge.ForgeServerHandler.d.ts | 30 +++ ...ungee.forge.ForgeServerHandshakeState.d.ts | 25 ++ .../net.md_5.bungee.forge.ForgeUtils.d.ts | 28 +++ ...ungee.forge.IForgeClientPacketHandler.d.ts | 21 ++ ...ungee.forge.IForgeServerPacketHandler.d.ts | 22 ++ .../net.md_5.bungee.http.HttpClient.d.ts | 17 ++ .../net.md_5.bungee.jni.NativeCode.d.ts | 19 ++ ...t.md_5.bungee.jni.NativeCodeException.d.ts | 13 + ...t.md_5.bungee.jni.cipher.BungeeCipher.d.ts | 21 ++ ...net.md_5.bungee.jni.cipher.JavaCipher.d.ts | 23 ++ ...t.md_5.bungee.jni.cipher.NativeCipher.d.ts | 23 ++ .../net.md_5.bungee.jni.zlib.BungeeZlib.d.ts | 19 ++ .../net.md_5.bungee.jni.zlib.JavaZlib.d.ts | 21 ++ ..._5.bungee.jni.zlib.NativeCompressImpl.d.ts | 15 ++ .../net.md_5.bungee.jni.zlib.NativeZlib.d.ts | 21 ++ .../net.md_5.bungee.log.BungeeLogger.d.ts | 15 ++ .../net.md_5.bungee.log.ColouredWriter.d.ts | 21 ++ .../net.md_5.bungee.log.ConciseFormatter.d.ts | 15 ++ .../net.md_5.bungee.log.LogDispatcher.d.ts | 17 ++ ...t.md_5.bungee.log.LoggingOutputStream.d.ts | 15 ++ ...d_5.bungee.module.JenkinsModuleSource.d.ts | 15 ++ .../net.md_5.bungee.module.ModuleManager.d.ts | 15 ++ .../net.md_5.bungee.module.ModuleSpec.d.ts | 13 + .../net.md_5.bungee.module.ModuleVersion.d.ts | 15 ++ .../net.md_5.bungee.netty.ChannelWrapper.d.ts | 33 +++ .../net.md_5.bungee.netty.HandlerBoss.d.ts | 25 ++ .../net.md_5.bungee.netty.PacketHandler.d.ts | 27 +++ .../net.md_5.bungee.netty.PipelineUtils.d.ts | 51 ++++ ...bungee.protocol.AbstractPacketHandler.d.ts | 81 +++++++ ..._5.bungee.protocol.BadPacketException.d.ts | 15 ++ ...et.md_5.bungee.protocol.DefinedPacket.d.ts | 61 +++++ ...et.md_5.bungee.protocol.LegacyDecoder.d.ts | 15 ++ ...ngee.protocol.OverflowPacketException.d.ts | 13 + ...et.md_5.bungee.protocol.PacketWrapper.d.ts | 19 ++ .../net.md_5.bungee.protocol.Protocol.d.ts | 27 +++ ....protocol.ProtocolConstants.Direction.d.ts | 21 ++ ...d_5.bungee.protocol.ProtocolConstants.d.ts | 59 +++++ ....bungee.protocol.Varint21FrameDecoder.d.ts | 15 ++ ...t.md_5.bungee.protocol.packet.BossBar.d.ts | 21 ++ .../net.md_5.bungee.protocol.packet.Chat.d.ts | 21 ++ ...bungee.protocol.packet.ClientSettings.d.ts | 21 ++ ...5.bungee.protocol.packet.ClientStatus.d.ts | 21 ++ ...ol.packet.Commands.SuggestionRegistry.d.ts | 19 ++ ....md_5.bungee.protocol.packet.Commands.d.ts | 21 ++ ...gee.protocol.packet.EncryptionRequest.d.ts | 21 ++ ...ee.protocol.packet.EncryptionResponse.d.ts | 21 ++ ...5.bungee.protocol.packet.EntityStatus.d.ts | 25 ++ ...md_5.bungee.protocol.packet.Handshake.d.ts | 21 ++ ...md_5.bungee.protocol.packet.KeepAlive.d.ts | 21 ++ .../net.md_5.bungee.protocol.packet.Kick.d.ts | 21 ++ ...ungee.protocol.packet.LegacyHandshake.d.ts | 21 ++ ...d_5.bungee.protocol.packet.LegacyPing.d.ts | 21 ++ ...net.md_5.bungee.protocol.packet.Login.d.ts | 21 ++ ...e.protocol.packet.LoginPayloadRequest.d.ts | 21 ++ ....protocol.packet.LoginPayloadResponse.d.ts | 21 ++ ...5.bungee.protocol.packet.LoginRequest.d.ts | 21 ++ ...5.bungee.protocol.packet.LoginSuccess.d.ts | 21 ++ ...d_5.bungee.protocol.packet.PingPacket.d.ts | 21 ++ ...rotocol.packet.PlayerListHeaderFooter.d.ts | 21 ++ ...protocol.packet.PlayerListItem.Action.d.ts | 29 +++ ...e.protocol.packet.PlayerListItem.Item.d.ts | 17 ++ ...bungee.protocol.packet.PlayerListItem.d.ts | 21 ++ ....bungee.protocol.packet.PluginMessage.d.ts | 27 +++ ...t.md_5.bungee.protocol.packet.Respawn.d.ts | 21 ++ ...gee.protocol.packet.ScoreboardDisplay.d.ts | 21 ++ ...ket.ScoreboardObjective.HealthDisplay.d.ts | 27 +++ ...e.protocol.packet.ScoreboardObjective.d.ts | 21 ++ ...ungee.protocol.packet.ScoreboardScore.d.ts | 21 ++ ...bungee.protocol.packet.SetCompression.d.ts | 21 ++ ....bungee.protocol.packet.StatusRequest.d.ts | 21 ++ ...bungee.protocol.packet.StatusResponse.d.ts | 21 ++ ...ee.protocol.packet.TabCompleteRequest.d.ts | 23 ++ ...e.protocol.packet.TabCompleteResponse.d.ts | 23 ++ .../net.md_5.bungee.protocol.packet.Team.d.ts | 24 ++ ...5.bungee.protocol.packet.Title.Action.d.ts | 31 +++ ...net.md_5.bungee.protocol.packet.Title.d.ts | 21 ++ ...5.bungee.protocol.packet.ViewDistance.d.ts | 21 ++ .../net.md_5.bungee.query.RemoteQuery.d.ts | 15 ++ ...md_5.bungee.scheduler.BungeeScheduler.d.ts | 27 +++ .../net.md_5.bungee.scheduler.BungeeTask.d.ts | 17 ++ .../net.md_5.bungee.tab.ServerUnique.d.ts | 23 ++ .../bungee/net.md_5.bungee.tab.TabList.d.ts | 27 +++ ...net.md_5.bungee.util.BoundedArrayList.d.ts | 21 ++ .../bungee/net.md_5.bungee.util.BufUtil.d.ts | 15 ++ ....bungee.util.ChatComponentTransformer.d.ts | 28 +++ .../net.md_5.bungee.util.QuietException.d.ts | 17 ++ 226 files changed, 6744 insertions(+) create mode 100644 packages/types/dist/typings/bungee/index.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.Bootstrap.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.BungeeCord.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.BungeeCordLauncher.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.BungeeSecurityManager.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.BungeeServerInfo.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.BungeeTitle.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.ConnectionThrottle.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.EncryptionUtil.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.Metrics.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.PacketConstants.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.PlayerInfoSerializer.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.PlayerSkinConfiguration.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.ServerConnection.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.ServerConnector.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.UserConnection.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.Util.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.AbstractReconnectHandler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.Callback.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ChatColor.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ChatMessageType.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.CommandSender.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.Favicon.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ProxyConfig.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ProxyServer.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ReconnectHandler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.Builder.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.Result.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.ModInfo.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.ModItem.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.PlayerInfo.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.Players.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.Protocol.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.SkinConfiguration.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.Title.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.BaseComponent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ClickEvent.Action.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ClickEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.Joiner.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.HoverEvent.Action.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.HoverEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.KeybindComponent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.Keybinds.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ScoreComponent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.SelectorComponent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.TextComponent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.TranslatableComponent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ConfigurationAdapter.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ListenerInfo.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ServerInfo.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ConnectedPlayer.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Connection.Unsafe.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Connection.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.PendingConnection.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.MainHand.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Server.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.AsyncEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ChatEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.LoginEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PermissionCheckEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PlayerDisconnectEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PlayerHandshakeEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PluginMessageEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PostLoginEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PreLoginEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ProxyPingEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ProxyReloadEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectEvent.Reason.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectedEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerDisconnectEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerKickEvent.State.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerKickEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerSwitchEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.SettingsChangedEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TabCompleteEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TabCompleteResponseEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TargetedEvent.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Cancellable.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Command.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Event.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Listener.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Plugin.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginClassloader.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginDescription.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginLogger.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginManager.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.TabExecutor.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.GroupedThreadFactory.BungeeGroup.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.GroupedThreadFactory.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.ScheduledTask.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.TaskScheduler.Unsafe.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.TaskScheduler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Objective.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Position.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Score.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Scoreboard.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Team.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.chat.BaseComponentSerializer.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.chat.ComponentSerializer.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.chat.KeybindComponentSerializer.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.chat.ScoreComponentSerializer.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.chat.SelectorComponentSerializer.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.chat.TextComponentSerializer.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.chat.TranslatableComponentSerializer.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.chat.TranslationRegistry.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandBungee.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandEnd.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandIP.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandPerms.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandReload.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.command.ConsoleCommandCompleter.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.command.ConsoleCommandSender.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.command.PlayerCommand.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.compress.CompressFactory.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.conf.Configuration.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.conf.YamlConfig.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.config.Configuration.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.config.ConfigurationProvider.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.config.YamlConfiguration.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.connection.CancelSendSignal.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.connection.DownstreamBridge.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.connection.InitialHandler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.connection.LoginResult.Property.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.connection.LoginResult.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.connection.PingHandler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.connection.UpstreamBridge.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.entitymap.EntityMap.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.event.EventBus.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.event.EventHandler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.event.EventHandlerMethod.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.event.EventPriority.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeClientHandler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeConstants.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeServerHandler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeServerHandshakeState.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeUtils.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.forge.IForgeClientPacketHandler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.forge.IForgeServerPacketHandler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.http.HttpClient.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.jni.NativeCode.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.jni.NativeCodeException.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.jni.cipher.BungeeCipher.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.jni.cipher.JavaCipher.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.jni.cipher.NativeCipher.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.BungeeZlib.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.JavaZlib.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.NativeCompressImpl.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.NativeZlib.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.log.BungeeLogger.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.log.ColouredWriter.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.log.ConciseFormatter.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.log.LogDispatcher.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.log.LoggingOutputStream.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.module.JenkinsModuleSource.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.module.ModuleManager.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.module.ModuleSpec.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.module.ModuleVersion.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.netty.ChannelWrapper.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.netty.HandlerBoss.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.netty.PacketHandler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.netty.PipelineUtils.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.AbstractPacketHandler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.BadPacketException.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.DefinedPacket.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.LegacyDecoder.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.OverflowPacketException.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.PacketWrapper.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.Protocol.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.ProtocolConstants.Direction.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.ProtocolConstants.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.Varint21FrameDecoder.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.BossBar.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Chat.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ClientSettings.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ClientStatus.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Commands.SuggestionRegistry.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Commands.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.EncryptionRequest.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.EncryptionResponse.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.EntityStatus.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Handshake.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.KeepAlive.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Kick.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LegacyHandshake.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LegacyPing.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Login.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginPayloadRequest.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginPayloadResponse.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginRequest.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginSuccess.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PingPacket.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListHeaderFooter.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListItem.Action.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListItem.Item.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListItem.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PluginMessage.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Respawn.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardDisplay.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardObjective.HealthDisplay.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardObjective.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardScore.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.SetCompression.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.StatusRequest.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.StatusResponse.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.TabCompleteRequest.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.TabCompleteResponse.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Team.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Title.Action.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Title.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ViewDistance.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.query.RemoteQuery.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.scheduler.BungeeScheduler.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.scheduler.BungeeTask.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.tab.ServerUnique.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.tab.TabList.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.util.BoundedArrayList.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.util.BufUtil.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.util.ChatComponentTransformer.d.ts create mode 100644 packages/types/dist/typings/bungee/net.md_5.bungee.util.QuietException.d.ts diff --git a/packages/types/dist/typings/bungee/index.d.ts b/packages/types/dist/typings/bungee/index.d.ts new file mode 100644 index 00000000..70742079 --- /dev/null +++ b/packages/types/dist/typings/bungee/index.d.ts @@ -0,0 +1,225 @@ +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.Bootstrap.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.Bootstrap.d.ts new file mode 100644 index 00000000..435e4897 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.Bootstrap.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeCord.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeCord.d.ts new file mode 100644 index 00000000..7254d4f9 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeCord.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeCordLauncher.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeCordLauncher.d.ts new file mode 100644 index 00000000..d233cf73 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeCordLauncher.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeSecurityManager.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeSecurityManager.d.ts new file mode 100644 index 00000000..325bf064 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeSecurityManager.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeServerInfo.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeServerInfo.d.ts new file mode 100644 index 00000000..aa801329 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeServerInfo.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeTitle.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeTitle.d.ts new file mode 100644 index 00000000..6adf57b1 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.BungeeTitle.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.ConnectionThrottle.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.ConnectionThrottle.d.ts new file mode 100644 index 00000000..774e01a5 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.ConnectionThrottle.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.EncryptionUtil.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.EncryptionUtil.d.ts new file mode 100644 index 00000000..bf78c70e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.EncryptionUtil.d.ts @@ -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[]; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.Metrics.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.Metrics.d.ts new file mode 100644 index 00000000..eaf8ca8b --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.Metrics.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.PacketConstants.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.PacketConstants.d.ts new file mode 100644 index 00000000..b6dff99d --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.PacketConstants.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.PlayerInfoSerializer.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.PlayerInfoSerializer.d.ts new file mode 100644 index 00000000..210555ba --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.PlayerInfoSerializer.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.PlayerSkinConfiguration.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.PlayerSkinConfiguration.d.ts new file mode 100644 index 00000000..56fd84ef --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.PlayerSkinConfiguration.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.ServerConnection.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.ServerConnection.d.ts new file mode 100644 index 00000000..10a7ef29 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.ServerConnection.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.ServerConnector.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.ServerConnector.d.ts new file mode 100644 index 00000000..b2be51bf --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.ServerConnector.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.UserConnection.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.UserConnection.d.ts new file mode 100644 index 00000000..6d14aeaf --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.UserConnection.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.Util.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.Util.d.ts new file mode 100644 index 00000000..0296a623 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.Util.d.ts @@ -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; + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.AbstractReconnectHandler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.AbstractReconnectHandler.d.ts new file mode 100644 index 00000000..20f553ff --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.AbstractReconnectHandler.d.ts @@ -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*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.Callback.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.Callback.d.ts new file mode 100644 index 00000000..ff1bcd1e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.Callback.d.ts @@ -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; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ChatColor.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ChatColor.d.ts new file mode 100644 index 00000000..f264d4c2 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ChatColor.d.ts @@ -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*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ChatMessageType.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ChatMessageType.d.ts new file mode 100644 index 00000000..da5a8806 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ChatMessageType.d.ts @@ -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*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.CommandSender.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.CommandSender.d.ts new file mode 100644 index 00000000..21c9e09f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.CommandSender.d.ts @@ -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; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.Favicon.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.Favicon.d.ts new file mode 100644 index 00000000..e636df1b --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.Favicon.d.ts @@ -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*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ProxyConfig.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ProxyConfig.d.ts new file mode 100644 index 00000000..e0e42913 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ProxyConfig.d.ts @@ -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*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ProxyServer.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ProxyServer.d.ts new file mode 100644 index 00000000..7d6b07f6 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ProxyServer.d.ts @@ -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*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ReconnectHandler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ReconnectHandler.d.ts new file mode 100644 index 00000000..86333097 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ReconnectHandler.d.ts @@ -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; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.Builder.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.Builder.d.ts new file mode 100644 index 00000000..fa8b9fcb --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.Builder.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.Result.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.Result.d.ts new file mode 100644 index 00000000..bc10a104 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.Result.d.ts @@ -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*/; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.d.ts new file mode 100644 index 00000000..f0261306 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerConnectRequest.d.ts @@ -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() + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.ModInfo.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.ModInfo.d.ts new file mode 100644 index 00000000..6a10b552 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.ModInfo.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.ModItem.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.ModItem.d.ts new file mode 100644 index 00000000..ef96bcd6 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.ModItem.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.PlayerInfo.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.PlayerInfo.d.ts new file mode 100644 index 00000000..97de8ec8 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.PlayerInfo.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.Players.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.Players.d.ts new file mode 100644 index 00000000..d3dfd0c8 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.Players.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.Protocol.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.Protocol.d.ts new file mode 100644 index 00000000..68615c74 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.Protocol.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.d.ts new file mode 100644 index 00000000..45dca405 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.ServerPing.d.ts @@ -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; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.SkinConfiguration.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.SkinConfiguration.d.ts new file mode 100644 index 00000000..5449ef1d --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.SkinConfiguration.d.ts @@ -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; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.Title.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.Title.d.ts new file mode 100644 index 00000000..efdf5b3d --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.Title.d.ts @@ -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*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.BaseComponent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.BaseComponent.d.ts new file mode 100644 index 00000000..2e34f37f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.BaseComponent.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ClickEvent.Action.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ClickEvent.Action.d.ts new file mode 100644 index 00000000..2684d2ec --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ClickEvent.Action.d.ts @@ -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*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ClickEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ClickEvent.d.ts new file mode 100644 index 00000000..95f7cf15 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ClickEvent.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention.d.ts new file mode 100644 index 00000000..b7e4b131 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention.d.ts @@ -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*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.Joiner.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.Joiner.d.ts new file mode 100644 index 00000000..3003bafe --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.Joiner.d.ts @@ -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*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.d.ts new file mode 100644 index 00000000..e67537be --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ComponentBuilder.d.ts @@ -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[]*/; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.HoverEvent.Action.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.HoverEvent.Action.d.ts new file mode 100644 index 00000000..608f430d --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.HoverEvent.Action.d.ts @@ -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*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.HoverEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.HoverEvent.d.ts new file mode 100644 index 00000000..3cfff709 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.HoverEvent.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.KeybindComponent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.KeybindComponent.d.ts new file mode 100644 index 00000000..c90d430e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.KeybindComponent.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.Keybinds.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.Keybinds.d.ts new file mode 100644 index 00000000..514c58c4 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.Keybinds.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ScoreComponent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ScoreComponent.d.ts new file mode 100644 index 00000000..686fb6ac --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.ScoreComponent.d.ts @@ -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.
+ * 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.
+ * 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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.SelectorComponent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.SelectorComponent.d.ts new file mode 100644 index 00000000..2c97c505 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.SelectorComponent.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.TextComponent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.TextComponent.d.ts new file mode 100644 index 00000000..a8300d1c --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.TextComponent.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.TranslatableComponent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.TranslatableComponent.d.ts new file mode 100644 index 00000000..e331e338 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.chat.TranslatableComponent.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ConfigurationAdapter.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ConfigurationAdapter.d.ts new file mode 100644 index 00000000..2dd74257 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ConfigurationAdapter.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ListenerInfo.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ListenerInfo.d.ts new file mode 100644 index 00000000..6d3aa2bb --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ListenerInfo.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ServerInfo.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ServerInfo.d.ts new file mode 100644 index 00000000..27266a74 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.config.ServerInfo.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ConnectedPlayer.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ConnectedPlayer.d.ts new file mode 100644 index 00000000..cc601c49 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ConnectedPlayer.d.ts @@ -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 { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Connection.Unsafe.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Connection.Unsafe.d.ts new file mode 100644 index 00000000..41ae5065 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Connection.Unsafe.d.ts @@ -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; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Connection.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Connection.d.ts new file mode 100644 index 00000000..0a5713fd --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Connection.d.ts @@ -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*/; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.PendingConnection.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.PendingConnection.d.ts new file mode 100644 index 00000000..cce36bb6 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.PendingConnection.d.ts @@ -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. + *
+ * See {@link #setOnlineMode(boolean)} for a description of how this option + * works. + */ + // @ts-ignore + isOnlineMode(): boolean; + /** + * Set this connection's online mode. + *
+ * 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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode.d.ts new file mode 100644 index 00000000..9303b467 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.ChatMode.d.ts @@ -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*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.MainHand.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.MainHand.d.ts new file mode 100644 index 00000000..d90ce85f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.MainHand.d.ts @@ -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*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.d.ts new file mode 100644 index 00000000..bb6a0347 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.ProxiedPlayer.d.ts @@ -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. + *

+ * 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 + * false even if the user is a FML user, as Bungee can only + * determine this information if a handshake successfully completes. + *

+ */ + // @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. + *

+ * Consumers of this API should be aware that an empty mod list does + * not 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. + *

+ *

+ * 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. + *

+ */ + // @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*/; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Server.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Server.d.ts new file mode 100644 index 00000000..0e2ae60b --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.connection.Server.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.AsyncEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.AsyncEvent.d.ts new file mode 100644 index 00000000..d43f6f6c --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.AsyncEvent.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ChatEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ChatEvent.d.ts new file mode 100644 index 00000000..8c7c6c7e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ChatEvent.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.LoginEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.LoginEvent.d.ts new file mode 100644 index 00000000..4fade5c7 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.LoginEvent.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PermissionCheckEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PermissionCheckEvent.d.ts new file mode 100644 index 00000000..db814a62 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PermissionCheckEvent.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PlayerDisconnectEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PlayerDisconnectEvent.d.ts new file mode 100644 index 00000000..2a6028fa --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PlayerDisconnectEvent.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PlayerHandshakeEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PlayerHandshakeEvent.d.ts new file mode 100644 index 00000000..6aef4682 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PlayerHandshakeEvent.d.ts @@ -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) + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PluginMessageEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PluginMessageEvent.d.ts new file mode 100644 index 00000000..10e53c94 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PluginMessageEvent.d.ts @@ -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) + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PostLoginEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PostLoginEvent.d.ts new file mode 100644 index 00000000..e0cc5c2b --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PostLoginEvent.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PreLoginEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PreLoginEvent.d.ts new file mode 100644 index 00000000..a868a5c1 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.PreLoginEvent.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ProxyPingEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ProxyPingEvent.d.ts new file mode 100644 index 00000000..018f2702 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ProxyPingEvent.d.ts @@ -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*/) + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ProxyReloadEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ProxyReloadEvent.d.ts new file mode 100644 index 00000000..afad3e97 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ProxyReloadEvent.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectEvent.Reason.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectEvent.Reason.d.ts new file mode 100644 index 00000000..e96b6f05 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectEvent.Reason.d.ts @@ -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*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectEvent.d.ts new file mode 100644 index 00000000..d4158026 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectEvent.d.ts @@ -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*/) + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectedEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectedEvent.d.ts new file mode 100644 index 00000000..8e45152e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerConnectedEvent.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerDisconnectEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerDisconnectEvent.d.ts new file mode 100644 index 00000000..0f64623f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerDisconnectEvent.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerKickEvent.State.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerKickEvent.State.d.ts new file mode 100644 index 00000000..bfba335a --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerKickEvent.State.d.ts @@ -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*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerKickEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerKickEvent.d.ts new file mode 100644 index 00000000..6a578a5c --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerKickEvent.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerSwitchEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerSwitchEvent.d.ts new file mode 100644 index 00000000..cdd419ba --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.ServerSwitchEvent.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.SettingsChangedEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.SettingsChangedEvent.d.ts new file mode 100644 index 00000000..fd80a2bf --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.SettingsChangedEvent.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TabCompleteEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TabCompleteEvent.d.ts new file mode 100644 index 00000000..97fedb9b --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TabCompleteEvent.d.ts @@ -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) + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TabCompleteResponseEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TabCompleteResponseEvent.d.ts new file mode 100644 index 00000000..2da8d941 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TabCompleteResponseEvent.d.ts @@ -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) + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TargetedEvent.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TargetedEvent.d.ts new file mode 100644 index 00000000..e94cef2a --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.event.TargetedEvent.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Cancellable.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Cancellable.d.ts new file mode 100644 index 00000000..aaa8d320 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Cancellable.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Command.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Command.d.ts new file mode 100644 index 00000000..feddcd9f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Command.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Event.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Event.d.ts new file mode 100644 index 00000000..e137a22a --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Event.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Listener.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Listener.d.ts new file mode 100644 index 00000000..2cca67bf --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Listener.d.ts @@ -0,0 +1,13 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace api { + namespace plugin { + // @ts-ignore + interface Listener { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Plugin.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Plugin.d.ts new file mode 100644 index 00000000..5bdeec7a --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.Plugin.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginClassloader.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginClassloader.d.ts new file mode 100644 index 00000000..30fbb9da --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginClassloader.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginDescription.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginDescription.d.ts new file mode 100644 index 00000000..06d8353f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginDescription.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginLogger.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginLogger.d.ts new file mode 100644 index 00000000..88ba5c8a --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginLogger.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginManager.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginManager.d.ts new file mode 100644 index 00000000..0d251ec8 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.PluginManager.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.TabExecutor.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.TabExecutor.d.ts new file mode 100644 index 00000000..b78197ca --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.plugin.TabExecutor.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.GroupedThreadFactory.BungeeGroup.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.GroupedThreadFactory.BungeeGroup.d.ts new file mode 100644 index 00000000..3f5241b7 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.GroupedThreadFactory.BungeeGroup.d.ts @@ -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 { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.GroupedThreadFactory.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.GroupedThreadFactory.d.ts new file mode 100644 index 00000000..ba6965c6 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.GroupedThreadFactory.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.ScheduledTask.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.ScheduledTask.d.ts new file mode 100644 index 00000000..e927fb69 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.ScheduledTask.d.ts @@ -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; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.TaskScheduler.Unsafe.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.TaskScheduler.Unsafe.d.ts new file mode 100644 index 00000000..705c0b57 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.TaskScheduler.Unsafe.d.ts @@ -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; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.TaskScheduler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.TaskScheduler.d.ts new file mode 100644 index 00000000..818b9cee --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.scheduler.TaskScheduler.d.ts @@ -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*/; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Objective.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Objective.d.ts new file mode 100644 index 00000000..14e85b5a --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Objective.d.ts @@ -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() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Position.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Position.d.ts new file mode 100644 index 00000000..35c7b96f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Position.d.ts @@ -0,0 +1,55 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace api { + namespace score { + // @ts-ignore + class Position extends java.lang.Enum { + // @ts-ignore + public static LIST: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static BELOW: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_BLACK: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_DARK_BLUE: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_DARK_GREEN: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_DARK_AQUA: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_DARK_RED: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_DARK_PURPLE: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_GOLD: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_GRAY: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_DARK_GRAY: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_BLUE: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_GREEN: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_AQUA: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_RED: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_LIGHT_PURPLE: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_YELLOW: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static SIDEBAR_WHITE: any /*net.md_5.bungee.api.score.Position*/; + // @ts-ignore + public static values(): any /*net.md_5.bungee.api.score.Position[]*/; + // @ts-ignore + public static valueOf(name: string): any /*net.md_5.bungee.api.score.Position*/; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Score.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Score.d.ts new file mode 100644 index 00000000..17fa397c --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Score.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace api { + namespace score { + // @ts-ignore + class Score extends java.lang.Object { + // @ts-ignore + constructor() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Scoreboard.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Scoreboard.d.ts new file mode 100644 index 00000000..e98ae70a --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Scoreboard.d.ts @@ -0,0 +1,41 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace api { + namespace score { + // @ts-ignore + class Scoreboard extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public getObjectives(): java.util.Collection; + // @ts-ignore + public getScores(): java.util.Collection; + // @ts-ignore + public getTeams(): java.util.Collection; + // @ts-ignore + public addObjective(objective: any /*net.md_5.bungee.api.score.Objective*/): void; + // @ts-ignore + public addScore(score: any /*net.md_5.bungee.api.score.Score*/): void; + // @ts-ignore + public getScore(name: string): any /*net.md_5.bungee.api.score.Score*/; + // @ts-ignore + public addTeam(team: any /*net.md_5.bungee.api.score.Team*/): void; + // @ts-ignore + public getTeam(name: string): any /*net.md_5.bungee.api.score.Team*/; + // @ts-ignore + public getObjective(name: string): any /*net.md_5.bungee.api.score.Objective*/; + // @ts-ignore + public removeObjective(objectiveName: string): void; + // @ts-ignore + public removeScore(scoreName: string): void; + // @ts-ignore + public removeTeam(teamName: string): void; + // @ts-ignore + public clear(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Team.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Team.d.ts new file mode 100644 index 00000000..bbc7c9f8 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.api.score.Team.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace api { + namespace score { + // @ts-ignore + class Team extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public getPlayers(): java.util.Collection; + // @ts-ignore + public addPlayer(name: string): void; + // @ts-ignore + public removePlayer(name: string): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.chat.BaseComponentSerializer.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.BaseComponentSerializer.d.ts new file mode 100644 index 00000000..2f3307b0 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.BaseComponentSerializer.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace chat { + // @ts-ignore + class BaseComponentSerializer extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected deserialize(object: JsonObject, component: any /*net.md_5.bungee.api.chat.BaseComponent*/, context: JsonDeserializationContext): void; + // @ts-ignore + protected serialize(object: JsonObject, component: any /*net.md_5.bungee.api.chat.BaseComponent*/, context: JsonSerializationContext): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.chat.ComponentSerializer.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.ComponentSerializer.d.ts new file mode 100644 index 00000000..07be3df4 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.ComponentSerializer.d.ts @@ -0,0 +1,23 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace chat { + // @ts-ignore + class ComponentSerializer extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static serializedComponents: java.lang.ThreadLocal; + // @ts-ignore + public static parse(json: string): any /*net.md_5.bungee.api.chat.BaseComponent[]*/; + // @ts-ignore + public static toString(component: any /*net.md_5.bungee.api.chat.BaseComponent*/): string; + // @ts-ignore + public static toString(components: any /*net.md_5.bungee.api.chat.BaseComponent*/): string; + // @ts-ignore + public deserialize(json: JsonElement, typeOfT: java.lang.reflect.Type, context: JsonDeserializationContext): any /*net.md_5.bungee.api.chat.BaseComponent*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.chat.KeybindComponentSerializer.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.KeybindComponentSerializer.d.ts new file mode 100644 index 00000000..7f051032 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.KeybindComponentSerializer.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace chat { + // @ts-ignore + class KeybindComponentSerializer extends net.md_5.bungee.chat.BaseComponentSerializer { + // @ts-ignore + constructor() + // @ts-ignore + public deserialize(json: JsonElement, typeOfT: java.lang.reflect.Type, context: JsonDeserializationContext): any /*net.md_5.bungee.api.chat.KeybindComponent*/; + // @ts-ignore + public serialize(src: any /*net.md_5.bungee.api.chat.KeybindComponent*/, typeOfSrc: java.lang.reflect.Type, context: JsonSerializationContext): JsonElement; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.chat.ScoreComponentSerializer.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.ScoreComponentSerializer.d.ts new file mode 100644 index 00000000..308321bf --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.ScoreComponentSerializer.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace chat { + // @ts-ignore + class ScoreComponentSerializer extends net.md_5.bungee.chat.BaseComponentSerializer { + // @ts-ignore + constructor() + // @ts-ignore + public deserialize(element: JsonElement, type: java.lang.reflect.Type, context: JsonDeserializationContext): any /*net.md_5.bungee.api.chat.ScoreComponent*/; + // @ts-ignore + public serialize(component: any /*net.md_5.bungee.api.chat.ScoreComponent*/, type: java.lang.reflect.Type, context: JsonSerializationContext): JsonElement; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.chat.SelectorComponentSerializer.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.SelectorComponentSerializer.d.ts new file mode 100644 index 00000000..058ab351 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.SelectorComponentSerializer.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace chat { + // @ts-ignore + class SelectorComponentSerializer extends net.md_5.bungee.chat.BaseComponentSerializer { + // @ts-ignore + constructor() + // @ts-ignore + public deserialize(element: JsonElement, type: java.lang.reflect.Type, context: JsonDeserializationContext): any /*net.md_5.bungee.api.chat.SelectorComponent*/; + // @ts-ignore + public serialize(component: any /*net.md_5.bungee.api.chat.SelectorComponent*/, type: java.lang.reflect.Type, context: JsonSerializationContext): JsonElement; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.chat.TextComponentSerializer.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.TextComponentSerializer.d.ts new file mode 100644 index 00000000..4b94e649 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.TextComponentSerializer.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace chat { + // @ts-ignore + class TextComponentSerializer extends net.md_5.bungee.chat.BaseComponentSerializer { + // @ts-ignore + constructor() + // @ts-ignore + public deserialize(json: JsonElement, typeOfT: java.lang.reflect.Type, context: JsonDeserializationContext): any /*net.md_5.bungee.api.chat.TextComponent*/; + // @ts-ignore + public serialize(src: any /*net.md_5.bungee.api.chat.TextComponent*/, typeOfSrc: java.lang.reflect.Type, context: JsonSerializationContext): JsonElement; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.chat.TranslatableComponentSerializer.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.TranslatableComponentSerializer.d.ts new file mode 100644 index 00000000..f13b3008 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.TranslatableComponentSerializer.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace chat { + // @ts-ignore + class TranslatableComponentSerializer extends net.md_5.bungee.chat.BaseComponentSerializer { + // @ts-ignore + constructor() + // @ts-ignore + public deserialize(json: JsonElement, typeOfT: java.lang.reflect.Type, context: JsonDeserializationContext): any /*net.md_5.bungee.api.chat.TranslatableComponent*/; + // @ts-ignore + public serialize(src: any /*net.md_5.bungee.api.chat.TranslatableComponent*/, typeOfSrc: java.lang.reflect.Type, context: JsonSerializationContext): JsonElement; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.chat.TranslationRegistry.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.TranslationRegistry.d.ts new file mode 100644 index 00000000..76122fc1 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.chat.TranslationRegistry.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace chat { + // @ts-ignore + class TranslationRegistry extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static INSTANCE: any /*net.md_5.bungee.chat.TranslationRegistry*/; + // @ts-ignore + public translate(s: string): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandBungee.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandBungee.d.ts new file mode 100644 index 00000000..ec803769 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandBungee.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace command { + // @ts-ignore + class CommandBungee extends Command { + // @ts-ignore + constructor() + // @ts-ignore + public execute(sender: CommandSender, args: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandEnd.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandEnd.d.ts new file mode 100644 index 00000000..3cf72380 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandEnd.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace command { + // @ts-ignore + class CommandEnd extends Command { + // @ts-ignore + constructor() + // @ts-ignore + public execute(sender: CommandSender, args: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandIP.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandIP.d.ts new file mode 100644 index 00000000..cb3dbe05 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandIP.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace command { + // @ts-ignore + class CommandIP extends PlayerCommand { + // @ts-ignore + constructor() + // @ts-ignore + public execute(sender: CommandSender, args: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandPerms.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandPerms.d.ts new file mode 100644 index 00000000..ec08e295 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandPerms.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace command { + // @ts-ignore + class CommandPerms extends Command { + // @ts-ignore + constructor() + // @ts-ignore + public execute(sender: CommandSender, args: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandReload.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandReload.d.ts new file mode 100644 index 00000000..6aac37e9 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.command.CommandReload.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace command { + // @ts-ignore + class CommandReload extends Command { + // @ts-ignore + constructor() + // @ts-ignore + public execute(sender: CommandSender, args: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.command.ConsoleCommandCompleter.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.command.ConsoleCommandCompleter.d.ts new file mode 100644 index 00000000..9e4e37be --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.command.ConsoleCommandCompleter.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace command { + // @ts-ignore + class ConsoleCommandCompleter extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public complete(buffer: string, cursor: number, candidates: java.util.List): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.command.ConsoleCommandSender.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.command.ConsoleCommandSender.d.ts new file mode 100644 index 00000000..b2917801 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.command.ConsoleCommandSender.d.ts @@ -0,0 +1,35 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace command { + // @ts-ignore + class ConsoleCommandSender extends java.lang.Object { + // @ts-ignore + constructor() + // @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 getName(): string; + // @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; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.command.PlayerCommand.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.command.PlayerCommand.d.ts new file mode 100644 index 00000000..9c80f56f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.command.PlayerCommand.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace command { + // @ts-ignore + abstract class PlayerCommand extends net.md_5.bungee.api.plugin.Command implements net.md_5.bungee.api.plugin.TabExecutor { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, permission: string, aliases: string) + // @ts-ignore + public onTabComplete(sender: any /*net.md_5.bungee.api.CommandSender*/, args: string): java.lang.Iterable; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.compress.CompressFactory.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.compress.CompressFactory.d.ts new file mode 100644 index 00000000..532600d4 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.compress.CompressFactory.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace compress { + // @ts-ignore + class CompressFactory extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static zlib: any; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.conf.Configuration.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.conf.Configuration.d.ts new file mode 100644 index 00000000..2bf046b1 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.conf.Configuration.d.ts @@ -0,0 +1,19 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace conf { + // @ts-ignore + class Configuration extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public load(): void; + // @ts-ignore + public getFavicon(): string; + // @ts-ignore + public getFaviconObject(): Favicon; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.conf.YamlConfig.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.conf.YamlConfig.d.ts new file mode 100644 index 00000000..7b35ff82 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.conf.YamlConfig.d.ts @@ -0,0 +1,31 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace conf { + // @ts-ignore + class YamlConfig extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public load(): void; + // @ts-ignore + public getInt(path: string, def: number): number; + // @ts-ignore + public getString(path: string, def: string): string; + // @ts-ignore + public getBoolean(path: string, def: boolean): boolean; + // @ts-ignore + public getServers(): java.util.Map; + // @ts-ignore + public getListeners(): java.util.Collection; + // @ts-ignore + public getGroups(player: string): java.util.Collection; + // @ts-ignore + public getList(path: string, def: java.util.Collection): java.util.Collection; + // @ts-ignore + public getPermissions(group: string): java.util.Collection; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.config.Configuration.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.config.Configuration.d.ts new file mode 100644 index 00000000..df5b680c --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.config.Configuration.d.ts @@ -0,0 +1,90 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace config { + // @ts-ignore + class Configuration extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(defaults: any /*net.md_5.bungee.config.Configuration*/) + // @ts-ignore + public get(path: string, def: java.lang.Object): java.lang.Object; + // @ts-ignore + public contains(path: string): boolean; + // @ts-ignore + public get(path: string): java.lang.Object; + // @ts-ignore + public getDefault(path: string): java.lang.Object; + // @ts-ignore + public set(path: string, value: java.lang.Object): void; + // @ts-ignore + public getSection(path: string): any /*net.md_5.bungee.config.Configuration*/; + /** + * Gets keys, not deep by default. + */ + // @ts-ignore + public getKeys(): java.util.Collection; + // @ts-ignore + public getByte(path: string): number; + // @ts-ignore + public getByte(path: string, def: number): number; + // @ts-ignore + public getByteList(path: string): java.util.List; + // @ts-ignore + public getShort(path: string): number; + // @ts-ignore + public getShort(path: string, def: number): number; + // @ts-ignore + public getShortList(path: string): java.util.List; + // @ts-ignore + public getInt(path: string): number; + // @ts-ignore + public getInt(path: string, def: number): number; + // @ts-ignore + public getIntList(path: string): java.util.List; + // @ts-ignore + public getLong(path: string): number; + // @ts-ignore + public getLong(path: string, def: number): number; + // @ts-ignore + public getLongList(path: string): java.util.List; + // @ts-ignore + public getFloat(path: string): number; + // @ts-ignore + public getFloat(path: string, def: number): number; + // @ts-ignore + public getFloatList(path: string): java.util.List; + // @ts-ignore + public getDouble(path: string): number; + // @ts-ignore + public getDouble(path: string, def: number): number; + // @ts-ignore + public getDoubleList(path: string): java.util.List; + // @ts-ignore + public getBoolean(path: string): boolean; + // @ts-ignore + public getBoolean(path: string, def: boolean): boolean; + // @ts-ignore + public getBooleanList(path: string): java.util.List; + // @ts-ignore + public getChar(path: string): string; + // @ts-ignore + public getChar(path: string, def: string): string; + // @ts-ignore + public getCharList(path: string): java.util.List; + // @ts-ignore + public getString(path: string): string; + // @ts-ignore + public getString(path: string, def: string): string; + // @ts-ignore + public getStringList(path: string): java.util.List; + // @ts-ignore + public getList(path: string): java.util.List; + // @ts-ignore + public getList(path: string, def: java.util.List): java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.config.ConfigurationProvider.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.config.ConfigurationProvider.d.ts new file mode 100644 index 00000000..1777f254 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.config.ConfigurationProvider.d.ts @@ -0,0 +1,19 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace config { + // @ts-ignore + abstract class ConfigurationProvider extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static getProvider(provider: java.lang.Class): any /*net.md_5.bungee.config.ConfigurationProvider*/; + // @ts-ignore + public abstract save(config: any /*net.md_5.bungee.config.Configuration*/, file: java.io.File): void; + // @ts-ignore + public abstract load(file: java.io.File): any /*net.md_5.bungee.config.Configuration*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.config.YamlConfiguration.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.config.YamlConfiguration.d.ts new file mode 100644 index 00000000..f0411a26 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.config.YamlConfiguration.d.ts @@ -0,0 +1,33 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace config { + // @ts-ignore + class YamlConfiguration extends net.md_5.bungee.config.ConfigurationProvider { + // @ts-ignore + constructor() + // @ts-ignore + public save(config: any /*net.md_5.bungee.config.Configuration*/, file: java.io.File): void; + // @ts-ignore + public save(config: any /*net.md_5.bungee.config.Configuration*/, writer: java.io.Writer): void; + // @ts-ignore + public load(file: java.io.File): any /*net.md_5.bungee.config.Configuration*/; + // @ts-ignore + public load(file: java.io.File, defaults: any /*net.md_5.bungee.config.Configuration*/): any /*net.md_5.bungee.config.Configuration*/; + // @ts-ignore + public load(reader: java.io.Reader): any /*net.md_5.bungee.config.Configuration*/; + // @ts-ignore + public load(reader: java.io.Reader, defaults: any /*net.md_5.bungee.config.Configuration*/): any /*net.md_5.bungee.config.Configuration*/; + // @ts-ignore + public load(is: java.io.InputStream): any /*net.md_5.bungee.config.Configuration*/; + // @ts-ignore + public load(is: java.io.InputStream, defaults: any /*net.md_5.bungee.config.Configuration*/): any /*net.md_5.bungee.config.Configuration*/; + // @ts-ignore + public load(string: string): any /*net.md_5.bungee.config.Configuration*/; + // @ts-ignore + public load(string: string, defaults: any /*net.md_5.bungee.config.Configuration*/): any /*net.md_5.bungee.config.Configuration*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.connection.CancelSendSignal.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.CancelSendSignal.d.ts new file mode 100644 index 00000000..cdd12931 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.CancelSendSignal.d.ts @@ -0,0 +1,19 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace connection { + // @ts-ignore + class CancelSendSignal extends java.lang.Error { + // @ts-ignore + constructor() + // @ts-ignore + public static INSTANCE: any /*net.md_5.bungee.connection.CancelSendSignal*/; + // @ts-ignore + public initCause(cause: java.lang.Throwable): java.lang.Throwable; + // @ts-ignore + public fillInStackTrace(): java.lang.Throwable; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.connection.DownstreamBridge.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.DownstreamBridge.d.ts new file mode 100644 index 00000000..5504287f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.DownstreamBridge.d.ts @@ -0,0 +1,49 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace connection { + // @ts-ignore + class DownstreamBridge extends net.md_5.bungee.netty.PacketHandler { + // @ts-ignore + constructor() + // @ts-ignore + public exception(t: java.lang.Throwable): void; + // @ts-ignore + public disconnected(channel: any /*net.md_5.bungee.netty.ChannelWrapper*/): void; + // @ts-ignore + public shouldHandle(packet: PacketWrapper): boolean; + // @ts-ignore + public handle(packet: PacketWrapper): void; + // @ts-ignore + public handle(alive: KeepAlive): void; + // @ts-ignore + public handle(playerList: PlayerListItem): void; + // @ts-ignore + public handle(objective: ScoreboardObjective): void; + // @ts-ignore + public handle(score: ScoreboardScore): void; + // @ts-ignore + public handle(displayScoreboard: ScoreboardDisplay): void; + // @ts-ignore + public handle(team: any /*net.md_5.bungee.protocol.packet.Team*/): void; + // @ts-ignore + public handle(pluginMessage: PluginMessage): void; + // @ts-ignore + public handle(kick: Kick): void; + // @ts-ignore + public handle(setCompression: SetCompression): void; + // @ts-ignore + public handle(tabCompleteResponse: TabCompleteResponse): void; + // @ts-ignore + public handle(bossBar: BossBar): void; + // @ts-ignore + public handle(respawn: Respawn): void; + // @ts-ignore + public handle(commands: Commands): void; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.connection.InitialHandler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.InitialHandler.d.ts new file mode 100644 index 00000000..d587f518 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.InitialHandler.d.ts @@ -0,0 +1,63 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace connection { + // @ts-ignore + class InitialHandler extends net.md_5.bungee.netty.PacketHandler { + // @ts-ignore + constructor() + // @ts-ignore + public shouldHandle(packet: PacketWrapper): boolean; + // @ts-ignore + public connected(channel: any /*net.md_5.bungee.netty.ChannelWrapper*/): void; + // @ts-ignore + public exception(t: java.lang.Throwable): void; + // @ts-ignore + public handle(packet: PacketWrapper): void; + // @ts-ignore + public handle(pluginMessage: PluginMessage): void; + // @ts-ignore + public handle(legacyHandshake: LegacyHandshake): void; + // @ts-ignore + public handle(ping: LegacyPing): void; + // @ts-ignore + public handle(statusRequest: StatusRequest): void; + // @ts-ignore + public handle(ping: PingPacket): void; + // @ts-ignore + public handle(handshake: Handshake): void; + // @ts-ignore + public handle(loginRequest: LoginRequest): void; + // @ts-ignore + public handle(encryptResponse: EncryptionResponse): void; + // @ts-ignore + public handle(response: LoginPayloadResponse): 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 getName(): string; + // @ts-ignore + public getVersion(): number; + // @ts-ignore + public getAddress(): java.net.InetSocketAddress; + // @ts-ignore + public unsafe(): Unsafe; + // @ts-ignore + public setOnlineMode(onlineMode: boolean): void; + // @ts-ignore + public setUniqueId(uuid: java.util.UUID): void; + // @ts-ignore + public getUUID(): string; + // @ts-ignore + public toString(): string; + // @ts-ignore + public isConnected(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.connection.LoginResult.Property.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.LoginResult.Property.d.ts new file mode 100644 index 00000000..749f2fd7 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.LoginResult.Property.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace connection { + namespace LoginResult { + // @ts-ignore + class Property extends java.lang.Object { + // @ts-ignore + constructor() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.connection.LoginResult.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.LoginResult.d.ts new file mode 100644 index 00000000..3217406e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.LoginResult.d.ts @@ -0,0 +1,13 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace connection { + // @ts-ignore + class LoginResult extends java.lang.Object { + // @ts-ignore + constructor() + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.connection.PingHandler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.PingHandler.d.ts new file mode 100644 index 00000000..1cb2e1e9 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.PingHandler.d.ts @@ -0,0 +1,23 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace connection { + // @ts-ignore + class PingHandler extends net.md_5.bungee.netty.PacketHandler { + // @ts-ignore + constructor() + // @ts-ignore + public connected(channel: any /*net.md_5.bungee.netty.ChannelWrapper*/): void; + // @ts-ignore + public exception(t: java.lang.Throwable): void; + // @ts-ignore + public handle(packet: PacketWrapper): void; + // @ts-ignore + public handle(statusResponse: StatusResponse): void; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.connection.UpstreamBridge.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.UpstreamBridge.d.ts new file mode 100644 index 00000000..8f14230e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.connection.UpstreamBridge.d.ts @@ -0,0 +1,35 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace connection { + // @ts-ignore + class UpstreamBridge extends net.md_5.bungee.netty.PacketHandler { + // @ts-ignore + constructor(bungee: ProxyServer, con: any /*net.md_5.bungee.UserConnection*/) + // @ts-ignore + public exception(t: java.lang.Throwable): void; + // @ts-ignore + public disconnected(channel: any /*net.md_5.bungee.netty.ChannelWrapper*/): void; + // @ts-ignore + public writabilityChanged(channel: any /*net.md_5.bungee.netty.ChannelWrapper*/): void; + // @ts-ignore + public shouldHandle(packet: PacketWrapper): boolean; + // @ts-ignore + public handle(packet: PacketWrapper): void; + // @ts-ignore + public handle(alive: KeepAlive): void; + // @ts-ignore + public handle(chat: Chat): void; + // @ts-ignore + public handle(tabComplete: TabCompleteRequest): void; + // @ts-ignore + public handle(settings: ClientSettings): void; + // @ts-ignore + public handle(pluginMessage: PluginMessage): void; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.entitymap.EntityMap.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.entitymap.EntityMap.d.ts new file mode 100644 index 00000000..355698a0 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.entitymap.EntityMap.d.ts @@ -0,0 +1,33 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace entitymap { + // @ts-ignore + abstract class EntityMap extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static getEntityMap(version: number): any /*net.md_5.bungee.entitymap.EntityMap*/; + // @ts-ignore + protected addRewrite(id: number, direction: any /*ProtocolConstants.Direction*/, varint: boolean): void; + // @ts-ignore + public rewriteServerbound(packet: ByteBuf, oldId: number, newId: number): void; + // @ts-ignore + public rewriteServerbound(packet: ByteBuf, oldId: number, newId: number, protocolVersion: number): void; + // @ts-ignore + public rewriteClientbound(packet: ByteBuf, oldId: number, newId: number): void; + // @ts-ignore + public rewriteClientbound(packet: ByteBuf, oldId: number, newId: number, protocolVersion: number): void; + // @ts-ignore + protected static rewriteInt(packet: ByteBuf, oldId: number, newId: number, offset: number): void; + // @ts-ignore + protected static rewriteVarInt(packet: ByteBuf, oldId: number, newId: number, offset: number): void; + // @ts-ignore + protected static rewriteMetaVarInt(packet: ByteBuf, oldId: number, newId: number, metaIndex: number): void; + // @ts-ignore + protected static rewriteMetaVarInt(packet: ByteBuf, oldId: number, newId: number, metaIndex: number, protocolVersion: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.event.EventBus.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.event.EventBus.d.ts new file mode 100644 index 00000000..45a33ae5 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.event.EventBus.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace event { + // @ts-ignore + class EventBus extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(logger: java.util.logging.Logger) + // @ts-ignore + public post(event: java.lang.Object): void; + // @ts-ignore + public register(listener: java.lang.Object): void; + // @ts-ignore + public unregister(listener: java.lang.Object): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.event.EventHandler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.event.EventHandler.d.ts new file mode 100644 index 00000000..65969209 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.event.EventHandler.d.ts @@ -0,0 +1,25 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace event { + // @ts-ignore + interface EventHandler { + /** + * Define the priority of the event handler. + *

+ * Event handlers are called in order of priority: + *

    + *
  1. LOWEST
  2. + *
  3. LOW
  4. + *
  5. NORMAL
  6. + *
  7. HIGH
  8. + *
  9. HIGHEST
  10. + *
+ */ + // @ts-ignore + priority(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.event.EventHandlerMethod.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.event.EventHandlerMethod.d.ts new file mode 100644 index 00000000..86836e8e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.event.EventHandlerMethod.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace event { + // @ts-ignore + class EventHandlerMethod extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public invoke(event: java.lang.Object): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.event.EventPriority.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.event.EventPriority.d.ts new file mode 100644 index 00000000..d70a6306 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.event.EventPriority.d.ts @@ -0,0 +1,23 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace event { + // @ts-ignore + class EventPriority extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static LOWEST: number; + // @ts-ignore + public static LOW: number; + // @ts-ignore + public static NORMAL: number; + // @ts-ignore + public static HIGH: number; + // @ts-ignore + public static HIGHEST: number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeClientHandler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeClientHandler.d.ts new file mode 100644 index 00000000..8b9df36a --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeClientHandler.d.ts @@ -0,0 +1,53 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace forge { + // @ts-ignore + class ForgeClientHandler extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Handles the Forge packet. + */ + // @ts-ignore + public handle(message: PluginMessage): void; + /** + * Receives a {@link PluginMessage} from ForgeServer to pass to Client. + */ + // @ts-ignore + public receive(message: PluginMessage): void; + /** + * Resets the client handshake state to HELLO, and, if we know the handshake + * has been completed before, send the reset packet. + */ + // @ts-ignore + public resetHandshake(): void; + /** + * Sends the server mod list to the client, or stores it for sending later. + */ + // @ts-ignore + public setServerModList(modList: PluginMessage): void; + /** + * Sends the server ID list to the client, or stores it for sending later. + */ + // @ts-ignore + public setServerIdList(idList: PluginMessage): void; + /** + * Returns whether the handshake is complete. + */ + // @ts-ignore + public isHandshakeComplete(): boolean; + // @ts-ignore + public setHandshakeComplete(): void; + /** + * Returns whether we know if the user is a forge user. In FML 1.8, a "FML" + * token is included in the initial handshake. We can use that to determine + * if the user is a Forge 1.8 user. + */ + // @ts-ignore + public isForgeUser(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeConstants.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeConstants.d.ts new file mode 100644 index 00000000..f28b23fe --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeConstants.d.ts @@ -0,0 +1,37 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace forge { + // @ts-ignore + class ForgeConstants extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static FORGE_REGISTER: string; + // @ts-ignore + public static FML_TAG: string; + // @ts-ignore + public static FML_HANDSHAKE_TAG: string; + // @ts-ignore + public static FML_REGISTER: string; + // @ts-ignore + public static FML_HANDSHAKE_TOKEN: string; + // @ts-ignore + public static FML_RESET_HANDSHAKE: PluginMessage; + // @ts-ignore + public static FML_ACK: PluginMessage; + // @ts-ignore + public static FML_START_CLIENT_HANDSHAKE: PluginMessage; + // @ts-ignore + public static FML_START_SERVER_HANDSHAKE: PluginMessage; + // @ts-ignore + public static FML_EMPTY_MOD_LIST: PluginMessage; + // @ts-ignore + public static FML_MIN_BUILD_VERSION: number; + // @ts-ignore + public static FML_HANDSHAKE_VERSION_REGEX: java.util.regex.Pattern; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeServerHandler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeServerHandler.d.ts new file mode 100644 index 00000000..28e7b3b6 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeServerHandler.d.ts @@ -0,0 +1,30 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace forge { + // @ts-ignore + class ForgeServerHandler extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Handles any {@link PluginMessage} that contains a FML Handshake or Forge + * Register. + */ + // @ts-ignore + public handle(message: PluginMessage): void; + /** + * Receives a {@link PluginMessage} from ForgeClientData to pass to Server. + */ + // @ts-ignore + public receive(message: PluginMessage): void; + /** + * Flags the server as a Forge server. Cannot be used to set a server back + * to vanilla (there would be no need) + */ + // @ts-ignore + public setServerAsForgeServer(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeServerHandshakeState.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeServerHandshakeState.d.ts new file mode 100644 index 00000000..41703c11 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeServerHandshakeState.d.ts @@ -0,0 +1,25 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace forge { + // @ts-ignore + class ForgeServerHandshakeState extends java.lang.Enum implements net.md_5.bungee.forge.IForgeServerPacketHandler { + // @ts-ignore + public static START: any /*net.md_5.bungee.forge.ForgeServerHandshakeState*/; + // @ts-ignore + public static HELLO: any /*net.md_5.bungee.forge.ForgeServerHandshakeState*/; + // @ts-ignore + public static WAITINGCACK: any /*net.md_5.bungee.forge.ForgeServerHandshakeState*/; + // @ts-ignore + public static COMPLETE: any /*net.md_5.bungee.forge.ForgeServerHandshakeState*/; + // @ts-ignore + public static DONE: any /*net.md_5.bungee.forge.ForgeServerHandshakeState*/; + // @ts-ignore + public static values(): any /*net.md_5.bungee.forge.ForgeServerHandshakeState[]*/; + // @ts-ignore + public static valueOf(name: string): any /*net.md_5.bungee.forge.ForgeServerHandshakeState*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeUtils.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeUtils.d.ts new file mode 100644 index 00000000..b3bd59ef --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.ForgeUtils.d.ts @@ -0,0 +1,28 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace forge { + // @ts-ignore + class ForgeUtils extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Gets the registered FML channels from the packet. + */ + // @ts-ignore + public static readRegisteredChannels(pluginMessage: PluginMessage): java.util.Set; + /** + * Gets the modlist from the packet. + */ + // @ts-ignore + public static readModList(pluginMessage: PluginMessage): java.util.Map; + /** + * Get the build number of FML from the packet. + */ + // @ts-ignore + public static getFmlBuildNumber(modList: java.util.Map): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.forge.IForgeClientPacketHandler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.IForgeClientPacketHandler.d.ts new file mode 100644 index 00000000..e459ba0c --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.IForgeClientPacketHandler.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace forge { + // @ts-ignore + interface IForgeClientPacketHandler { + /** + * Handles any {@link PluginMessage} packets. + */ + // @ts-ignore + handle(message: PluginMessage, con: any /*net.md_5.bungee.UserConnection*/): java.lang.Object; + /** + * Sends any {@link PluginMessage} packets. + */ + // @ts-ignore + send(message: PluginMessage, con: any /*net.md_5.bungee.UserConnection*/): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.forge.IForgeServerPacketHandler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.IForgeServerPacketHandler.d.ts new file mode 100644 index 00000000..16fc6192 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.forge.IForgeServerPacketHandler.d.ts @@ -0,0 +1,22 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace forge { + // @ts-ignore + interface IForgeServerPacketHandler { + /** + * Handles any {@link net.md_5.bungee.protocol.packet.PluginMessage} + * packets. + */ + // @ts-ignore + handle(message: PluginMessage, ch: any /*net.md_5.bungee.netty.ChannelWrapper*/): java.lang.Object; + /** + * Sends any {@link net.md_5.bungee.protocol.packet.PluginMessage} packets. + */ + // @ts-ignore + send(message: PluginMessage, con: any /*net.md_5.bungee.UserConnection*/): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.http.HttpClient.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.http.HttpClient.d.ts new file mode 100644 index 00000000..08b163e4 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.http.HttpClient.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace http { + // @ts-ignore + class HttpClient extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static TIMEOUT: number; + // @ts-ignore + public static get(url: string, eventLoop: EventLoop, callback: any): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.jni.NativeCode.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.NativeCode.d.ts new file mode 100644 index 00000000..3b92daa2 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.NativeCode.d.ts @@ -0,0 +1,19 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace jni { + // @ts-ignore + class NativeCode extends java.lang.Object { + // @ts-ignore + constructor(name: string, javaImpl: java.lang.Class, nativeImpl: java.lang.Class) + // @ts-ignore + public newInstance(): java.lang.Object; + // @ts-ignore + public load(): boolean; + // @ts-ignore + public static isSupported(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.jni.NativeCodeException.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.NativeCodeException.d.ts new file mode 100644 index 00000000..c3c44109 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.NativeCodeException.d.ts @@ -0,0 +1,13 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace jni { + // @ts-ignore + class NativeCodeException extends java.lang.Exception { + // @ts-ignore + constructor(message: string, reason: number) + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.jni.cipher.BungeeCipher.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.cipher.BungeeCipher.d.ts new file mode 100644 index 00000000..f5d8adea --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.cipher.BungeeCipher.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace jni { + namespace cipher { + // @ts-ignore + interface BungeeCipher { + // @ts-ignore + init(forEncryption: boolean, key: any /*javax.crypto.SecretKey*/): void; + // @ts-ignore + free(): void; + // @ts-ignore + cipher(input: ByteBuf, out: ByteBuf): void; + // @ts-ignore + cipher(ctx: ChannelHandlerContext, input: ByteBuf): ByteBuf; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.jni.cipher.JavaCipher.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.cipher.JavaCipher.d.ts new file mode 100644 index 00000000..d9ecba73 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.cipher.JavaCipher.d.ts @@ -0,0 +1,23 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace jni { + namespace cipher { + // @ts-ignore + class JavaCipher extends java.lang.Object implements net.md_5.bungee.jni.cipher.BungeeCipher { + // @ts-ignore + constructor() + // @ts-ignore + public init(forEncryption: boolean, key: any /*javax.crypto.SecretKey*/): void; + // @ts-ignore + public cipher(input: ByteBuf, out: ByteBuf): void; + // @ts-ignore + public cipher(ctx: ChannelHandlerContext, input: ByteBuf): ByteBuf; + // @ts-ignore + public free(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.jni.cipher.NativeCipher.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.cipher.NativeCipher.d.ts new file mode 100644 index 00000000..fbda3e7f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.cipher.NativeCipher.d.ts @@ -0,0 +1,23 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace jni { + namespace cipher { + // @ts-ignore + class NativeCipher extends java.lang.Object implements net.md_5.bungee.jni.cipher.BungeeCipher { + // @ts-ignore + constructor() + // @ts-ignore + public init(forEncryption: boolean, key: any /*javax.crypto.SecretKey*/): void; + // @ts-ignore + public free(): void; + // @ts-ignore + public cipher(input: ByteBuf, out: ByteBuf): void; + // @ts-ignore + public cipher(ctx: ChannelHandlerContext, input: ByteBuf): ByteBuf; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.BungeeZlib.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.BungeeZlib.d.ts new file mode 100644 index 00000000..3259d8d1 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.BungeeZlib.d.ts @@ -0,0 +1,19 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace jni { + namespace zlib { + // @ts-ignore + interface BungeeZlib { + // @ts-ignore + init(compress: boolean, level: number): void; + // @ts-ignore + free(): void; + // @ts-ignore + process(input: ByteBuf, out: ByteBuf): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.JavaZlib.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.JavaZlib.d.ts new file mode 100644 index 00000000..7fac5f63 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.JavaZlib.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace jni { + namespace zlib { + // @ts-ignore + class JavaZlib extends java.lang.Object implements net.md_5.bungee.jni.zlib.BungeeZlib { + // @ts-ignore + constructor() + // @ts-ignore + public init(compress: boolean, level: number): void; + // @ts-ignore + public free(): void; + // @ts-ignore + public process(input: ByteBuf, out: ByteBuf): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.NativeCompressImpl.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.NativeCompressImpl.d.ts new file mode 100644 index 00000000..b6b426cf --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.NativeCompressImpl.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace jni { + namespace zlib { + // @ts-ignore + class NativeCompressImpl extends java.lang.Object { + // @ts-ignore + constructor() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.NativeZlib.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.NativeZlib.d.ts new file mode 100644 index 00000000..8d393324 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.jni.zlib.NativeZlib.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace jni { + namespace zlib { + // @ts-ignore + class NativeZlib extends java.lang.Object implements net.md_5.bungee.jni.zlib.BungeeZlib { + // @ts-ignore + constructor() + // @ts-ignore + public init(compress: boolean, level: number): void; + // @ts-ignore + public free(): void; + // @ts-ignore + public process(input: ByteBuf, out: ByteBuf): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.log.BungeeLogger.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.log.BungeeLogger.d.ts new file mode 100644 index 00000000..84b3252e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.log.BungeeLogger.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace log { + // @ts-ignore + class BungeeLogger extends java.util.logging.Logger { + // @ts-ignore + constructor(loggerName: string, filePattern: string, reader: ConsoleReader) + // @ts-ignore + public log(record: java.util.logging.LogRecord): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.log.ColouredWriter.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.log.ColouredWriter.d.ts new file mode 100644 index 00000000..f52e05f5 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.log.ColouredWriter.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace log { + // @ts-ignore + class ColouredWriter extends java.util.logging.Handler { + // @ts-ignore + constructor(console: ConsoleReader) + // @ts-ignore + public print(s: string): void; + // @ts-ignore + public publish(record: java.util.logging.LogRecord): void; + // @ts-ignore + public flush(): void; + // @ts-ignore + public close(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.log.ConciseFormatter.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.log.ConciseFormatter.d.ts new file mode 100644 index 00000000..609f4a02 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.log.ConciseFormatter.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace log { + // @ts-ignore + class ConciseFormatter extends java.util.logging.Formatter { + // @ts-ignore + constructor() + // @ts-ignore + public format(record: java.util.logging.LogRecord): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.log.LogDispatcher.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.log.LogDispatcher.d.ts new file mode 100644 index 00000000..d07299d3 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.log.LogDispatcher.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace log { + // @ts-ignore + class LogDispatcher extends java.lang.Thread { + // @ts-ignore + constructor(logger: any /*net.md_5.bungee.log.BungeeLogger*/) + // @ts-ignore + public run(): void; + // @ts-ignore + public queue(record: java.util.logging.LogRecord): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.log.LoggingOutputStream.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.log.LoggingOutputStream.d.ts new file mode 100644 index 00000000..49c608f3 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.log.LoggingOutputStream.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace log { + // @ts-ignore + class LoggingOutputStream extends java.io.ByteArrayOutputStream { + // @ts-ignore + constructor() + // @ts-ignore + public flush(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.module.JenkinsModuleSource.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.module.JenkinsModuleSource.d.ts new file mode 100644 index 00000000..49e02532 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.module.JenkinsModuleSource.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace module { + // @ts-ignore + class JenkinsModuleSource extends java.lang.Object implements net.md_5.bungee.module.ModuleSource { + // @ts-ignore + constructor() + // @ts-ignore + public retrieve(module: any /*net.md_5.bungee.module.ModuleSpec*/, version: any /*net.md_5.bungee.module.ModuleVersion*/): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.module.ModuleManager.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.module.ModuleManager.d.ts new file mode 100644 index 00000000..4768560f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.module.ModuleManager.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace module { + // @ts-ignore + class ModuleManager extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public load(proxy: ProxyServer, moduleDirectory: java.io.File): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.module.ModuleSpec.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.module.ModuleSpec.d.ts new file mode 100644 index 00000000..3cee92a7 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.module.ModuleSpec.d.ts @@ -0,0 +1,13 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace module { + // @ts-ignore + class ModuleSpec extends java.lang.Object { + // @ts-ignore + constructor() + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.module.ModuleVersion.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.module.ModuleVersion.d.ts new file mode 100644 index 00000000..252df6f7 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.module.ModuleVersion.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace module { + // @ts-ignore + class ModuleVersion extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static parse(version: string): any /*net.md_5.bungee.module.ModuleVersion*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.netty.ChannelWrapper.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.netty.ChannelWrapper.d.ts new file mode 100644 index 00000000..21e1f270 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.netty.ChannelWrapper.d.ts @@ -0,0 +1,33 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace netty { + // @ts-ignore + class ChannelWrapper extends java.lang.Object { + // @ts-ignore + constructor(ctx: ChannelHandlerContext) + // @ts-ignore + public setProtocol(protocol: Protocol): void; + // @ts-ignore + public setVersion(protocol: number): void; + // @ts-ignore + public write(packet: java.lang.Object): void; + // @ts-ignore + public markClosed(): void; + // @ts-ignore + public close(): void; + // @ts-ignore + public close(packet: java.lang.Object): void; + // @ts-ignore + public delayedClose(kick: Kick): void; + // @ts-ignore + public addBefore(baseName: string, name: string, handler: ChannelHandler): void; + // @ts-ignore + public getHandle(): Channel; + // @ts-ignore + public setCompressionThreshold(compressionThreshold: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.netty.HandlerBoss.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.netty.HandlerBoss.d.ts new file mode 100644 index 00000000..9ceedfb6 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.netty.HandlerBoss.d.ts @@ -0,0 +1,25 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace netty { + // @ts-ignore + class HandlerBoss extends ChannelInboundHandlerAdapter { + // @ts-ignore + constructor() + // @ts-ignore + public setHandler(handler: any /*net.md_5.bungee.netty.PacketHandler*/): void; + // @ts-ignore + public channelActive(ctx: ChannelHandlerContext): void; + // @ts-ignore + public channelInactive(ctx: ChannelHandlerContext): void; + // @ts-ignore + public channelWritabilityChanged(ctx: ChannelHandlerContext): void; + // @ts-ignore + public channelRead(ctx: ChannelHandlerContext, msg: java.lang.Object): void; + // @ts-ignore + public exceptionCaught(ctx: ChannelHandlerContext, cause: java.lang.Throwable): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.netty.PacketHandler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.netty.PacketHandler.d.ts new file mode 100644 index 00000000..36b15391 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.netty.PacketHandler.d.ts @@ -0,0 +1,27 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace netty { + // @ts-ignore + abstract class PacketHandler extends net.md_5.bungee.protocol.AbstractPacketHandler { + // @ts-ignore + constructor() + // @ts-ignore + public abstract toString(): string; + // @ts-ignore + public shouldHandle(packet: PacketWrapper): boolean; + // @ts-ignore + public exception(t: java.lang.Throwable): void; + // @ts-ignore + public handle(packet: PacketWrapper): 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 writabilityChanged(channel: any /*net.md_5.bungee.netty.ChannelWrapper*/): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.netty.PipelineUtils.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.netty.PipelineUtils.d.ts new file mode 100644 index 00000000..7ceccf27 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.netty.PipelineUtils.d.ts @@ -0,0 +1,51 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace netty { + // @ts-ignore + class PipelineUtils extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static LISTENER: any; + // @ts-ignore + public static USER: any; + // @ts-ignore + public static TARGET: any; + // @ts-ignore + public static SERVER_CHILD: any; + // @ts-ignore + public static BASE: any /*net.md_5.bungee.netty.PipelineUtils.Base*/; + // @ts-ignore + public static TIMEOUT_HANDLER: string; + // @ts-ignore + public static PACKET_DECODER: string; + // @ts-ignore + public static PACKET_ENCODER: string; + // @ts-ignore + public static BOSS_HANDLER: string; + // @ts-ignore + public static ENCRYPT_HANDLER: string; + // @ts-ignore + public static DECRYPT_HANDLER: string; + // @ts-ignore + public static FRAME_DECODER: string; + // @ts-ignore + public static FRAME_PREPENDER: string; + // @ts-ignore + public static LEGACY_DECODER: string; + // @ts-ignore + public static LEGACY_KICKER: string; + // @ts-ignore + public static newEventLoopGroup(threads: number, factory: java.util.concurrent.ThreadFactory): EventLoopGroup; + // @ts-ignore + public static getServerChannel(): java.lang.Class; + // @ts-ignore + public static getChannel(): java.lang.Class; + // @ts-ignore + public static getDatagramChannel(): java.lang.Class; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.AbstractPacketHandler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.AbstractPacketHandler.d.ts new file mode 100644 index 00000000..37d5cbbe --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.AbstractPacketHandler.d.ts @@ -0,0 +1,81 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + // @ts-ignore + abstract class AbstractPacketHandler extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public handle(ping: any /*net.md_5.bungee.protocol.packet.LegacyPing*/): void; + // @ts-ignore + public handle(tabResponse: any /*net.md_5.bungee.protocol.packet.TabCompleteResponse*/): void; + // @ts-ignore + public handle(ping: any /*net.md_5.bungee.protocol.packet.PingPacket*/): void; + // @ts-ignore + public handle(statusRequest: any /*net.md_5.bungee.protocol.packet.StatusRequest*/): void; + // @ts-ignore + public handle(statusResponse: any /*net.md_5.bungee.protocol.packet.StatusResponse*/): void; + // @ts-ignore + public handle(handshake: any /*net.md_5.bungee.protocol.packet.Handshake*/): void; + // @ts-ignore + public handle(keepAlive: any /*net.md_5.bungee.protocol.packet.KeepAlive*/): void; + // @ts-ignore + public handle(login: any /*net.md_5.bungee.protocol.packet.Login*/): void; + // @ts-ignore + public handle(chat: any /*net.md_5.bungee.protocol.packet.Chat*/): void; + // @ts-ignore + public handle(respawn: any /*net.md_5.bungee.protocol.packet.Respawn*/): void; + // @ts-ignore + public handle(loginRequest: any /*net.md_5.bungee.protocol.packet.LoginRequest*/): void; + // @ts-ignore + public handle(settings: any /*net.md_5.bungee.protocol.packet.ClientSettings*/): void; + // @ts-ignore + public handle(clientStatus: any /*net.md_5.bungee.protocol.packet.ClientStatus*/): void; + // @ts-ignore + public handle(playerListItem: any /*net.md_5.bungee.protocol.packet.PlayerListItem*/): void; + // @ts-ignore + public handle(playerListHeaderFooter: any /*net.md_5.bungee.protocol.packet.PlayerListHeaderFooter*/): void; + // @ts-ignore + public handle(tabComplete: any /*net.md_5.bungee.protocol.packet.TabCompleteRequest*/): void; + // @ts-ignore + public handle(scoreboardObjective: any /*net.md_5.bungee.protocol.packet.ScoreboardObjective*/): void; + // @ts-ignore + public handle(scoreboardScore: any /*net.md_5.bungee.protocol.packet.ScoreboardScore*/): void; + // @ts-ignore + public handle(encryptionRequest: any /*net.md_5.bungee.protocol.packet.EncryptionRequest*/): void; + // @ts-ignore + public handle(displayScoreboard: any /*net.md_5.bungee.protocol.packet.ScoreboardDisplay*/): void; + // @ts-ignore + public handle(team: any /*net.md_5.bungee.protocol.packet.Team*/): void; + // @ts-ignore + public handle(title: any /*net.md_5.bungee.protocol.packet.Title*/): void; + // @ts-ignore + public handle(pluginMessage: any /*net.md_5.bungee.protocol.packet.PluginMessage*/): void; + // @ts-ignore + public handle(kick: any /*net.md_5.bungee.protocol.packet.Kick*/): void; + // @ts-ignore + public handle(encryptionResponse: any /*net.md_5.bungee.protocol.packet.EncryptionResponse*/): void; + // @ts-ignore + public handle(loginSuccess: any /*net.md_5.bungee.protocol.packet.LoginSuccess*/): void; + // @ts-ignore + public handle(legacyHandshake: any /*net.md_5.bungee.protocol.packet.LegacyHandshake*/): void; + // @ts-ignore + public handle(setCompression: any /*net.md_5.bungee.protocol.packet.SetCompression*/): void; + // @ts-ignore + public handle(bossBar: any /*net.md_5.bungee.protocol.packet.BossBar*/): void; + // @ts-ignore + public handle(request: any /*net.md_5.bungee.protocol.packet.LoginPayloadRequest*/): void; + // @ts-ignore + public handle(response: any /*net.md_5.bungee.protocol.packet.LoginPayloadResponse*/): void; + // @ts-ignore + public handle(status: any /*net.md_5.bungee.protocol.packet.EntityStatus*/): void; + // @ts-ignore + public handle(commands: any /*net.md_5.bungee.protocol.packet.Commands*/): void; + // @ts-ignore + public handle(viewDistance: any /*net.md_5.bungee.protocol.packet.ViewDistance*/): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.BadPacketException.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.BadPacketException.d.ts new file mode 100644 index 00000000..e5624ad8 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.BadPacketException.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + // @ts-ignore + class BadPacketException extends java.lang.RuntimeException { + // @ts-ignore + constructor(message: string) + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.DefinedPacket.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.DefinedPacket.d.ts new file mode 100644 index 00000000..75a6756b --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.DefinedPacket.d.ts @@ -0,0 +1,61 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + // @ts-ignore + abstract class DefinedPacket extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static writeString(s: string, buf: ByteBuf): void; + // @ts-ignore + public static readString(buf: ByteBuf): string; + // @ts-ignore + public static writeArray(b: number, buf: ByteBuf): void; + // @ts-ignore + public static toArray(buf: ByteBuf): number[]; + // @ts-ignore + public static readArray(buf: ByteBuf): number[]; + // @ts-ignore + public static readArray(buf: ByteBuf, limit: number): number[]; + // @ts-ignore + public static readVarIntArray(buf: ByteBuf): number[]; + // @ts-ignore + public static writeStringArray(s: java.util.List, buf: ByteBuf): void; + // @ts-ignore + public static readStringArray(buf: ByteBuf): java.util.List; + // @ts-ignore + public static readVarInt(input: ByteBuf): number; + // @ts-ignore + public static readVarInt(input: ByteBuf, maxBytes: number): number; + // @ts-ignore + public static writeVarInt(value: number, output: ByteBuf): void; + // @ts-ignore + public static readVarShort(buf: ByteBuf): number; + // @ts-ignore + public static writeVarShort(buf: ByteBuf, toWrite: number): void; + // @ts-ignore + public static writeUUID(value: java.util.UUID, output: ByteBuf): void; + // @ts-ignore + public static readUUID(input: ByteBuf): java.util.UUID; + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public abstract handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + // @ts-ignore + public abstract equals(obj: java.lang.Object): boolean; + // @ts-ignore + public abstract hashCode(): number; + // @ts-ignore + public abstract toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.LegacyDecoder.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.LegacyDecoder.d.ts new file mode 100644 index 00000000..95bc2b6b --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.LegacyDecoder.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + // @ts-ignore + class LegacyDecoder extends ByteToMessageDecoder { + // @ts-ignore + constructor() + // @ts-ignore + protected decode(ctx: ChannelHandlerContext, input: ByteBuf, out: java.util.List): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.OverflowPacketException.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.OverflowPacketException.d.ts new file mode 100644 index 00000000..50bc33ba --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.OverflowPacketException.d.ts @@ -0,0 +1,13 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + // @ts-ignore + class OverflowPacketException extends java.lang.RuntimeException { + // @ts-ignore + constructor(message: string) + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.PacketWrapper.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.PacketWrapper.d.ts new file mode 100644 index 00000000..63650be1 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.PacketWrapper.d.ts @@ -0,0 +1,19 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + // @ts-ignore + class PacketWrapper extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public packet: any /*net.md_5.bungee.protocol.DefinedPacket*/; + // @ts-ignore + public buf: ByteBuf; + // @ts-ignore + public trySingleRelease(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.Protocol.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.Protocol.d.ts new file mode 100644 index 00000000..19b194ab --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.Protocol.d.ts @@ -0,0 +1,27 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + // @ts-ignore + class Protocol extends java.lang.Enum { + // @ts-ignore + public static HANDSHAKE: any /*net.md_5.bungee.protocol.Protocol*/; + // @ts-ignore + public static GAME: any /*net.md_5.bungee.protocol.Protocol*/; + // @ts-ignore + public static STATUS: any /*net.md_5.bungee.protocol.Protocol*/; + // @ts-ignore + public static LOGIN: any /*net.md_5.bungee.protocol.Protocol*/; + // @ts-ignore + public static MAX_PACKET_ID: number; + // @ts-ignore + public static values(): any /*net.md_5.bungee.protocol.Protocol[]*/; + // @ts-ignore + public static valueOf(name: string): any /*net.md_5.bungee.protocol.Protocol*/; + // @ts-ignore + public static main(args: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.ProtocolConstants.Direction.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.ProtocolConstants.Direction.d.ts new file mode 100644 index 00000000..57e2d77b --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.ProtocolConstants.Direction.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace ProtocolConstants { + // @ts-ignore + class Direction extends java.lang.Enum { + // @ts-ignore + public static TO_CLIENT: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/; + // @ts-ignore + public static TO_SERVER: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/; + // @ts-ignore + public static values(): any /*net.md_5.bungee.protocol.ProtocolConstants.Direction[]*/; + // @ts-ignore + public static valueOf(name: string): any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.ProtocolConstants.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.ProtocolConstants.d.ts new file mode 100644 index 00000000..c94c9ccd --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.ProtocolConstants.d.ts @@ -0,0 +1,59 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + // @ts-ignore + class ProtocolConstants extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static MINECRAFT_1_8: number; + // @ts-ignore + public static MINECRAFT_1_9: number; + // @ts-ignore + public static MINECRAFT_1_9_1: number; + // @ts-ignore + public static MINECRAFT_1_9_2: number; + // @ts-ignore + public static MINECRAFT_1_9_4: number; + // @ts-ignore + public static MINECRAFT_1_10: number; + // @ts-ignore + public static MINECRAFT_1_11: number; + // @ts-ignore + public static MINECRAFT_1_11_1: number; + // @ts-ignore + public static MINECRAFT_1_12: number; + // @ts-ignore + public static MINECRAFT_1_12_1: number; + // @ts-ignore + public static MINECRAFT_1_12_2: number; + // @ts-ignore + public static MINECRAFT_1_13: number; + // @ts-ignore + public static MINECRAFT_1_13_1: number; + // @ts-ignore + public static MINECRAFT_1_13_2: number; + // @ts-ignore + public static MINECRAFT_1_14: number; + // @ts-ignore + public static MINECRAFT_1_14_1: number; + // @ts-ignore + public static MINECRAFT_1_14_2: number; + // @ts-ignore + public static MINECRAFT_1_14_3: number; + // @ts-ignore + public static MINECRAFT_1_14_4: number; + // @ts-ignore + public static MINECRAFT_1_15: number; + // @ts-ignore + public static MINECRAFT_1_15_1: number; + // @ts-ignore + public static SUPPORTED_VERSIONS: java.util.List; + // @ts-ignore + public static SUPPORTED_VERSION_IDS: java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.Varint21FrameDecoder.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.Varint21FrameDecoder.d.ts new file mode 100644 index 00000000..fc44e0a9 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.Varint21FrameDecoder.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + // @ts-ignore + class Varint21FrameDecoder extends ByteToMessageDecoder { + // @ts-ignore + constructor() + // @ts-ignore + protected decode(ctx: ChannelHandlerContext, input: ByteBuf, out: java.util.List): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.BossBar.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.BossBar.d.ts new file mode 100644 index 00000000..2428bb4e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.BossBar.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class BossBar extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor(uuid: java.util.UUID, action: number) + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Chat.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Chat.d.ts new file mode 100644 index 00000000..805b4032 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Chat.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class Chat extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor(message: string) + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ClientSettings.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ClientSettings.d.ts new file mode 100644 index 00000000..77ed00d0 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ClientSettings.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class ClientSettings extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ClientStatus.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ClientStatus.d.ts new file mode 100644 index 00000000..03e3e45b --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ClientStatus.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class ClientStatus extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Commands.SuggestionRegistry.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Commands.SuggestionRegistry.d.ts new file mode 100644 index 00000000..f670802f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Commands.SuggestionRegistry.d.ts @@ -0,0 +1,19 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + namespace Commands { + // @ts-ignore + class SuggestionRegistry extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static ASK_SERVER: SuggestionProvider; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Commands.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Commands.d.ts new file mode 100644 index 00000000..c3fa1cb1 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Commands.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class Commands extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.EncryptionRequest.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.EncryptionRequest.d.ts new file mode 100644 index 00000000..749534d5 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.EncryptionRequest.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class EncryptionRequest extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.EncryptionResponse.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.EncryptionResponse.d.ts new file mode 100644 index 00000000..0b700107 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.EncryptionResponse.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class EncryptionResponse extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.EntityStatus.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.EntityStatus.d.ts new file mode 100644 index 00000000..178661dd --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.EntityStatus.d.ts @@ -0,0 +1,25 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class EntityStatus extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static DEBUG_INFO_REDUCED: number; + // @ts-ignore + public static DEBUG_INFO_NORMAL: number; + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Handshake.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Handshake.d.ts new file mode 100644 index 00000000..629c79ef --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Handshake.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class Handshake extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.KeepAlive.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.KeepAlive.d.ts new file mode 100644 index 00000000..82ab470e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.KeepAlive.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class KeepAlive extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Kick.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Kick.d.ts new file mode 100644 index 00000000..533fb03f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Kick.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class Kick extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LegacyHandshake.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LegacyHandshake.d.ts new file mode 100644 index 00000000..1f7f9b10 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LegacyHandshake.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class LegacyHandshake extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LegacyPing.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LegacyPing.d.ts new file mode 100644 index 00000000..6a0d9c85 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LegacyPing.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class LegacyPing extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Login.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Login.d.ts new file mode 100644 index 00000000..4238e050 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Login.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class Login extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginPayloadRequest.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginPayloadRequest.d.ts new file mode 100644 index 00000000..278a704d --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginPayloadRequest.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class LoginPayloadRequest extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginPayloadResponse.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginPayloadResponse.d.ts new file mode 100644 index 00000000..0473674a --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginPayloadResponse.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class LoginPayloadResponse extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginRequest.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginRequest.d.ts new file mode 100644 index 00000000..a9616ace --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginRequest.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class LoginRequest extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginSuccess.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginSuccess.d.ts new file mode 100644 index 00000000..8463cc61 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.LoginSuccess.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class LoginSuccess extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PingPacket.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PingPacket.d.ts new file mode 100644 index 00000000..a49009b1 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PingPacket.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class PingPacket extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListHeaderFooter.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListHeaderFooter.d.ts new file mode 100644 index 00000000..e5e72b4d --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListHeaderFooter.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class PlayerListHeaderFooter extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListItem.Action.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListItem.Action.d.ts new file mode 100644 index 00000000..be186d6f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListItem.Action.d.ts @@ -0,0 +1,29 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + namespace PlayerListItem { + // @ts-ignore + class Action extends java.lang.Enum { + // @ts-ignore + public static ADD_PLAYER: any /*net.md_5.bungee.protocol.packet.PlayerListItem.Action*/; + // @ts-ignore + public static UPDATE_GAMEMODE: any /*net.md_5.bungee.protocol.packet.PlayerListItem.Action*/; + // @ts-ignore + public static UPDATE_LATENCY: any /*net.md_5.bungee.protocol.packet.PlayerListItem.Action*/; + // @ts-ignore + public static UPDATE_DISPLAY_NAME: any /*net.md_5.bungee.protocol.packet.PlayerListItem.Action*/; + // @ts-ignore + public static REMOVE_PLAYER: any /*net.md_5.bungee.protocol.packet.PlayerListItem.Action*/; + // @ts-ignore + public static values(): any /*net.md_5.bungee.protocol.packet.PlayerListItem.Action[]*/; + // @ts-ignore + public static valueOf(name: string): any /*net.md_5.bungee.protocol.packet.PlayerListItem.Action*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListItem.Item.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListItem.Item.d.ts new file mode 100644 index 00000000..f4947f5f --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListItem.Item.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + namespace PlayerListItem { + // @ts-ignore + class Item extends java.lang.Object { + // @ts-ignore + constructor() + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListItem.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListItem.d.ts new file mode 100644 index 00000000..3c2526a5 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PlayerListItem.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class PlayerListItem extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PluginMessage.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PluginMessage.d.ts new file mode 100644 index 00000000..386c25b7 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.PluginMessage.d.ts @@ -0,0 +1,27 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class PluginMessage extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static MODERNISE: any; + // @ts-ignore + public static SHOULD_RELAY: any; + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + // @ts-ignore + public getStream(): java.io.DataInput; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Respawn.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Respawn.d.ts new file mode 100644 index 00000000..99048d67 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Respawn.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class Respawn extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardDisplay.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardDisplay.d.ts new file mode 100644 index 00000000..25a50d70 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardDisplay.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class ScoreboardDisplay extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardObjective.HealthDisplay.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardObjective.HealthDisplay.d.ts new file mode 100644 index 00000000..9e532fb4 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardObjective.HealthDisplay.d.ts @@ -0,0 +1,27 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + namespace ScoreboardObjective { + // @ts-ignore + class HealthDisplay extends java.lang.Enum { + // @ts-ignore + public static INTEGER: any /*net.md_5.bungee.protocol.packet.ScoreboardObjective.HealthDisplay*/; + // @ts-ignore + public static HEARTS: any /*net.md_5.bungee.protocol.packet.ScoreboardObjective.HealthDisplay*/; + // @ts-ignore + public static values(): any /*net.md_5.bungee.protocol.packet.ScoreboardObjective.HealthDisplay[]*/; + // @ts-ignore + public static valueOf(name: string): any /*net.md_5.bungee.protocol.packet.ScoreboardObjective.HealthDisplay*/; + // @ts-ignore + public toString(): string; + // @ts-ignore + public static fromString(s: string): any /*net.md_5.bungee.protocol.packet.ScoreboardObjective.HealthDisplay*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardObjective.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardObjective.d.ts new file mode 100644 index 00000000..6ccee756 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardObjective.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class ScoreboardObjective extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardScore.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardScore.d.ts new file mode 100644 index 00000000..2c38c71c --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ScoreboardScore.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class ScoreboardScore extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.SetCompression.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.SetCompression.d.ts new file mode 100644 index 00000000..cd625320 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.SetCompression.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class SetCompression extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.StatusRequest.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.StatusRequest.d.ts new file mode 100644 index 00000000..9728c0d8 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.StatusRequest.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class StatusRequest extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.StatusResponse.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.StatusResponse.d.ts new file mode 100644 index 00000000..fdc2d933 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.StatusResponse.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class StatusResponse extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.TabCompleteRequest.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.TabCompleteRequest.d.ts new file mode 100644 index 00000000..c93a65e1 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.TabCompleteRequest.d.ts @@ -0,0 +1,23 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class TabCompleteRequest extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor(transactionId: number, cursor: string) + // @ts-ignore + constructor(cursor: string, assumeCommand: boolean, hasPosition: boolean, position: number) + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.TabCompleteResponse.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.TabCompleteResponse.d.ts new file mode 100644 index 00000000..53c98878 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.TabCompleteResponse.d.ts @@ -0,0 +1,23 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class TabCompleteResponse extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor(transactionId: number, suggestions: Suggestions) + // @ts-ignore + constructor(commands: java.util.List) + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Team.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Team.d.ts new file mode 100644 index 00000000..e772190e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Team.d.ts @@ -0,0 +1,24 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class Team extends net.md_5.bungee.protocol.DefinedPacket { + /** + * Packet to destroy a team. + */ + // @ts-ignore + constructor(name: string) + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Title.Action.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Title.Action.d.ts new file mode 100644 index 00000000..39afa75e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Title.Action.d.ts @@ -0,0 +1,31 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + namespace Title { + // @ts-ignore + class Action extends java.lang.Enum { + // @ts-ignore + public static TITLE: any /*net.md_5.bungee.protocol.packet.Title.Action*/; + // @ts-ignore + public static SUBTITLE: any /*net.md_5.bungee.protocol.packet.Title.Action*/; + // @ts-ignore + public static ACTIONBAR: any /*net.md_5.bungee.protocol.packet.Title.Action*/; + // @ts-ignore + public static TIMES: any /*net.md_5.bungee.protocol.packet.Title.Action*/; + // @ts-ignore + public static CLEAR: any /*net.md_5.bungee.protocol.packet.Title.Action*/; + // @ts-ignore + public static RESET: any /*net.md_5.bungee.protocol.packet.Title.Action*/; + // @ts-ignore + public static values(): any /*net.md_5.bungee.protocol.packet.Title.Action[]*/; + // @ts-ignore + public static valueOf(name: string): any /*net.md_5.bungee.protocol.packet.Title.Action*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Title.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Title.d.ts new file mode 100644 index 00000000..cab073ff --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.Title.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class Title extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public write(buf: ByteBuf, direction: any /*net.md_5.bungee.protocol.ProtocolConstants.Direction*/, protocolVersion: number): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ViewDistance.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ViewDistance.d.ts new file mode 100644 index 00000000..3623cb20 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.protocol.packet.ViewDistance.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace protocol { + namespace packet { + // @ts-ignore + class ViewDistance extends net.md_5.bungee.protocol.DefinedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public read(buf: ByteBuf): void; + // @ts-ignore + public write(buf: ByteBuf): void; + // @ts-ignore + public handle(handler: any /*net.md_5.bungee.protocol.AbstractPacketHandler*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.query.RemoteQuery.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.query.RemoteQuery.d.ts new file mode 100644 index 00000000..804540d5 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.query.RemoteQuery.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace query { + // @ts-ignore + class RemoteQuery extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public start(channel: java.lang.Class, address: java.net.InetSocketAddress, eventLoop: EventLoopGroup, future: ChannelFutureListener): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.scheduler.BungeeScheduler.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.scheduler.BungeeScheduler.d.ts new file mode 100644 index 00000000..4d5d8f14 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.scheduler.BungeeScheduler.d.ts @@ -0,0 +1,27 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace scheduler { + // @ts-ignore + class BungeeScheduler extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public cancel(id: number): void; + // @ts-ignore + public cancel(task: ScheduledTask): void; + // @ts-ignore + public cancel(plugin: Plugin): number; + // @ts-ignore + public runAsync(owner: Plugin, task: java.lang.Runnable): ScheduledTask; + // @ts-ignore + public schedule(owner: Plugin, task: java.lang.Runnable, delay: number, unit: java.util.concurrent.TimeUnit): ScheduledTask; + // @ts-ignore + public schedule(owner: Plugin, task: java.lang.Runnable, delay: number, period: number, unit: java.util.concurrent.TimeUnit): ScheduledTask; + // @ts-ignore + public unsafe(): Unsafe; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.scheduler.BungeeTask.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.scheduler.BungeeTask.d.ts new file mode 100644 index 00000000..2b15adda --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.scheduler.BungeeTask.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace scheduler { + // @ts-ignore + class BungeeTask extends java.lang.Object { + // @ts-ignore + constructor(sched: any /*net.md_5.bungee.scheduler.BungeeScheduler*/, id: number, owner: Plugin, task: java.lang.Runnable, delay: number, period: number, unit: java.util.concurrent.TimeUnit) + // @ts-ignore + public cancel(): void; + // @ts-ignore + public run(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.tab.ServerUnique.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.tab.ServerUnique.d.ts new file mode 100644 index 00000000..83b3545e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.tab.ServerUnique.d.ts @@ -0,0 +1,23 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace tab { + // @ts-ignore + class ServerUnique extends net.md_5.bungee.tab.TabList { + // @ts-ignore + constructor(player: ProxiedPlayer) + // @ts-ignore + public onUpdate(playerListItem: PlayerListItem): void; + // @ts-ignore + public onPingChange(ping: number): void; + // @ts-ignore + public onServerChange(): void; + // @ts-ignore + public onConnect(): void; + // @ts-ignore + public onDisconnect(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.tab.TabList.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.tab.TabList.d.ts new file mode 100644 index 00000000..df18420e --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.tab.TabList.d.ts @@ -0,0 +1,27 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace tab { + // @ts-ignore + abstract class TabList extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected player: ProxiedPlayer; + // @ts-ignore + public abstract onUpdate(playerListItem: PlayerListItem): void; + // @ts-ignore + public abstract onPingChange(ping: number): void; + // @ts-ignore + public abstract onServerChange(): void; + // @ts-ignore + public abstract onConnect(): void; + // @ts-ignore + public abstract onDisconnect(): void; + // @ts-ignore + public static rewrite(playerListItem: PlayerListItem): PlayerListItem; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.util.BoundedArrayList.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.util.BoundedArrayList.d.ts new file mode 100644 index 00000000..9b920511 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.util.BoundedArrayList.d.ts @@ -0,0 +1,21 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace util { + // @ts-ignore + class BoundedArrayList extends java.util.ArrayList { + // @ts-ignore + constructor(maxSize: number) + // @ts-ignore + public add(e: java.lang.Object): boolean; + // @ts-ignore + public add(index: number, element: java.lang.Object): void; + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + // @ts-ignore + public addAll(index: number, c: java.util.Collection): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.util.BufUtil.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.util.BufUtil.d.ts new file mode 100644 index 00000000..85a8d69c --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.util.BufUtil.d.ts @@ -0,0 +1,15 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace util { + // @ts-ignore + class BufUtil extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static dump(buf: ByteBuf, maxLen: number): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.util.ChatComponentTransformer.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.util.ChatComponentTransformer.d.ts new file mode 100644 index 00000000..ae18e4b5 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.util.ChatComponentTransformer.d.ts @@ -0,0 +1,28 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace util { + // @ts-ignore + class ChatComponentTransformer extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static getInstance(): any /*net.md_5.bungee.util.ChatComponentTransformer*/; + /** + * Transform a set of components, and attempt to transform the transformable + * fields. Entity selectors cannot be evaluated. This will + * recursively search for all extra components (see + * {@link BaseComponent#getExtra()}). + */ + // @ts-ignore + public transform(player: ProxiedPlayer, component: BaseComponent): BaseComponent[]; + /** + * Checks if the given string is an entity selector. + */ + // @ts-ignore + public isSelectorPattern(pattern: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/bungee/net.md_5.bungee.util.QuietException.d.ts b/packages/types/dist/typings/bungee/net.md_5.bungee.util.QuietException.d.ts new file mode 100644 index 00000000..7f3271f5 --- /dev/null +++ b/packages/types/dist/typings/bungee/net.md_5.bungee.util.QuietException.d.ts @@ -0,0 +1,17 @@ +declare namespace net { + namespace md_5 { + namespace bungee { + namespace util { + // @ts-ignore + class QuietException extends java.lang.RuntimeException { + // @ts-ignore + constructor(message: string) + // @ts-ignore + public initCause(cause: java.lang.Throwable): java.lang.Throwable; + // @ts-ignore + public fillInStackTrace(): java.lang.Throwable; + } + } + } + } +}