Skip to content

Instantly share code, notes, and snippets.

@Forkk
Created January 16, 2012 03:30
Show Gist options
  • Save Forkk/1618896 to your computer and use it in GitHub Desktop.
Save Forkk/1618896 to your computer and use it in GitHub Desktop.
// Renderers
HashMap<Class<? extends Entity>, Render> renderMap =
new HashMap<Class<? extends Entity>, Render>();
// Bolt renderer
renderMap.put(EntityBolt.class, new RenderBolt());
// Add the render map
AddRenderer(renderMap);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment