@SubscribeEvent public static void preConfig(EnderIOLifecycleEvent.Config.Pre event) { CapturedMob.addToUnspawnableList(new ResourceLocation("chickens", "chickenschicken")); }
CapturedMob.addToBlackList(value); } else if (IMC.SOUL_VIAL_UNSPAWNABLELIST.equals(key)) { CapturedMob.addToUnspawnableList(value);
@Override public void register(@Nonnull String recipeName) { if (isValid() && isActive()) { for (Entity entity : entities) { if (entity.isDefault()) { PoweredSpawnerRecipeRegistry.getInstance().setDefaultCostMultiplier(entity.getCostMultiplier()); PoweredSpawnerRecipeRegistry.getInstance().setAllowUnconfiguredMobs(!entity.isDisabled()); } else if (entity.isBoss()) { CapturedMob.setBossesBlacklisted(!entity.isSoulvial()); } else { if (entity.isDisabled()) { PoweredSpawnerRecipeRegistry.getInstance().addToBlacklist(entity.getMob().getEntityName()); } else { PoweredSpawnerRecipeRegistry.getInstance().addEntityCost(entity.getMob().getEntityName(), entity.getCostMultiplier()); } if (entity.isClone()) { CapturedMob.addToUnspawnableList(entity.getMob().getEntityName()); } if (!entity.isSoulvial()) { CapturedMob.addToBlackList(entity.getMob().getEntityName()); } } } } }