fixes, cmds

This commit is contained in:
Sen 2025-03-19 02:08:41 +01:00
parent 868a5ed9ea
commit c906760bd4
13 changed files with 295 additions and 134 deletions

View file

@ -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());
}