added breeding tracking

This commit is contained in:
gnembon committed 2019-07-28 09:01:30 -03:00
1 parent aac4563268
commit e021ca39b2
4 files changed
+158 -62

No files matched your search

+4 -1
View File
@@ -25,6 +25,8 @@ public class MobAI
public static boolean isTracking(Entity e, TrackingType type)
{
if (e.getEntityWorld().isClient())
return false;
Set<TrackingType> currentTrackers = aiTrackers.get(e.getType());
if (currentTrackers == null)
return false;
@@ -72,7 +74,8 @@ public class MobAI
public enum TrackingType
{
IRON_GOLEM_SPAWNING("iron_golem_spawning", Sets.newHashSet(EntityType.VILLAGER));
IRON_GOLEM_SPAWNING("iron_golem_spawning", Sets.newHashSet(EntityType.VILLAGER)),
VILLAGER_BREEDING("villager_breeding", Sets.newHashSet(EntityType.VILLAGER));
public Set<EntityType> types;
public String name;
TrackingType(String name, Set<EntityType> applicableTypes)