flip around entity type enum values
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2024-09-12 19:17:48 -04:00
parent cdd44bd362
commit b84c5aff49

View File

@ -11,22 +11,23 @@ public class EntityTypes {
* The non-common entity types have a unique creation flow * The non-common entity types have a unique creation flow
*/ */
public static enum EntityType { public static enum EntityType {
/**
* The common entity type
*/
COMMON(0),
/** /**
* A creature * A creature
*/ */
CREATURE(0), CREATURE(1),
/** /**
* An item * An item
*/ */
ITEM(1), ITEM(2),
/**
* The common entity type
*/
COMMON(2),
/** /**
* A piece of foliage * A piece of foliage
*/ */
FOLIAGE(3); FOLIAGE(3)
;
/** /**
* the value of the enum * the value of the enum
@ -59,11 +60,11 @@ public class EntityTypes {
public static EntityType fromInt(int value){ public static EntityType fromInt(int value){
switch(value){ switch(value){
case 0: case 0:
return EntityType.CREATURE;
case 1:
return EntityType.ITEM;
case 2:
return EntityType.COMMON; return EntityType.COMMON;
case 1:
return EntityType.CREATURE;
case 2:
return EntityType.ITEM;
case 3: case 3:
return EntityType.FOLIAGE; return EntityType.FOLIAGE;
} }