diff options
author | md_5 <git@md-5.net> | 2018-07-24 10:49:18 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-24 10:49:18 +1000 |
commit | d6214b1988f3815e323c1c32c6885468ce21905e (patch) | |
tree | c694d0079d55cdf2ba31a57768cfafba830688e6 /src | |
parent | 971cb0bb3486b2087a9204efb745db4e388ee402 (diff) | |
download | bukkit-d6214b1988f3815e323c1c32c6885468ce21905e.tar bukkit-d6214b1988f3815e323c1c32c6885468ce21905e.tar.gz bukkit-d6214b1988f3815e323c1c32c6885468ce21905e.tar.lz bukkit-d6214b1988f3815e323c1c32c6885468ce21905e.tar.xz bukkit-d6214b1988f3815e323c1c32c6885468ce21905e.zip |
SPIGOT-4128: Greatly improve spawn egg deserialization
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/entity/EntityType.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/EntityType.java b/src/main/java/org/bukkit/entity/EntityType.java index 636bae8b..b17f2b74 100644 --- a/src/main/java/org/bukkit/entity/EntityType.java +++ b/src/main/java/org/bukkit/entity/EntityType.java @@ -293,6 +293,20 @@ public enum EntityType { ID_MAP.put(type.typeId, type); } } + + // Add legacy names + NAME_MAP.put("xp_orb", EXPERIENCE_ORB); + NAME_MAP.put("eye_of_ender_signal", ENDER_SIGNAL); + NAME_MAP.put("xp_bottle", THROWN_EXP_BOTTLE); + NAME_MAP.put("fireworks_rocket", FIREWORK); + NAME_MAP.put("evocation_fangs", EVOKER_FANGS); + NAME_MAP.put("evocation_illager", EVOKER); + NAME_MAP.put("vindication_illager", VINDICATOR); + NAME_MAP.put("illusion_illager", ILLUSIONER); + NAME_MAP.put("commandblock_minecart", MINECART_COMMAND); + NAME_MAP.put("snowman", SNOWMAN); + NAME_MAP.put("villager_golem", IRON_GOLEM); + NAME_MAP.put("ender_crystal", ENDER_CRYSTAL); } private EntityType(String name, Class<? extends Entity> clazz, int typeId) { |