forked from ArchipelagoMW/Java-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lots and Lots of Documentation. and it's still not enough...
- Loading branch information
Showing
10 changed files
with
164 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
package dev.koifysh.archipelago; | ||
|
||
/** | ||
* Item Flag variables to read {@link Client#getItemsHandlingFlags()} and set {@link Client#setItemsHandlingFlags(int)} | ||
* <br> | ||
* Current item flags: {@link #SEND_ITEMS} {@link #SEND_OWN_ITEMS} {@link #SEND_STARTING_INVENTORY} | ||
*/ | ||
public class ItemFlags { | ||
|
||
//Indicates you get items sent from other worlds. | ||
/** | ||
* Tells the server to send you items from other worlds. | ||
*/ | ||
public static final int SEND_ITEMS = 0b001; | ||
|
||
//send your own items to you (remote items game) | ||
/** | ||
* Tells the server to send your own items to you (remote items game) | ||
*/ | ||
public static final int SEND_OWN_ITEMS = 0b010; | ||
|
||
//send starting inventory upon connect | ||
/** | ||
* Tells the server to send you any items that You should start with. | ||
* don't set this if you handle starting items by some kind of data file. | ||
*/ | ||
public static final int SEND_STARTING_INVENTORY = 0b100; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/main/java/dev/koifysh/archipelago/events/DeathLinkEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/dev/koifysh/archipelago/events/PrintJSONEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package dev.koifysh.archipelago.events; | ||
|
||
import dev.koifysh.archipelago.Print.APPrint; | ||
import dev.koifysh.archipelago.parts.NetworkItem; | ||
|
||
/** | ||
* event that is fired when the server wishes to send a message to the user. | ||
*/ | ||
public class PrintJSONEvent implements Event { | ||
|
||
public APPrint apPrint; | ||
public String type; | ||
public int player; | ||
public NetworkItem item; | ||
|
||
/** | ||
* @param apPrint list of message segments. | ||
* @param type the type of the received message. | ||
* @param player int id of the sending player. | ||
* @param item the network item that is involved with the message. | ||
*/ | ||
public PrintJSONEvent(APPrint apPrint, String type, int player, NetworkItem item) { | ||
this.apPrint = apPrint; | ||
this.type = type; | ||
this.player = player; | ||
this.item = item; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters