Package net.minecraft.network
Class Connection
java.lang.Object
net.minecraft.network.Connection
- Mappings:
Namespace Name intermediary net/minecraft/class_117glue class_363server jlclient pfnamed net/minecraft/network/Connection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SocketAddressprivate booleanprivate intprivate ListList of Packet.private booleanprivate Stringprivate Object[]private DataInputStreamintprivate Objectstatic final Objectprivate NetworkHandlerprivate booleanprivate DataOutputStreamstatic intprivate Threadprivate ListList of Packetprivate ListList of Packetprivate intprivate Socketprivate intstatic int[]static int[]static intprivate Thread -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voiddisconnect(Exception exception) voiddisconnect(String reason, Object[] args) intvoidprivate booleanread()voidsendPacket(Packet packet) voidsetNetworkHandler(NetworkHandler networkHandler) voidtick()private booleanwrite()
-
Field Details
-
LOCK
- Mappings:
Namespace Name Mixin selector intermediary field_1274Lnet/minecraft/class_117;field_1274:Ljava/lang/Object;glue field_1458Lclass_363;field_1458:Ljava/lang/Object;server aLjl;a:Ljava/lang/Object;client aLpf;a:Ljava/lang/Object;named LOCKLnet/minecraft/network/Connection;LOCK:Ljava/lang/Object;
-
READ_THREAD_COUNTER
public static int READ_THREAD_COUNTER- Mappings:
Namespace Name Mixin selector intermediary field_1275Lnet/minecraft/class_117;field_1275:Iglue field_1459Lclass_363;field_1459:Iserver bLjl;b:Iclient bLpf;b:Inamed READ_THREAD_COUNTERLnet/minecraft/network/Connection;READ_THREAD_COUNTER:I
-
WRITE_THREAD_COUNTER
public static int WRITE_THREAD_COUNTER- Mappings:
Namespace Name Mixin selector intermediary field_1276Lnet/minecraft/class_117;field_1276:Iglue field_1460Lclass_363;field_1460:Iserver cLjl;c:Iclient cLpf;c:Inamed WRITE_THREAD_COUNTERLnet/minecraft/network/Connection;WRITE_THREAD_COUNTER:I
-
TOTAL_READ_SIZE
public static int[] TOTAL_READ_SIZE- Mappings:
Namespace Name Mixin selector intermediary field_1277Lnet/minecraft/class_117;field_1277:[Iglue field_1461Lclass_363;field_1461:[Iserver dLjl;d:[Iclient dLpf;d:[Inamed TOTAL_READ_SIZELnet/minecraft/network/Connection;TOTAL_READ_SIZE:[I
-
TOTAL_SEND_SIZE
public static int[] TOTAL_SEND_SIZE- Mappings:
Namespace Name Mixin selector intermediary field_1278Lnet/minecraft/class_117;field_1278:[Iglue field_1462Lclass_363;field_1462:[Iserver eLjl;e:[Iclient eLpf;e:[Inamed TOTAL_SEND_SIZELnet/minecraft/network/Connection;TOTAL_SEND_SIZE:[I
-
lock
- Mappings:
Namespace Name Mixin selector intermediary field_1280Lnet/minecraft/class_117;field_1280:Ljava/lang/Object;glue field_1464Lclass_363;field_1464:Ljava/lang/Object;server gLjl;g:Ljava/lang/Object;client gLpf;g:Ljava/lang/Object;named lockLnet/minecraft/network/Connection;lock:Ljava/lang/Object;
-
socket
- Mappings:
Namespace Name Mixin selector intermediary field_1281Lnet/minecraft/class_117;field_1281:Ljava/net/Socket;glue field_1465Lclass_363;field_1465:Ljava/net/Socket;server hLjl;h:Ljava/net/Socket;client hLpf;h:Ljava/net/Socket;named socketLnet/minecraft/network/Connection;socket:Ljava/net/Socket;
-
address
- Mappings:
Namespace Name Mixin selector intermediary field_1282Lnet/minecraft/class_117;field_1282:Ljava/net/SocketAddress;glue field_1466Lclass_363;field_1466:Ljava/net/SocketAddress;server iLjl;i:Ljava/net/SocketAddress;client iLpf;i:Ljava/net/SocketAddress;named addressLnet/minecraft/network/Connection;address:Ljava/net/SocketAddress;
-
inputStream
- Mappings:
Namespace Name Mixin selector intermediary field_1283Lnet/minecraft/class_117;field_1283:Ljava/io/DataInputStream;glue field_1467Lclass_363;field_1467:Ljava/io/DataInputStream;server jLjl;j:Ljava/io/DataInputStream;client jLpf;j:Ljava/io/DataInputStream;named inputStreamLnet/minecraft/network/Connection;inputStream:Ljava/io/DataInputStream;
-
outputStream
- Mappings:
Namespace Name Mixin selector intermediary field_1284Lnet/minecraft/class_117;field_1284:Ljava/io/DataOutputStream;glue field_1468Lclass_363;field_1468:Ljava/io/DataOutputStream;server kLjl;k:Ljava/io/DataOutputStream;client kLpf;k:Ljava/io/DataOutputStream;named outputStreamLnet/minecraft/network/Connection;outputStream:Ljava/io/DataOutputStream;
-
open
private boolean open- Mappings:
Namespace Name Mixin selector intermediary field_1285Lnet/minecraft/class_117;field_1285:Zglue field_1469Lclass_363;field_1469:Zserver lLjl;l:Zclient lLpf;l:Znamed openLnet/minecraft/network/Connection;open:Z
-
readQueue
List of Packet- Mappings:
Namespace Name Mixin selector intermediary field_1286Lnet/minecraft/class_117;field_1286:Ljava/util/List;glue field_1470Lclass_363;field_1470:Ljava/util/List;server mLjl;m:Ljava/util/List;client mLpf;m:Ljava/util/List;named readQueueLnet/minecraft/network/Connection;readQueue:Ljava/util/List;
-
sendQueue
List of Packet- Mappings:
Namespace Name Mixin selector intermediary field_1287Lnet/minecraft/class_117;field_1287:Ljava/util/List;glue field_1471Lclass_363;field_1471:Ljava/util/List;server nLjl;n:Ljava/util/List;client nLpf;n:Ljava/util/List;named sendQueueLnet/minecraft/network/Connection;sendQueue:Ljava/util/List;
-
delayedSendQueue
List of Packet. The send queue for delayed packets, mostly used for those containing block (entity) data.- Mappings:
Namespace Name Mixin selector intermediary field_1288Lnet/minecraft/class_117;field_1288:Ljava/util/List;glue field_1472Lclass_363;field_1472:Ljava/util/List;server oLjl;o:Ljava/util/List;client oLpf;o:Ljava/util/List;named delayedSendQueueLnet/minecraft/network/Connection;delayedSendQueue:Ljava/util/List;
-
networkHandler
- Mappings:
Namespace Name Mixin selector intermediary field_1289Lnet/minecraft/class_117;field_1289:Lnet/minecraft/class_240;glue field_1473Lclass_363;field_1473:Lclass_472;server pLjl;p:Lme;client pLpf;p:Lti;named networkHandlerLnet/minecraft/network/Connection;networkHandler:Lnet/minecraft/network/NetworkHandler;
-
closed
private boolean closed- Mappings:
Namespace Name Mixin selector intermediary field_1290Lnet/minecraft/class_117;field_1290:Zglue field_1474Lclass_363;field_1474:Zserver qLjl;q:Zclient qLpf;q:Znamed closedLnet/minecraft/network/Connection;closed:Z
-
writer
- Mappings:
Namespace Name Mixin selector intermediary field_1291Lnet/minecraft/class_117;field_1291:Ljava/lang/Thread;glue field_1475Lclass_363;field_1475:Ljava/lang/Thread;server rLjl;r:Ljava/lang/Thread;client rLpf;r:Ljava/lang/Thread;named writerLnet/minecraft/network/Connection;writer:Ljava/lang/Thread;
-
reader
- Mappings:
Namespace Name Mixin selector intermediary field_1292Lnet/minecraft/class_117;field_1292:Ljava/lang/Thread;glue field_1476Lclass_363;field_1476:Ljava/lang/Thread;server sLjl;s:Ljava/lang/Thread;client sLpf;s:Ljava/lang/Thread;named readerLnet/minecraft/network/Connection;reader:Ljava/lang/Thread;
-
disconnected
private boolean disconnected- Mappings:
Namespace Name Mixin selector intermediary field_1293Lnet/minecraft/class_117;field_1293:Zglue field_1477Lclass_363;field_1477:Zserver tLjl;t:Zclient tLpf;t:Znamed disconnectedLnet/minecraft/network/Connection;disconnected:Z
-
disconnectReason
- Mappings:
Namespace Name Mixin selector intermediary field_1294Lnet/minecraft/class_117;field_1294:Ljava/lang/String;glue field_1478Lclass_363;field_1478:Ljava/lang/String;server uLjl;u:Ljava/lang/String;client uLpf;u:Ljava/lang/String;named disconnectReasonLnet/minecraft/network/Connection;disconnectReason:Ljava/lang/String;
-
disconnectReasonArgs
- Mappings:
Namespace Name Mixin selector intermediary field_1295Lnet/minecraft/class_117;field_1295:[Ljava/lang/Object;glue field_1479Lclass_363;field_1479:[Ljava/lang/Object;server vLjl;v:[Ljava/lang/Object;client vLpf;v:[Ljava/lang/Object;named disconnectReasonArgsLnet/minecraft/network/Connection;disconnectReasonArgs:[Ljava/lang/Object;
-
timeout
private int timeout- Mappings:
Namespace Name Mixin selector intermediary field_1296Lnet/minecraft/class_117;field_1296:Iglue field_1480Lclass_363;field_1480:Iserver wLjl;w:Iclient wLpf;w:Inamed timeoutLnet/minecraft/network/Connection;timeout:I
-
sendQueueSize
private int sendQueueSize- Mappings:
Namespace Name Mixin selector intermediary field_1297Lnet/minecraft/class_117;field_1297:Iglue field_1481Lclass_363;field_1481:Iserver xLjl;x:Iclient xLpf;x:Inamed sendQueueSizeLnet/minecraft/network/Connection;sendQueueSize:I
-
lag
public int lag- Mappings:
Namespace Name Mixin selector intermediary field_1279Lnet/minecraft/class_117;field_1279:Iglue field_1463Lclass_363;field_1463:Iserver fLjl;f:Iclient fLpf;f:Inamed lagLnet/minecraft/network/Connection;lag:I
-
delay
private int delay- Mappings:
Namespace Name Mixin selector intermediary field_1298Lnet/minecraft/class_117;field_1298:Iglue field_1482Lclass_363;field_1482:Iserver yLjl;y:Iclient yLpf;y:Inamed delayLnet/minecraft/network/Connection;delay:I
-
-
Constructor Details
-
Connection
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_117;<init>(Ljava/net/Socket;Ljava/lang/String;Lnet/minecraft/class_240;)Vglue <init>Lclass_363;<init>(Ljava/net/Socket;Ljava/lang/String;Lclass_472;)Vserver <init>Ljl;<init>(Ljava/net/Socket;Ljava/lang/String;Lme;)Vclient <init>Lpf;<init>(Ljava/net/Socket;Ljava/lang/String;Lti;)Vnamed <init>Lnet/minecraft/network/Connection;<init>(Ljava/net/Socket;Ljava/lang/String;Lnet/minecraft/network/NetworkHandler;)V
-
-
Method Details
-
setNetworkHandler
- Mappings:
Namespace Name Mixin selector intermediary method_1128Lnet/minecraft/class_117;method_1128(Lnet/minecraft/class_240;)Vglue method_1473Lclass_363;method_1473(Lclass_472;)Vserver aLjl;a(Lme;)Vclient method_1128Lpf;method_1128(Lti;)Vnamed setNetworkHandlerLnet/minecraft/network/Connection;setNetworkHandler(Lnet/minecraft/network/NetworkHandler;)V
-
sendPacket
- Mappings:
Namespace Name Mixin selector intermediary method_1123Lnet/minecraft/class_117;method_1123(Lnet/minecraft/class_169;)Vglue method_1468Lclass_363;method_1468(Lclass_257;)Vserver aLjl;a(Lgt;)Vclient aLpf;a(Lki;)Vnamed sendPacketLnet/minecraft/network/Connection;sendPacket(Lnet/minecraft/network/packet/Packet;)V
-
write
private boolean write()- Mappings:
Namespace Name Mixin selector intermediary method_1137Lnet/minecraft/class_117;method_1137()Zglue method_1482Lclass_363;method_1482()Zserver fLjl;f()Zclient dLpf;d()Znamed writeLnet/minecraft/network/Connection;write()Z
-
interrupt
public void interrupt()- Mappings:
Namespace Name Mixin selector intermediary method_1122Lnet/minecraft/class_117;method_1122()Vglue method_1467Lclass_363;method_1467()Vserver aLjl;a()Vclient aLpf;a()Vnamed interruptLnet/minecraft/network/Connection;interrupt()V
-
read
private boolean read()- Mappings:
Namespace Name Mixin selector intermediary method_1139Lnet/minecraft/class_117;method_1139()Zglue method_1484Lclass_363;method_1484()Zserver gLjl;g()Zclient eLpf;e()Znamed readLnet/minecraft/network/Connection;read()Z
-
disconnect
- Mappings:
Namespace Name Mixin selector intermediary method_1124Lnet/minecraft/class_117;method_1124(Ljava/lang/Exception;)Vglue method_1469Lclass_363;method_1469(Ljava/lang/Exception;)Vserver aLjl;a(Ljava/lang/Exception;)Vclient aLpf;a(Ljava/lang/Exception;)Vnamed disconnectLnet/minecraft/network/Connection;disconnect(Ljava/lang/Exception;)V
-
disconnect
- Mappings:
Namespace Name Mixin selector intermediary method_1125Lnet/minecraft/class_117;method_1125(Ljava/lang/String;[Ljava/lang/Object;)Vglue method_1470Lclass_363;method_1470(Ljava/lang/String;[Ljava/lang/Object;)Vserver aLjl;a(Ljava/lang/String;[Ljava/lang/Object;)Vclient aLpf;a(Ljava/lang/String;[Ljava/lang/Object;)Vnamed disconnectLnet/minecraft/network/Connection;disconnect(Ljava/lang/String;[Ljava/lang/Object;)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector intermediary method_1129Lnet/minecraft/class_117;method_1129()Vglue method_1474Lclass_363;method_1474()Vserver bLjl;b()Vclient bLpf;b()Vnamed tickLnet/minecraft/network/Connection;tick()V
-
getAddress
- Mappings:
Namespace Name Mixin selector intermediary method_1131Lnet/minecraft/class_117;method_1131()Ljava/net/SocketAddress;glue method_1476Lclass_363;method_1476()Ljava/net/SocketAddress;server cLjl;c()Ljava/net/SocketAddress;client method_1131Lpf;method_1131()Ljava/net/SocketAddress;named getAddressLnet/minecraft/network/Connection;getAddress()Ljava/net/SocketAddress;
-
disconnect
public void disconnect()- Mappings:
Namespace Name Mixin selector intermediary method_1133Lnet/minecraft/class_117;method_1133()Vglue method_1478Lclass_363;method_1478()Vserver dLjl;d()Vclient cLpf;c()Vnamed disconnectLnet/minecraft/network/Connection;disconnect()V
-
getDelayedSendQueueSize
- Mappings:
Namespace Name Mixin selector intermediary method_1135Lnet/minecraft/class_117;method_1135()Iglue method_1480Lclass_363;method_1480()Iserver eLjl;e()Iclient method_1135Lpf;method_1135()Inamed getDelayedSendQueueSizeLnet/minecraft/network/Connection;getDelayedSendQueueSize()I
-