flip around entity type enum values
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
This commit is contained in:
parent
cdd44bd362
commit
b84c5aff49
@ -11,22 +11,23 @@ public class EntityTypes {
|
||||
* The non-common entity types have a unique creation flow
|
||||
*/
|
||||
public static enum EntityType {
|
||||
/**
|
||||
* The common entity type
|
||||
*/
|
||||
COMMON(0),
|
||||
/**
|
||||
* A creature
|
||||
*/
|
||||
CREATURE(0),
|
||||
CREATURE(1),
|
||||
/**
|
||||
* An item
|
||||
*/
|
||||
ITEM(1),
|
||||
/**
|
||||
* The common entity type
|
||||
*/
|
||||
COMMON(2),
|
||||
ITEM(2),
|
||||
/**
|
||||
* A piece of foliage
|
||||
*/
|
||||
FOLIAGE(3);
|
||||
FOLIAGE(3)
|
||||
;
|
||||
|
||||
/**
|
||||
* the value of the enum
|
||||
@ -59,11 +60,11 @@ public class EntityTypes {
|
||||
public static EntityType fromInt(int value){
|
||||
switch(value){
|
||||
case 0:
|
||||
return EntityType.CREATURE;
|
||||
case 1:
|
||||
return EntityType.ITEM;
|
||||
case 2:
|
||||
return EntityType.COMMON;
|
||||
case 1:
|
||||
return EntityType.CREATURE;
|
||||
case 2:
|
||||
return EntityType.ITEM;
|
||||
case 3:
|
||||
return EntityType.FOLIAGE;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user