Skip to content

Instantly share code, notes, and snippets.

@vemacs
Created March 28, 2015 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vemacs/878ace6a34600c0d0ca2 to your computer and use it in GitHub Desktop.
Save vemacs/878ace6a34600c0d0ca2 to your computer and use it in GitHub Desktop.
convert Bukkit EntityType string representation to NMS string (suitable for BlockEntityTag)
private static Map<String, String> bukkitToNMS = ImmutableMap.<String, String>builder()
.put("horse", "EntityHorse")
.put("mushroom_cow", "MushroomCow")
.put("magma_cube", "LavaSlime")
.put("snowman", "SnowMan")
.put("silverfish", "Silverfish")
.put("cave_spider", "CaveSpider")
.put("iron_golem", "VillagerGolem")
.put("ender_dragon", "EnderDragon")
.put("pig_zombie", "PigZombie")
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment