MCPcopy Create free account

hub / github.com/PaperMC/Velocity / functions

Functions3,479 in github.com/PaperMC/Velocity

↓ 551 callersMethodmap
Creates a PacketMapping using the provided arguments. @param id Packet Id @param version Protocol version @param encodeOnly When true pack
proxy/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java:1127
↓ 236 callersMethodbuild
Builds the {@link ResourcePackInfo} from the provided info for use with {@link com.velocitypowered.api.proxy.Player#sendResourcePackOffer(ResourcePack
api/src/main/java/com/velocitypowered/api/proxy/player/ResourcePackInfo.java:161
↓ 231 callersMethodregister
Registers the given command. @param meta the command metadata, including the case-insensitive aliases @param command the command to register @thro
proxy/src/main/java/com/velocitypowered/proxy/command/registrar/CommandRegistrar.java:40
↓ 213 callersMethodnoLessThan
Checks if {@code this} is greater than or equal to {@code that}. @param that the other object @return {@code true} if {@code this} is greater than or
api/src/main/java/com/velocitypowered/api/util/Ordered.java:56
↓ 167 callersMethodmapSet
(ProtocolVersion version, int id)
proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/brigadier/ArgumentIdentifier.java:76
↓ 166 callersMethodadd
(T element)
proxy/src/main/java/com/velocitypowered/proxy/util/collect/CappedSet.java:55
↓ 154 callersMethodget
(E key)
proxy/src/main/java/com/velocitypowered/proxy/util/collect/Enum2IntMap.java:35
↓ 132 callersMethodof
(String name, @Nullable String version)
api/src/main/java/com/velocitypowered/api/proxy/server/QueryResponse.java:445
↓ 125 callersMethodwrite
(ProtocolVersion version, ByteBuf buf, Entry info)
proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/UpsertPlayerInfoPacket.java:212
↓ 110 callersMethodgetProtocolVersion
Returns the current protocol version this connection uses. @return the protocol version the connection uses
api/src/main/java/com/velocitypowered/api/proxy/InboundConnection.java:56
↓ 104 callersMethodgetConnection
()
proxy/src/main/java/com/velocitypowered/proxy/connection/util/VelocityInboundConnection.java:28
↓ 104 callersMethodgetId
Gets the qualified ID of the {@link Plugin} within this container. @return the plugin ID @see Plugin#id()
api/src/main/java/com/velocitypowered/api/plugin/PluginDescription.java:37
↓ 91 callersMethodwriteVarInt
Writes a Minecraft-style VarInt to the specified {@code buf}. @param buf the buffer to read from @param value the integer to write
proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java:220
↓ 89 callersMethodgetName
Gets the name of the {@link Plugin} within this container. @return an {@link Optional} with the plugin name, may be empty @see Plugin#name()
api/src/main/java/com/velocitypowered/api/plugin/PluginDescription.java:45
↓ 87 callersMethodgetPlayer
()
proxy/src/main/java/com/velocitypowered/proxy/tablist/InternalTabList.java:31
↓ 85 callersMethodmetaBuilder
Returns a builder to create a {@link CommandMeta} with the given alias. @param alias the first command alias @return a {@link CommandMeta} builder
api/src/main/java/com/velocitypowered/api/command/CommandManager.java:30
↓ 85 callersMethodreadVarInt
Reads a Minecraft-style VarInt from the specified {@code buf}. @param buf the buffer to read from @return the decoded VarInt
proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java:178
↓ 80 callersMethodisEmpty
()
proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/session/SessionPlayerCommandPacket.java:129
↓ 79 callersMethodput
Adds a mapping to the map. @param key the key to use @param value the value to associate with the key @return {@code this}, for chaining
proxy/src/main/java/com/velocitypowered/proxy/util/collect/Enum2IntMap.java:62
↓ 79 callersMethodwriteString
Writes the specified {@code str} to the {@code buf} with a VarInt prefix. @param buf the buffer to write to @param str the string to write
proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java:317
↓ 77 callersMethodreadString
(ByteBuf buf)
proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java:269
↓ 75 callersMethodempty
(ArgumentIdentifier identifier)
proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/brigadier/ArgumentPropertyRegistry.java:74
↓ 75 callersMethodwriteBoolean
(boolean v)
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/ByteBufDataOutput.java:61
↓ 72 callersMethodgetResult
Returns the result associated with this event. @return the result of this event
api/src/main/java/com/velocitypowered/api/event/ResultedEvent.java:26
↓ 71 callersMethodid
(String identifier, VersionSet... versions)
proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/brigadier/ArgumentIdentifier.java:80
↓ 67 callersMethodgetEventManager
Gets the {@link EventManager} instance. @return the event manager instance
api/src/main/java/com/velocitypowered/api/proxy/ProxyServer.java:166
↓ 67 callersMethodhandle
(MinecraftSessionHandler handler)
proxy/src/main/java/com/velocitypowered/proxy/protocol/MinecraftPacket.java:33
↓ 64 callersMethodgetConfiguration
Gets the {@link ProxyConfig} instance. @return the proxy config
api/src/main/java/com/velocitypowered/api/proxy/ProxyServer.java:202
↓ 60 callersMethodeventLoop
()
proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java:226
↓ 60 callersMethodfire
Fires the specified event to the event bus asynchronously. This allows Velocity to continue servicing connections while a plugin handles a potentially
api/src/main/java/com/velocitypowered/api/event/EventManager.java:79
↓ 59 callersMethodassertSuggestions
(final String input, final String... expectedSuggestions)
proxy/src/test/java/com/velocitypowered/proxy/command/CommandTestSuite.java:63
↓ 56 callersMethodreadBoolean
()
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/ByteBufDataInput.java:63
↓ 54 callersMethodget
()
proxy/src/test/java/com/velocitypowered/proxy/scheduler/DeterministicSchedulerBackend.java:197
↓ 52 callersMethoddisconnect
Disconnects the player with the specified reason. Once this method is called, further calls to other {@link Player} methods will become undefined. @p
api/src/main/java/com/velocitypowered/api/proxy/Player.java:200
↓ 47 callersMethodlessThan
Checks if {@code this} is less than {@code that}. @param that the other object @return {@code true} if {@code this} is less than {@code that}, {@code
api/src/main/java/com/velocitypowered/api/util/Ordered.java:67
↓ 46 callersMethodgetKey
()
proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/ClientboundStoreCookiePacket.java:33
↓ 46 callersMethodgetServerInfo
Returns the server info for this connection. @return the server info for this connection
api/src/main/java/com/velocitypowered/api/proxy/ServerConnection.java:41
↓ 45 callersMethodwriteByte
(int v)
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/ByteBufDataOutput.java:66
↓ 42 callersMethodcontent
()
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/DeferredByteBufHolder.java:39
↓ 40 callersMethodset
Sets the channel initializer. @param initializer the new initializer to use @deprecated Internal implementation detail
proxy/src/main/java/com/velocitypowered/proxy/network/ServerChannelInitializerHolder.java:49
↓ 39 callersMethodensureConnected
Ensures the connection is still active and throws an exception if it is not. @return the active connection @throws IllegalStateException if the conne
proxy/src/main/java/com/velocitypowered/proxy/connection/backend/VelocityServerConnection.java:216
↓ 36 callersMethodbuilder
Returns a {@link Builder} to create a {@link TabListEntry}. @return {@link TabListEntry} builder
api/src/main/java/com/velocitypowered/api/proxy/player/TabListEntry.java:189
↓ 36 callersMethodgetServer
Retrieves a registered {@link RegisteredServer} instance by its name. The search is case-insensitive. @param name the name of the server @return the
api/src/main/java/com/velocitypowered/api/proxy/ProxyServer.java:96
↓ 33 callersMethodaddAll
(Collection<? extends T> collection)
proxy/src/main/java/com/velocitypowered/proxy/util/collect/CappedSet.java:66
↓ 33 callersMethodgetUsername
Returns the player's current username. @return the username
api/src/main/java/com/velocitypowered/api/proxy/Player.java:61
↓ 33 callersMethodsendMessage
(@NonNull Identity identity, @NonNull Component message)
proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java:427
↓ 32 callersMethodgetHexValueForChar
(final char c)
api/src/main/java/com/velocitypowered/api/util/FastUuidSansHyphens.java:190
↓ 32 callersMethodrelease
()
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/DeferredByteBufHolder.java:127
↓ 31 callersMethodclose
Disposes this object. After this call returns, any use of this object becomes invalid. Multiple calls to this function should be safe: there should be
native/src/main/java/com/velocitypowered/natives/Disposable.java:34
↓ 31 callersMethodreadByte
()
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/ByteBufDataInput.java:68
↓ 30 callersMethodarguments
Returns the arguments after the command alias. @return the command arguments
api/src/main/java/com/velocitypowered/api/command/CommandInvocation.java:29
↓ 30 callersMethodgetChannel
()
proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java:321
↓ 30 callersMethodisAllowed
Returns whether or not the event is allowed to proceed. Plugins may choose to skip denied events, and the proxy will respect the result of this method
api/src/main/java/com/velocitypowered/api/event/ResultedEvent.java:46
↓ 30 callersMethodwriteUTF
(String s)
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/ByteBufDataOutput.java:113
↓ 28 callersMethodgetValue
()
api/src/main/java/com/velocitypowered/api/util/GameProfile.java:227
↓ 28 callersMethodwriteInt
(int v)
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/ByteBufDataOutput.java:81
↓ 27 callersMethodcheckFrame
Throws {@link CorruptedFrameException} if {@code b} is false. @param b the expression to check @param message the message to include in the thr
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/NettyPreconditions.java:45
↓ 26 callersMethodgetSource
Returns the source the plugin was loaded from. @return the source the plugin was loaded from or {@link Optional#empty()} if unknown
api/src/main/java/com/velocitypowered/api/plugin/PluginDescription.java:108
↓ 25 callersMethoddelayedWrite
Writes, but does not flush, a message to the connection. @param msg the message to write
proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java:251
↓ 25 callersMethodfireAndForget
Posts the specified event to the event bus and discards the result. @param event the event to fire
api/src/main/java/com/velocitypowered/api/event/EventManager.java:86
↓ 25 callersMethodremove
(E key)
proxy/src/main/java/com/velocitypowered/proxy/util/collect/Enum2IntMap.java:68
↓ 25 callersMethodretain
()
proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/PluginMessagePacket.java:155
↓ 25 callersMethodthen
(final ArgumentBuilder<S, ?> argument)
proxy/src/main/java/com/velocitypowered/proxy/command/brigadier/VelocityArgumentBuilder.java:67
↓ 25 callersMethodwriteLong
(long v)
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/ByteBufDataOutput.java:86
↓ 24 callersMethodassertHandled
(final String input)
proxy/src/test/java/com/velocitypowered/proxy/command/CommandTestSuite.java:55
↓ 24 callersMethodequals
(@Nullable final Object o)
proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientSettingsWrapper.java:100
↓ 24 callersMethodexecute
(Object targetInstance, Object event)
proxy/src/main/java/com/velocitypowered/proxy/event/UntargetedEventHandler.java:51
↓ 24 callersMethodisActive
Determine whether or not the player remains online. @return whether or not the player active
api/src/main/java/com/velocitypowered/api/proxy/InboundConnection.java:49
↓ 24 callersMethodreadLong
()
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/ByteBufDataInput.java:98
↓ 24 callersMethodwrite
Writes and immediately flushes a message to the connection. @param msg the message to write @return A {@link ChannelFuture} that will complete when p
proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java:236
↓ 23 callersMethodalias
Returns the used alias to execute the command. @return the used command alias
api/src/main/java/com/velocitypowered/api/command/SimpleCommand.java:31
↓ 23 callersMethodgetHash
Gets the SHA-1 hash of the resource-pack See {@link Builder#setHash(byte[])} for more information. @return the hash if present or null otherwise
api/src/main/java/com/velocitypowered/api/proxy/player/ResourcePackInfo.java:57
↓ 22 callersMethodgetMessage
Returns the signed message. @return the message
api/src/main/java/com/velocitypowered/api/proxy/crypto/SignedMessage.java:22
↓ 22 callersMethodsetActiveSessionHandler
Sets the session handler for this connection. @param registry the registry of the handler @param sessionHandler the handler to use
proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java:479
↓ 22 callersMethodwriteBytes
(String s)
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/ByteBufDataOutput.java:101
↓ 20 callersMethodcreate
Creates an invocation from the given command context. @param context the command context @return the built invocation context
proxy/src/main/java/com/velocitypowered/proxy/command/invocation/CommandInvocationFactory.java:47
↓ 20 callersMethodgetConnectedServer
()
proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java:674
↓ 20 callersMethodgetPhase
Gets the current "phase" of the connection, mostly used for tracking modded negotiation for legacy forge servers and provides methods for performing p
proxy/src/main/java/com/velocitypowered/proxy/connection/backend/VelocityServerConnection.java:353
↓ 20 callersMethodisClosed
()
proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java:325
↓ 20 callersMethodsuggests
(final @Nullable SuggestionProvider<S> provider)
proxy/src/main/java/com/velocitypowered/proxy/command/brigadier/VelocityArgumentBuilder.java:62
↓ 20 callersMethodwriteUuid
(ByteBuf buf, UUID uuid)
proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java:446
↓ 19 callersMethodaddProperty
Creates a new {@code GameProfile} with the properties of this object plus the specified property. @param property the property to add @return the new
api/src/main/java/com/velocitypowered/api/util/GameProfile.java:158
↓ 19 callersMethodequals
(Object o)
proxy/src/main/java/com/velocitypowered/proxy/crypto/IdentifiedKeyImpl.java:164
↓ 19 callersMethodgetCommand
(final String alias)
proxy/src/main/java/com/velocitypowered/proxy/command/VelocityCommandManager.java:369
↓ 19 callersMethodgetIdentifiedKey
()
api/src/main/java/com/velocitypowered/api/proxy/player/TabListEntry.java:28
↓ 19 callersMethodgetUniqueId
Returns the player's UUID. @return the UUID
api/src/main/java/com/velocitypowered/api/proxy/Player.java:85
↓ 19 callersMethodhint
Specifies a command node providing additional argument metadata and tab-complete suggestions. @param node the command node @return this builder, for
api/src/main/java/com/velocitypowered/api/command/CommandMeta.java:66
↓ 19 callersMethodsuggest
Provides tab complete suggestions for the specified invocation. @param invocation the invocation context @return the tab complete suggestions
api/src/main/java/com/velocitypowered/api/command/InvocableCommand.java:40
↓ 18 callersMethodcomplete
()
proxy/src/test/java/com/velocitypowered/proxy/scheduler/DeterministicSchedulerBackend.java:190
↓ 18 callersMethodgetState
()
proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java:333
↓ 18 callersMethodreadUTF
()
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/ByteBufDataInput.java:118
↓ 18 callersMethodserialize
(T object, ByteBuf buf, ProtocolVersion protocolVersion)
proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/brigadier/ArgumentPropertySerializer.java:28
↓ 17 callersMethodgetDescription
Returns the plugin's description. @return the plugin's description
api/src/main/java/com/velocitypowered/api/plugin/PluginContainer.java:23
↓ 17 callersMethodgetProfile
Returns the {@link GameProfile} of the entry, which uniquely identifies the entry with the containing {@link java.util.UUID}, as well as deciding what
api/src/main/java/com/velocitypowered/api/proxy/player/TabListEntry.java:51
↓ 17 callersMethodgetVersion
Returns the version of the proxy. @return the proxy version
api/src/main/java/com/velocitypowered/api/proxy/ProxyServer.java:209
↓ 17 callersMethodreadInt
()
proxy/src/main/java/com/velocitypowered/proxy/protocol/util/ByteBufDataInput.java:93
↓ 17 callersMethodreadUuid
Reads an UUID from the {@code buf}. @param buf the buffer to read from @return the UUID from the buffer
proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java:440
↓ 17 callersMethodvarIntBytes
Returns the exact byte size of {@code value} if it were encoded as a VarInt. @param value the value to encode @return the byte size of {@code value}
proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java:210
↓ 16 callersMethodbind
Binds a Minecraft listener to the specified {@code address}. @param address the address to bind to
proxy/src/main/java/com/velocitypowered/proxy/network/ConnectionManager.java:98
↓ 16 callersMethodgetAddress
()
api/src/main/java/com/velocitypowered/api/proxy/server/ServerInfo.java:39
next →1–100 of 3,479, ranked by callers