fixes, cmds
This commit is contained in:
parent
868a5ed9ea
commit
c906760bd4
13 changed files with 295 additions and 134 deletions
|
@ -262,6 +262,15 @@ public abstract class EntityRegistry {
|
|||
return integer == null ? 0 : integer.intValue();
|
||||
}
|
||||
|
||||
public static int getEntityID(Class<? extends Entity> clazz) {
|
||||
Integer integer = CLASS_TO_ID.get(clazz);
|
||||
return integer == null ? 0 : integer.intValue();
|
||||
}
|
||||
|
||||
public static Class<? extends Entity> getEntityClass(int id) {
|
||||
return ID_TO_CLASS.get(id);
|
||||
}
|
||||
|
||||
public static String getEntityString(Entity entityIn) {
|
||||
return CLASS_TO_STRING.get(entityIn.getClass());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue