Magnet (Botania)
Description
Add or remove items from the magnet blacklist
Identifier
Refer to this via any of the following:
mods.botania.magnet/* Used as page default */
mods.botania.MagnetAdding Entries
Adds the given Block, IBlockState, or IIngredient to the magnet blacklist:
groovymods.botania.magnet.addToBlacklist(Block, int)Adds the given Block, IBlockState, or IIngredient to the magnet blacklist:
groovymods.botania.magnet.addToBlacklist(IBlockState)Adds the given Block, IBlockState, or IIngredient to the magnet blacklist:
groovymods.botania.magnet.addToBlacklist(IIngredient)
Example
mods.botania.magnet.addToBlacklist(item('minecraft:diamond'))Removing Entries
Removes the given Block, IBlockState, or IIngredient from the magnet blacklist:
groovymods.botania.magnet.removeFromBlacklist(Block, int)Removes the given Block, IBlockState, or IIngredient from the magnet blacklist:
groovymods.botania.magnet.removeFromBlacklist(IBlockState)Removes the given Block, IBlockState, or IIngredient from the magnet blacklist:
groovymods.botania.magnet.removeFromBlacklist(IIngredient)
Getting the value of entries
Checks if the given Block, IBlockState, or IIngredient is prevented from being interacted with by the magnet:
groovymods.botania.magnet.isInBlacklist(Block, int)Checks if the given Block, IBlockState, or IIngredient is prevented from being interacted with by the magnet:
groovymods.botania.magnet.isInBlacklist(IBlockState)Checks if the given Block, IBlockState, or IIngredient is prevented from being interacted with by the magnet:
groovymods.botania.magnet.isInBlacklist(IIngredient)
