api: update for tinted block and damage hitsplats
This commit is contained in:
@@ -37,13 +37,21 @@ public class Hitsplat
|
||||
public enum HitsplatType
|
||||
{
|
||||
/**
|
||||
* Blocking damage (blue).
|
||||
* Blocking damage by me (blue).
|
||||
*/
|
||||
BLOCK,
|
||||
BLOCK_ME,
|
||||
/**
|
||||
* Taking damage (red).
|
||||
* Blocking damage by others (blue).
|
||||
*/
|
||||
DAMAGE,
|
||||
BLOCK_OTHER,
|
||||
/**
|
||||
* Taking damage by me (red).
|
||||
*/
|
||||
DAMAGE_ME,
|
||||
/**
|
||||
* Taking damage by others (red).
|
||||
*/
|
||||
DAMAGE_OTHER,
|
||||
/**
|
||||
* Damage from poison (green).
|
||||
*/
|
||||
@@ -72,8 +80,10 @@ public class Hitsplat
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case 0: return BLOCK;
|
||||
case 1: return DAMAGE;
|
||||
case 12: return BLOCK_ME;
|
||||
case 13: return BLOCK_OTHER;
|
||||
case 16: return DAMAGE_ME;
|
||||
case 17: return DAMAGE_OTHER;
|
||||
case 2: return POISON;
|
||||
case 4: return DISEASE;
|
||||
case 5: return VENOM;
|
||||
|
||||
Reference in New Issue
Block a user