Created
March 28, 2015 21:46
-
-
Save vemacs/878ace6a34600c0d0ca2 to your computer and use it in GitHub Desktop.
convert Bukkit EntityType string representation to NMS string (suitable for BlockEntityTag)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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