RuneHive-Game
Loading...
Searching...
No Matches
ByteModification.java
Go to the documentation of this file.
1
package
com.runehive.net.codec;
2
3
/**
4
* Represents RuneScape's custom value types.
5
*
6
* @author nshusa
7
*/
8
public
enum
ByteModification
{
9
10
/**
11
* No modifications
12
*/
13
NONE
,
14
15
/**
16
* Adds 128 to the value when written, subtracts 128 from the rarity when read.
17
*/
18
ADD
,
19
20
/**
21
* Negates the value
22
*/
23
NEG
,
24
25
/**
26
* Subtracts the value from 128 when written, adds 128 to the rarity when read.
27
*/
28
SUB
29
30
}
com.runehive.net.codec.ByteModification
Represents RuneScape's custom value types.
Definition
ByteModification.java:8
com.runehive.net.codec.ByteModification.NONE
NONE
No modifications.
Definition
ByteModification.java:13
com.runehive.net.codec.ByteModification.SUB
SUB
Subtracts the value from 128 when written, adds 128 to the rarity when read.
Definition
ByteModification.java:28
com.runehive.net.codec.ByteModification.ADD
ADD
Adds 128 to the value when written, subtracts 128 from the rarity when read.
Definition
ByteModification.java:18
com.runehive.net.codec.ByteModification.NEG
NEG
Negates the value.
Definition
ByteModification.java:23