Allow mods to blacklist their blocks from Green Grove

This commit is contained in:
Nick 2016-01-23 00:32:10 -08:00
parent f7682e5c29
commit 50bd8514ee
4 changed files with 31 additions and 10 deletions

View file

@ -20,9 +20,10 @@ public class BloodMagicAPI
{
@Getter
private static final List<BlockStack> teleposerBlacklist = new ArrayList<BlockStack>();
@Getter
private static final Map<String, Integer> entitySacrificeValues = new HashMap<String, Integer>();
@Getter
private static final ArrayList<Block> greenGroveBlacklist = new ArrayList<Block>();
@Getter
@Setter
@ -159,4 +160,14 @@ public class BloodMagicAPI
if (!entitySacrificeValues.containsKey(entityClassName))
entitySacrificeValues.put(entityClassName, sacrificeValue);
}
/**
* Blacklists a block from the Green Grove Ritual and Sigil.
*
* @param block - Block to blacklist
*/
public static void blacklistFromGreenGrove(Block block) {
if (!greenGroveBlacklist.contains(block))
greenGroveBlacklist.add(block);
}
}