Implement Entity blacklist for WoS

This commit is contained in:
Nick 2016-01-09 18:05:21 -08:00
parent 9eee22affc
commit 351aa3e74c
3 changed files with 21 additions and 8 deletions

View file

@ -14,6 +14,7 @@ import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.oredict.OreDictionary;
import java.io.File;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@ -32,6 +33,9 @@ public class ConfigHandler
public static List itemBlacklist;
public static List blockBlacklist;
// Well of Suffering Blacklist
public static List<String> wellOfSufferingBlacklist;
// Potion ID's
public static int customPotionDrowningID;
public static int customPotionBoostID;
@ -112,6 +116,10 @@ public class ConfigHandler
teleposerBlacklisting = config.getStringList("teleposerBlacklist", category, new String[] { "minecraft:bedrock" }, "Stops specified blocks from being teleposed. Put entries on new lines. Valid syntax is:\nmodid:blockname:meta");
buildTeleposerBlacklist();
category = "Well of Suffering Blacklist";
config.addCustomCategoryComment(category, "Entity blacklisting from WoS");
wellOfSufferingBlacklist = Arrays.asList(config.getStringList("wellOfSufferingBlacklist", category, new String[] {}, "Use the class name of the Entity to blacklist it from usage.\nIE: EntityWolf, EntityWitch, etc"));
category = "Potions";
config.addCustomCategoryComment(category, "Potion settings");
config.addCustomCategoryComment(category + ".id", "Potion ID settings");