ForgePatch/patches/minecraft/net/minecraft/entity/EntitySpawnPlacementRegistr...

16 lines
636 B
Diff

--- ../src-base/minecraft/net/minecraft/entity/EntitySpawnPlacementRegistry.java
+++ ../src-work/minecraft/net/minecraft/entity/EntitySpawnPlacementRegistry.java
@@ -52,6 +52,12 @@
return (EntityLiving.SpawnPlacementType)field_180110_a.get(p_180109_0_);
}
+ public static void setPlacementType(Class<? extends Entity> entityClass, EntityLiving.SpawnPlacementType placementType)
+ {
+ if(!field_180110_a.containsKey(entityClass))
+ field_180110_a.put(entityClass, placementType);
+ }
+
static
{
field_180110_a.put(EntityBat.class, EntityLiving.SpawnPlacementType.ON_GROUND);