Modifier and Type | Method and Description |
---|---|
@Nullable UserConnection |
ViaManager.getConnection(UUID playerUUID) |
Modifier and Type | Method and Description |
---|---|
Map<UUID,UserConnection> |
ViaManager.getConnectedClients() |
Set<UserConnection> |
ViaManager.getConnections() |
Map<UUID,UserConnection> |
ViaManager.getPortedPlayers()
Deprecated.
use getConnectedClients()
|
Modifier and Type | Method and Description |
---|---|
UUID |
ViaManager.getConnectedClientId(UserConnection conn) |
void |
ViaManager.handleLoginSuccess(UserConnection info) |
Modifier and Type | Method and Description |
---|---|
protected @Nullable UserConnection |
ViaListener.getUserConnection(UUID uuid)
Get the UserConnection from an UUID
|
UserConnection |
PacketWrapper.user()
Get the user associated with this Packet
|
Constructor and Description |
---|
PacketWrapper(int packetID,
io.netty.buffer.ByteBuf inputBuffer,
UserConnection userConnection) |
Modifier and Type | Method and Description |
---|---|
abstract Set<UserConnection> |
BossBar.getConnections()
Get UserConnections.
|
Modifier and Type | Method and Description |
---|---|
abstract BossBar |
BossBar.addConnection(UserConnection conn)
Show the bossbar to a player connection.
|
abstract BossBar |
BossBar.removeConnection(UserConnection conn)
Removes the bossbar from a player connection.
|
Modifier and Type | Method and Description |
---|---|
UserConnection |
StoredObject.getUser() |
Constructor and Description |
---|
StoredObject(UserConnection user) |
Modifier and Type | Field and Description |
---|---|
protected Map<UUID,UserConnection> |
ViaConnectionManager.clients |
protected Set<UserConnection> |
ViaConnectionManager.connections |
Modifier and Type | Method and Description |
---|---|
@Nullable UserConnection |
ViaConnectionManager.getConnectedClient(UUID clientIdentifier)
Returns the frontend UserConnection from the player connected to this proxy server
Returns null when there isn't a server or connection was not found
When ViaVersion is reloaded, this method may not return some players.
|
Modifier and Type | Method and Description |
---|---|
Map<UUID,UserConnection> |
ViaConnectionManager.getConnectedClients()
Returns a map containing the UUIDs and frontend UserConnections from players connected to this proxy server
Returns empty list when there isn't a server
When ViaVersion is reloaded, this method may not return some players.
|
Set<UserConnection> |
ViaConnectionManager.getConnections()
Returns all UserConnections which are registered
May contain duplicated UUIDs on multiple ProtocolInfo.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
ViaPlatform.disconnect(UserConnection connection,
String message)
Disconnects an UserConnection for a reason
|
@Nullable UUID |
ViaConnectionManager.getConnectedClientId(UserConnection conn)
Returns the UUID from the frontend connection to this proxy server
Returns null when there isn't a server or this connection isn't frontend or it doesn't have an id
When ViaVersion is reloaded, this method may not return some players.
|
boolean |
ViaConnectionManager.isFrontEnd(UserConnection conn)
Frontend connections will have the UUID stored.
|
void |
ViaConnectionManager.onDisconnect(UserConnection connection) |
void |
ViaConnectionManager.onLoginSuccess(UserConnection connection) |
Modifier and Type | Method and Description |
---|---|
protected void |
Protocol.filterPacket(UserConnection info,
Object packet,
List output)
Filter a packet into the output
|
void |
Protocol.init(UserConnection userConnection)
Initialise a user for this protocol setting up objects.
|
void |
ProtocolPipeline.init(UserConnection userConnection) |
Constructor and Description |
---|
ProtocolPipeline(UserConnection userConnection) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
MetadataRewriter.handleMetadata(int entityId,
@Nullable EntityType type,
Metadata metadata,
List<Metadata> metadatas,
UserConnection connection)
To be overridden to handle metadata.
|
void |
MetadataRewriter.handleMetadata(int entityId,
List<Metadata> metadatas,
UserConnection connection) |
Constructor and Description |
---|
EntityTracker(UserConnection user,
EntityType playerType) |
Modifier and Type | Method and Description |
---|---|
Set<UserConnection> |
CommonBoss.getConnections() |
Modifier and Type | Method and Description |
---|---|
BossBar |
CommonBoss.addConnection(UserConnection conn) |
BossBar |
CommonBoss.removeConnection(UserConnection conn) |
Modifier and Type | Method and Description |
---|---|
BukkitDecodeHandler |
BasicHandlerConstructor.newDecodeHandler(UserConnection info,
io.netty.handler.codec.ByteToMessageDecoder minecraftDecoder) |
io.netty.handler.codec.ByteToMessageDecoder |
HandlerConstructor.newDecodeHandler(UserConnection info,
io.netty.handler.codec.ByteToMessageDecoder minecraftDecoder) |
BukkitEncodeHandler |
BasicHandlerConstructor.newEncodeHandler(UserConnection info,
io.netty.handler.codec.MessageToByteEncoder minecraftEncoder) |
io.netty.handler.codec.MessageToByteEncoder |
HandlerConstructor.newEncodeHandler(UserConnection info,
io.netty.handler.codec.MessageToByteEncoder minecraftEncoder) |
Constructor and Description |
---|
BukkitDecodeHandler(UserConnection info,
io.netty.handler.codec.ByteToMessageDecoder minecraftDecoder) |
BukkitEncodeHandler(UserConnection info,
io.netty.handler.codec.MessageToByteEncoder minecraftEncoder) |
BukkitPacketHandler(UserConnection info) |
Modifier and Type | Method and Description |
---|---|
protected UserConnection |
ViaBukkitListener.getUserConnection(org.bukkit.entity.Player player)
Get the UserConnection from a player
|
Modifier and Type | Method and Description |
---|---|
int |
BukkitBlockConnectionProvider.getWorldBlockData(UserConnection user,
int bx,
int by,
int bz) |
boolean |
BukkitInventoryQuickMoveProvider.registerQuickMoveAction(short windowId,
short slotId,
short actionId,
UserConnection userConnection) |
void |
BukkitViaMovementTransmitter.sendPlayer(UserConnection info) |
Modifier and Type | Method and Description |
---|---|
void |
BungeeServerHandler.checkServerChange(net.md_5.bungee.api.event.ServerConnectedEvent e,
UserConnection user) |
Constructor and Description |
---|
BungeeDecodeHandler(UserConnection info) |
BungeeEncodeHandler(UserConnection info) |
Modifier and Type | Method and Description |
---|---|
int |
BungeeEntityIdProvider.getEntityId(UserConnection user) |
int |
BungeeVersionProvider.getServerProtocol(UserConnection user) |
void |
BungeeBossBarProvider.handleAdd(UserConnection user,
UUID barUUID) |
void |
BungeeBossBarProvider.handleRemove(UserConnection user,
UUID barUUID) |
void |
BungeeMovementTransmitter.sendPlayer(UserConnection userConnection) |
void |
BungeeMainHandProvider.setMainHand(UserConnection user,
int hand) |
Constructor and Description |
---|
BungeeStorage(UserConnection user,
net.md_5.bungee.api.connection.ProxiedPlayer player) |
Modifier and Type | Method and Description |
---|---|
int |
VersionProvider.getServerProtocol(UserConnection connection) |
void |
BaseProtocol.init(UserConnection userConnection) |
Constructor and Description |
---|
ProtocolInfo(UserConnection user) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol1_10To1_9_3_4.init(UserConnection userConnection) |
Constructor and Description |
---|
ResourcePackTracker(UserConnection user) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol1_11To1_10.init(UserConnection userConnection) |
Modifier and Type | Method and Description |
---|---|
protected void |
MetadataRewriter1_11To1_10.handleMetadata(int entityId,
EntityType type,
Metadata metadata,
List<Metadata> metadatas,
UserConnection connection) |
Constructor and Description |
---|
EntityTracker1_11(UserConnection user) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol1_12To1_11_1.init(UserConnection userConnection) |
static void |
ChatItemRewriter.toClient(com.google.gson.JsonElement element,
UserConnection user) |
static void |
TranslateRewriter.toClient(com.google.gson.JsonElement element,
UserConnection user) |
Modifier and Type | Method and Description |
---|---|
protected void |
MetadataRewriter1_12To1_11_1.handleMetadata(int entityId,
EntityType type,
Metadata metadata,
List<Metadata> metadatas,
UserConnection connection) |
Modifier and Type | Method and Description |
---|---|
boolean |
InventoryQuickMoveProvider.registerQuickMoveAction(short windowId,
short slotId,
short actionId,
UserConnection userConnection) |
Constructor and Description |
---|
EntityTracker1_12(UserConnection user) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol1_13_1To1_13.init(UserConnection userConnection) |
Modifier and Type | Method and Description |
---|---|
protected void |
MetadataRewriter1_13_1To1_13.handleMetadata(int entityId,
EntityType type,
Metadata metadata,
List<Metadata> metadatas,
UserConnection connection) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol1_13To1_12_2.init(UserConnection userConnection) |
Modifier and Type | Method and Description |
---|---|
static void |
ConnectionData.clearBlockStorage(UserConnection connection) |
static int |
ConnectionData.connect(UserConnection user,
Position position,
int blockState) |
int |
RedstoneConnectionHandler.connect(UserConnection user,
Position position,
int blockState) |
int |
StairConnectionHandler.connect(UserConnection user,
Position position,
int blockState) |
int |
SnowyGrassConnectionHandler.connect(UserConnection user,
Position position,
int blockState) |
int |
FlowerConnectionHandler.connect(UserConnection user,
Position position,
int blockState) |
int |
TripwireConnectionHandler.connect(UserConnection user,
Position position,
int blockState) |
int |
DoorConnectionHandler.connect(UserConnection user,
Position position,
int blockState) |
abstract int |
ConnectionHandler.connect(UserConnection user,
Position position,
int blockState) |
int |
FireConnectionHandler.connect(UserConnection user,
Position position,
int blockState) |
int |
AbstractFenceConnectionHandler.connect(UserConnection user,
Position position,
int blockState) |
int |
AbstractStempConnectionHandler.connect(UserConnection user,
Position position,
int blockState) |
static void |
ConnectionData.connectBlocks(UserConnection user,
Chunk chunk) |
int |
ConnectionHandler.getBlockData(UserConnection user,
Position position) |
int |
AbstractFenceConnectionHandler.getBlockData(UserConnection user,
Position position) |
protected byte |
ChorusPlantConnectionHandler.getStates(UserConnection user,
Position position,
int blockState) |
protected byte |
GlassConnectionHandler.getStates(UserConnection user,
Position position,
int blockState) |
protected byte |
AbstractFenceConnectionHandler.getStates(UserConnection user,
Position position,
int blockState) |
protected byte |
WallConnectionHandler.getStates(UserConnection user,
Position position,
int blockState) |
boolean |
WallConnectionHandler.up(UserConnection user,
Position position) |
static void |
ConnectionData.update(UserConnection user,
Position position) |
static void |
ConnectionData.updateBlock(UserConnection user,
Position pos,
List<BlockChangeRecord1_8> records) |
static void |
ConnectionData.updateBlockStorage(UserConnection userConnection,
int x,
int y,
int z,
int blockState) |
static void |
ConnectionData.updateChunkSectionNeighbours(UserConnection user,
int chunkX,
int chunkZ,
int chunkSectionY) |
Modifier and Type | Method and Description |
---|---|
void |
BlockConnectionProvider.clearStorage(UserConnection connection) |
void |
PacketBlockConnectionProvider.clearStorage(UserConnection connection) |
int |
BlockConnectionProvider.getBlockData(UserConnection connection,
int x,
int y,
int z) |
int |
PacketBlockConnectionProvider.getBlockData(UserConnection connection,
int x,
int y,
int z) |
int |
BlockConnectionProvider.getWorldBlockData(UserConnection connection,
int x,
int y,
int z) |
void |
BlockConnectionProvider.removeBlock(UserConnection connection,
int x,
int y,
int z) |
void |
PacketBlockConnectionProvider.removeBlock(UserConnection connection,
int x,
int y,
int z) |
void |
BlockConnectionProvider.storeBlock(UserConnection connection,
int x,
int y,
int z,
int blockState) |
void |
PacketBlockConnectionProvider.storeBlock(UserConnection connection,
int x,
int y,
int z,
int blockState) |
void |
BlockConnectionProvider.unloadChunk(UserConnection connection,
int x,
int z) |
void |
PacketBlockConnectionProvider.unloadChunk(UserConnection connection,
int x,
int z) |
Modifier and Type | Method and Description |
---|---|
protected void |
MetadataRewriter1_13To1_12_2.handleMetadata(int entityId,
EntityType type,
Metadata metadata,
List<Metadata> metadatas,
UserConnection connection) |
Modifier and Type | Method and Description |
---|---|
int |
BlockEntityProvider.BlockEntityHandler.transform(UserConnection user,
com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) |
int |
BlockEntityProvider.transform(UserConnection user,
Position position,
com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
boolean sendUpdate)
Transforms the BlockEntities to blocks!
|
Modifier and Type | Method and Description |
---|---|
int |
BedHandler.transform(UserConnection user,
com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) |
int |
SkullHandler.transform(UserConnection user,
com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) |
int |
FlowerPotHandler.transform(UserConnection user,
com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) |
int |
SpawnerHandler.transform(UserConnection user,
com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) |
int |
BannerHandler.transform(UserConnection user,
com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) |
int |
CommandBlockHandler.transform(UserConnection user,
com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) |
Constructor and Description |
---|
BlockConnectionStorage(UserConnection user) |
BlockStorage(UserConnection user) |
EntityTracker1_13(UserConnection user) |
TabCompleteTracker(UserConnection user) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol1_14_1To1_14.init(UserConnection userConnection) |
Modifier and Type | Method and Description |
---|---|
void |
MetadataRewriter1_14_1To1_14.handleMetadata(int entityId,
EntityType type,
Metadata metadata,
List<Metadata> metadatas,
UserConnection connection) |
Constructor and Description |
---|
EntityTracker1_14_1(UserConnection user) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol1_14To1_13_2.init(UserConnection userConnection) |
Modifier and Type | Method and Description |
---|---|
protected void |
MetadataRewriter1_14To1_13_2.handleMetadata(int entityId,
EntityType type,
Metadata metadata,
List<Metadata> metadatas,
UserConnection connection) |
Constructor and Description |
---|
EntityTracker1_14(UserConnection user) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol1_15To1_14_4.init(UserConnection userConnection) |
Modifier and Type | Method and Description |
---|---|
void |
MetadataRewriter1_15To1_14_4.handleMetadata(int entityId,
EntityType type,
Metadata metadata,
List<Metadata> metadatas,
UserConnection connection) |
Constructor and Description |
---|
EntityTracker1_15(UserConnection user) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol1_16_2To1_16_1.init(UserConnection userConnection) |
Modifier and Type | Method and Description |
---|---|
void |
MetadataRewriter1_16_2To1_16_1.handleMetadata(int entityId,
EntityType type,
Metadata metadata,
List<Metadata> metadatas,
UserConnection connection) |
Constructor and Description |
---|
EntityTracker1_16_2(UserConnection user) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol1_16To1_15_2.init(UserConnection userConnection) |
Modifier and Type | Method and Description |
---|---|
void |
MetadataRewriter1_16To1_15_2.handleMetadata(int entityId,
EntityType type,
Metadata metadata,
List<Metadata> metadatas,
UserConnection connection) |
Constructor and Description |
---|
EntityTracker1_16(UserConnection user) |
InventoryTracker1_16(UserConnection user) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol1_9_1_2To1_9_3_4.init(UserConnection userConnection) |
Modifier and Type | Method and Description |
---|---|
static void |
BlockEntity.handle(List<com.github.steveice10.opennbt.tag.builtin.CompoundTag> tags,
UserConnection connection) |
Modifier and Type | Method and Description |
---|---|
void |
Protocol1_9_3To1_9_1_2.init(UserConnection user) |
Constructor and Description |
---|
ClientWorld(UserConnection user) |
Modifier and Type | Method and Description |
---|---|
protected void |
Protocol1_9To1_8.filterPacket(UserConnection info,
Object packet,
List output) |
static Item |
Protocol1_9To1_8.getHandItem(UserConnection info) |
void |
Protocol1_9To1_8.init(UserConnection userConnection) |
Modifier and Type | Method and Description |
---|---|
static void |
ChatRewriter.toClient(com.google.gson.JsonObject obj,
UserConnection user)
Rewrite chat being sent to the client so that gamemode issues don't occur.
|
Modifier and Type | Method and Description |
---|---|
protected void |
MetadataRewriter1_9To1_8.handleMetadata(int entityId,
EntityType type,
Metadata metadata,
List<Metadata> metadatas,
UserConnection connection) |
Modifier and Type | Method and Description |
---|---|
void |
CommandBlockProvider.addOrUpdateBlock(UserConnection user,
Position position,
com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) |
Optional<com.github.steveice10.opennbt.tag.builtin.CompoundTag> |
CommandBlockProvider.get(UserConnection user,
Position position) |
int |
EntityIdProvider.getEntityId(UserConnection user) |
Item |
HandItemProvider.getHandItem(UserConnection info) |
void |
BossBarProvider.handleAdd(UserConnection user,
UUID barUUID) |
void |
BossBarProvider.handleRemove(UserConnection user,
UUID barUUID) |
void |
CommandBlockProvider.sendPermission(UserConnection user) |
void |
MovementTransmitterProvider.sendPlayer(UserConnection userConnection) |
void |
MainHandProvider.setMainHand(UserConnection user,
int hand) |
void |
CommandBlockProvider.unloadChunk(UserConnection user,
int x,
int z) |
void |
CommandBlockProvider.unloadChunks(UserConnection userConnection) |
Constructor and Description |
---|
ClientChunks(UserConnection user) |
CommandBlockStorage(UserConnection user) |
EntityTracker1_9(UserConnection user) |
InventoryTracker(UserConnection user) |
MovementTracker(UserConnection user) |
PlaceBlockTracker(UserConnection user) |
Constructor and Description |
---|
SpongeDecodeHandler(UserConnection info,
io.netty.handler.codec.ByteToMessageDecoder minecraftDecoder) |
SpongeEncodeHandler(UserConnection info,
io.netty.handler.codec.MessageToByteEncoder<?> minecraftEncoder) |
SpongePacketHandler(UserConnection info) |
Constructor and Description |
---|
VelocityDecodeHandler(UserConnection info) |
VelocityEncodeHandler(UserConnection info) |
Modifier and Type | Method and Description |
---|---|
int |
VelocityVersionProvider.getServerProtocol(UserConnection user) |
void |
VelocityBossBarProvider.handleAdd(UserConnection user,
UUID barUUID) |
void |
VelocityBossBarProvider.handleRemove(UserConnection user,
UUID barUUID) |
void |
VelocityMovementTransmitter.sendPlayer(UserConnection userConnection) |
Constructor and Description |
---|
VelocityStorage(UserConnection user,
com.velocitypowered.api.proxy.Player player) |
Copyright © 2016–2021. All rights reserved.