File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
src/main/java/gg/archipelago/APClient Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ public abstract class APClient {
4848 private String game = "Game not set" ;
4949 private String alias ;
5050 private String [] tags = {};
51+ private int itemsHandlingFlags = 0b000;
5152
5253 public APClient (String saveID , int slotID ) {
5354 loadDataPackage ();
@@ -293,4 +294,12 @@ public String[] getTags() {
293294 }
294295
295296 public abstract void onAttemptConnection (ConnectionAttemptEvent event );
297+
298+ public int getItemsHandlingFlags () {
299+ return itemsHandlingFlags ;
300+ }
301+
302+ public void setItemsHandlingFlags (int itemsHandlingFlags ) {
303+ this .itemsHandlingFlags = itemsHandlingFlags ;
304+ }
296305}
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ public void onMessage(String message) {
8080 connectPacket .uuid = apClient .getUUID ();
8181 connectPacket .game = apClient .getGame ();
8282 connectPacket .tags = apClient .getTags ();
83+ connectPacket .itemsHandling = apClient .getItemsHandlingFlags ();
8384
8485 //send reply
8586 sendPacket (connectPacket );
Original file line number Diff line number Diff line change 55
66public class ConnectPacket extends APPacket {
77
8+ //Indicates you get items sent from other worlds.
9+ public static final int SEND_ITEMS = 0b001;
10+
11+ //send your own items to you (remote items game)
12+ public static final int SEND_OWN_ITEMS = 0b010;
13+
14+ //send starting inventory upon connect
15+ public static final int SEND_STARTING_INVENTORY = 0b100;
16+
817 @ SerializedName ("password" )
918 public String password ;
1019
@@ -20,6 +29,9 @@ public class ConnectPacket extends APPacket {
2029 @ SerializedName ("version" )
2130 public Version version ;
2231
32+ @ SerializedName ("items_handling" )
33+ public int itemsHandling ;
34+
2335 @ SerializedName ("tags" )
2436 public String [] tags ;
2537
You can’t perform that action at this time.
0 commit comments