@@ -41,19 +41,19 @@ public class PacketType implements Serializable, Cloneable, Comparable<PacketTyp
41
41
* @author Kristian
42
42
*/
43
43
public static class Handshake {
44
- private static final Protocol PROTOCOL = Protocol .HANDSHAKING ;
44
+ static final Protocol PROTOCOL = Protocol .HANDSHAKING ;
45
45
46
46
/**
47
47
* Incoming packets.
48
48
* @author Kristian
49
49
*/
50
50
public static class Client extends PacketTypeEnum {
51
- private final static Sender SENDER = Sender .CLIENT ;
51
+ private static final Sender SENDER = Sender .CLIENT ;
52
52
53
53
@ ForceAsync
54
54
public static final PacketType SET_PROTOCOL = new PacketType (PROTOCOL , SENDER , 0x00 , "SetProtocol" , "C00Handshake" );
55
55
56
- private final static Client INSTANCE = new Client ();
56
+ private static final Client INSTANCE = new Client ();
57
57
58
58
// Prevent accidental construction
59
59
private Client () { super (); }
@@ -71,8 +71,8 @@ public static Sender getSender() {
71
71
* @author Kristian
72
72
*/
73
73
public static class Server extends PacketTypeEnum {
74
- private final static Sender SENDER = Sender .CLIENT ;
75
- private final static Server INSTANCE = new Server ();
74
+ private static final Sender SENDER = Sender .CLIENT ;
75
+ private static final Server INSTANCE = new Server ();
76
76
private Server () { super (); }
77
77
78
78
public static Server getInstance () {
@@ -93,16 +93,16 @@ public static Protocol getProtocol() {
93
93
* @author Kristian
94
94
*/
95
95
public static class Play {
96
- private static final Protocol PROTOCOL = Protocol .PLAY ;
96
+ static final Protocol PROTOCOL = Protocol .PLAY ;
97
97
98
98
/**
99
99
* Outgoing packets.
100
100
* @author Kristian
101
101
*/
102
102
public static class Server extends PacketTypeEnum {
103
- private final static Sender SENDER = Sender .SERVER ;
103
+ private static final Sender SENDER = Sender .SERVER ;
104
104
105
- public static final PacketType DELIMITER = new PacketType (PROTOCOL , SENDER , 0x00 , "Delimiter" , "BundleDelimiterPacket" );
105
+ public static final PacketType BUNDLE = new PacketType (PROTOCOL , SENDER , 0x00 , "Delimiter" , "BundleDelimiterPacket" );
106
106
public static final PacketType SPAWN_ENTITY = new PacketType (PROTOCOL , SENDER , 0x01 , "SpawnEntity" , "SPacketSpawnObject" );
107
107
public static final PacketType SPAWN_ENTITY_EXPERIENCE_ORB = new PacketType (PROTOCOL , SENDER , 0x02 , "SpawnEntityExperienceOrb" , "SPacketSpawnExperienceOrb" );
108
108
public static final PacketType NAMED_ENTITY_SPAWN = new PacketType (PROTOCOL , SENDER , 0x03 , "NamedEntitySpawn" , "SPacketSpawnPlayer" );
@@ -367,7 +367,7 @@ public static class Server extends PacketTypeEnum {
367
367
@ Deprecated
368
368
public static final PacketType CUSTOM_SOUND_EFFECT = new PacketType (PROTOCOL , SENDER , 0x16 , "CustomSoundEffect" , "SPacketCustomSound" );
369
369
370
- private final static Server INSTANCE = new Server ();
370
+ private static final Server INSTANCE = new Server ();
371
371
372
372
// Prevent accidental construction
373
373
private Server () { super (); }
@@ -385,7 +385,7 @@ public static Server getInstance() {
385
385
* @author Kristian
386
386
*/
387
387
public static class Client extends PacketTypeEnum {
388
- private final static Sender SENDER = Sender .CLIENT ;
388
+ private static final Sender SENDER = Sender .CLIENT ;
389
389
390
390
public static final PacketType TELEPORT_ACCEPT = new PacketType (PROTOCOL , SENDER , 0x00 , "TeleportAccept" , "CPacketConfirmTeleport" );
391
391
public static final PacketType TILE_NBT_QUERY = new PacketType (PROTOCOL , SENDER , 0x01 , "TileNBTQuery" );
@@ -410,7 +410,7 @@ public static class Client extends PacketTypeEnum {
410
410
public static final PacketType POSITION = new PacketType (PROTOCOL , SENDER , 0x14 , "Flying$Position" , "Flying$PacketPlayInPosition" , "CPacketPlayer$Position" );
411
411
public static final PacketType POSITION_LOOK = new PacketType (PROTOCOL , SENDER , 0x15 , "Flying$PositionLook" , "Flying$PacketPlayInPositionLook" , "CPacketPlayer$PositionRotation" );
412
412
public static final PacketType LOOK = new PacketType (PROTOCOL , SENDER , 0x16 , "Flying$Look" , "Flying$PacketPlayInLook" , "CPacketPlayer$Rotation" );
413
- public static final PacketType GROUND = new PacketType (PROTOCOL , SENDER , 0x17 , "Flying$" , "Flying$ d" );
413
+ public static final PacketType GROUND = new PacketType (PROTOCOL , SENDER , 0x17 , "Flying$d" );
414
414
public static final PacketType VEHICLE_MOVE = new PacketType (PROTOCOL , SENDER , 0x18 , "VehicleMove" , "CPacketVehicleMove" );
415
415
public static final PacketType BOAT_MOVE = new PacketType (PROTOCOL , SENDER , 0x19 , "BoatMove" , "CPacketSteerBoat" );
416
416
public static final PacketType PICK_ITEM = new PacketType (PROTOCOL , SENDER , 0x1A , "PickItem" );
@@ -457,7 +457,7 @@ public static class Client extends PacketTypeEnum {
457
457
@ Deprecated
458
458
public static final PacketType CHAT_PREVIEW = new PacketType (PROTOCOL , SENDER , 0x06 , "ChatPreview" );
459
459
460
- private final static Client INSTANCE = new Client ();
460
+ private static final Client INSTANCE = new Client ();
461
461
462
462
// Prevent accidental construction
463
463
private Client () { super (); }
@@ -480,14 +480,14 @@ public static Protocol getProtocol() {
480
480
* @author Kristian
481
481
*/
482
482
public static class Status {
483
- private static final Protocol PROTOCOL = Protocol .STATUS ;
483
+ static final Protocol PROTOCOL = Protocol .STATUS ;
484
484
485
485
/**
486
486
* Outgoing packets.
487
487
* @author Kristian
488
488
*/
489
489
public static class Server extends PacketTypeEnum {
490
- private final static Sender SENDER = Sender .SERVER ;
490
+ private static final Sender SENDER = Sender .SERVER ;
491
491
492
492
@ ForceAsync
493
493
public static final PacketType SERVER_INFO = new PacketType (PROTOCOL , SENDER , 0x00 , "ServerInfo" , "SPacketServerInfo" );
@@ -501,7 +501,7 @@ public static class Server extends PacketTypeEnum {
501
501
@ ForceAsync
502
502
public static final PacketType OUT_SERVER_INFO = SERVER_INFO .clone ();
503
503
504
- private final static Server INSTANCE = new Server ();
504
+ private static final Server INSTANCE = new Server ();
505
505
506
506
// Prevent accidental construction
507
507
private Server () { super (); }
@@ -519,13 +519,13 @@ public static Server getInstance() {
519
519
* @author Kristian
520
520
*/
521
521
public static class Client extends PacketTypeEnum {
522
- private final static Sender SENDER = Sender .CLIENT ;
522
+ private static final Sender SENDER = Sender .CLIENT ;
523
523
524
524
public static final PacketType START = new PacketType (PROTOCOL , SENDER , 0x00 , "Start" , "CPacketServerQuery" );
525
525
@ ForceAsync
526
526
public static final PacketType PING = new PacketType (PROTOCOL , SENDER , 0x01 , "Ping" , "CPacketPing" );
527
527
528
- private final static Client INSTANCE = new Client ();
528
+ private static final Client INSTANCE = new Client ();
529
529
530
530
// Prevent accidental construction
531
531
private Client () { super (); }
@@ -548,14 +548,14 @@ public static Protocol getProtocol() {
548
548
* @author Kristian
549
549
*/
550
550
public static class Login {
551
- private static final Protocol PROTOCOL = Protocol .LOGIN ;
551
+ static final Protocol PROTOCOL = Protocol .LOGIN ;
552
552
553
553
/**
554
554
* Outgoing packets.
555
555
* @author Kristian
556
556
*/
557
557
public static class Server extends PacketTypeEnum {
558
- private final static Sender SENDER = Sender .SERVER ;
558
+ private static final Sender SENDER = Sender .SERVER ;
559
559
560
560
@ ForceAsync
561
561
public static final PacketType DISCONNECT = new PacketType (PROTOCOL , SENDER , 0x00 , "Disconnect" , "SPacketDisconnect" );
@@ -564,7 +564,7 @@ public static class Server extends PacketTypeEnum {
564
564
public static final PacketType SET_COMPRESSION = new PacketType (PROTOCOL , SENDER , 0x03 , "SetCompression" , "SPacketEnableCompression" );
565
565
public static final PacketType CUSTOM_PAYLOAD = new PacketType (PROTOCOL , SENDER , 0x04 , "CustomPayload" , "SPacketCustomPayload" );
566
566
567
- private final static Server INSTANCE = new Server ();
567
+ private static final Server INSTANCE = new Server ();
568
568
569
569
// Prevent accidental construction
570
570
private Server () { super (); }
@@ -582,13 +582,13 @@ public static Server getInstance() {
582
582
* @author Kristian
583
583
*/
584
584
public static class Client extends PacketTypeEnum {
585
- private final static Sender SENDER = Sender .CLIENT ;
585
+ private static final Sender SENDER = Sender .CLIENT ;
586
586
587
587
public static final PacketType START = new PacketType (PROTOCOL , SENDER , 0x00 , "Start" , "CPacketLoginStart" );
588
588
public static final PacketType ENCRYPTION_BEGIN = new PacketType (PROTOCOL , SENDER , 0x01 , "EncryptionBegin" , "CPacketEncryptionResponse" );
589
589
public static final PacketType CUSTOM_PAYLOAD = new PacketType (PROTOCOL , SENDER , 0x02 , "CustomPayload" , "CPacketCustomPayload" );
590
590
591
- private final static Client INSTANCE = new Client ();
591
+ private static final Client INSTANCE = new Client ();
592
592
593
593
// Prevent accidental construction
594
594
private Client () { super (); }
0 commit comments