Skip to content

Instantly share code, notes, and snippets.

Created September 10, 2015 00:01
Show Gist options
  • Save anonymous/9b3ba93f9b08182ca708 to your computer and use it in GitHub Desktop.
Save anonymous/9b3ba93f9b08182ca708 to your computer and use it in GitHub Desktop.
Class<? extends EntityLivingBase> clazz = PageData.getModelClass(jObject.get("model").getAsString());
if(clazz != null) {
try {
EntityLivingBase model = clazz.newInstance();
clazz.getConstructor(Minecraft.getMinecraft().theWorld.getClass());
dino.setEntityModel(model);
}
catch(Exception e) {
e.printStackTrace();
}
}
return dino;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment