Made all block fields final
This commit is contained in:
parent
f244f2c053
commit
537ccc092c
25 changed files with 242 additions and 254 deletions
|
@ -38,7 +38,7 @@ public class GuideBloodMagic
|
|||
guideBook.addCategory(new CategoryItemStack(CategoryAlchemy.buildCategory(), "guide.BloodMagic.category.alchemy", new ItemStack(ModItems.arcaneAshes)));
|
||||
guideBook.addCategory(new CategoryItemStack(CategoryArchitect.buildCategory(), "guide.BloodMagic.category.architect", new ItemStack(ModItems.sigilDivination)));
|
||||
guideBook.addCategory(new CategoryItemStack(CategoryDemon.buildCategory(), "guide.BloodMagic.category.demon", new ItemStack(ModItems.bloodShard)));
|
||||
guideBook.addCategory(new CategoryItemStack(CategoryRitual.buildCategory(), "guide.BloodMagic.category.ritual", new ItemStack(ModBlocks.ritualController)));
|
||||
guideBook.addCategory(new CategoryItemStack(CategoryRitual.buildCategory(), "guide.BloodMagic.category.ritual", new ItemStack(ModBlocks.RITUAL_CONTROLLER)));
|
||||
// guideBook.addCategory(new CategoryItemStack(CategorySpell.buildCategory(), "guide.BloodMagic.category.spell", new ItemStack(ModItems.ritualDiviner)));
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ public class CategoryArchitect
|
|||
|
||||
List<IPage> altarPages = new ArrayList<IPage>();
|
||||
|
||||
IRecipe altarRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.altar));
|
||||
IRecipe altarRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.ALTAR));
|
||||
if (altarRecipe != null)
|
||||
{
|
||||
altarPages.add(BookUtils.getPageForRecipe(altarRecipe));
|
||||
|
@ -99,7 +99,7 @@ public class CategoryArchitect
|
|||
|
||||
List<IPage> incensePages = new ArrayList<IPage>();
|
||||
|
||||
IRecipe incenseRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.incenseAltar));
|
||||
IRecipe incenseRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.INCENSE_ALTAR));
|
||||
if (incenseRecipe != null)
|
||||
{
|
||||
incensePages.add(BookUtils.getPageForRecipe(incenseRecipe));
|
||||
|
@ -107,7 +107,7 @@ public class CategoryArchitect
|
|||
|
||||
incensePages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "incense" + ".info.1"), 370));
|
||||
|
||||
IRecipe woodPathRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.pathBlock, 1, 0));
|
||||
IRecipe woodPathRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.PATH_BLOCK, 1, 0));
|
||||
if (woodPathRecipe != null)
|
||||
{
|
||||
incensePages.add(BookUtils.getPageForRecipe(woodPathRecipe));
|
||||
|
@ -118,7 +118,7 @@ public class CategoryArchitect
|
|||
|
||||
List<IPage> runePages = new ArrayList<IPage>();
|
||||
|
||||
IRecipe runeRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.bloodRune, 1, 0));
|
||||
IRecipe runeRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.BLOOD_RUNE, 1, 0));
|
||||
if (runeRecipe != null)
|
||||
{
|
||||
runePages.add(BookUtils.getPageForRecipe(runeRecipe));
|
||||
|
@ -140,7 +140,7 @@ public class CategoryArchitect
|
|||
|
||||
List<IPage> speedRunePages = new ArrayList<IPage>();
|
||||
|
||||
IRecipe speedRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.bloodRune, 1, 1));
|
||||
IRecipe speedRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.BLOOD_RUNE, 1, 1));
|
||||
if (speedRecipe != null)
|
||||
{
|
||||
speedRunePages.add(BookUtils.getPageForRecipe(speedRecipe));
|
||||
|
@ -218,7 +218,7 @@ public class CategoryArchitect
|
|||
|
||||
List<IPage> runeSacrificePages = new ArrayList<IPage>();
|
||||
|
||||
IRecipe runeSacrificeRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.bloodRune, 1, 3));
|
||||
IRecipe runeSacrificeRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.BLOOD_RUNE, 1, 3));
|
||||
if (runeSacrificeRecipe != null)
|
||||
{
|
||||
runeSacrificePages.add(BookUtils.getPageForRecipe(runeSacrificeRecipe));
|
||||
|
@ -229,7 +229,7 @@ public class CategoryArchitect
|
|||
|
||||
List<IPage> runeSelfSacrificePages = new ArrayList<IPage>();
|
||||
|
||||
IRecipe runeSelfSacrificeRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.bloodRune, 1, 4));
|
||||
IRecipe runeSelfSacrificeRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.BLOOD_RUNE, 1, 4));
|
||||
if (runeSelfSacrificeRecipe != null)
|
||||
{
|
||||
runeSelfSacrificePages.add(BookUtils.getPageForRecipe(runeSelfSacrificeRecipe));
|
||||
|
@ -353,7 +353,7 @@ public class CategoryArchitect
|
|||
|
||||
List<IPage> capacityPages = new ArrayList<IPage>();
|
||||
|
||||
IRecipe capacityRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.bloodRune, 1, 4));
|
||||
IRecipe capacityRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.BLOOD_RUNE, 1, 4));
|
||||
if (capacityRecipe != null)
|
||||
{
|
||||
capacityPages.add(BookUtils.getPageForRecipe(capacityRecipe));
|
||||
|
@ -364,7 +364,7 @@ public class CategoryArchitect
|
|||
|
||||
List<IPage> displacementPages = new ArrayList<IPage>();
|
||||
|
||||
IRecipe displacementRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.bloodRune, 1, 4));
|
||||
IRecipe displacementRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.BLOOD_RUNE, 1, 4));
|
||||
if (displacementRecipe != null)
|
||||
{
|
||||
displacementPages.add(BookUtils.getPageForRecipe(displacementRecipe));
|
||||
|
@ -483,7 +483,7 @@ public class CategoryArchitect
|
|||
teleposerPages.add(new PageAltarRecipe(teleposerFocusRecipe));
|
||||
}
|
||||
|
||||
IRecipe teleposerRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.teleposer));
|
||||
IRecipe teleposerRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.TELEPOSER));
|
||||
if (teleposerRecipe != null)
|
||||
{
|
||||
teleposerPages.add(BookUtils.getPageForRecipe(teleposerRecipe));
|
||||
|
@ -544,7 +544,7 @@ public class CategoryArchitect
|
|||
|
||||
List<IPage> orbRunePages = new ArrayList<IPage>();
|
||||
|
||||
IRecipe orbRuneRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.bloodRune, 1, 8));
|
||||
IRecipe orbRuneRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.BLOOD_RUNE, 1, 8));
|
||||
if (orbRuneRecipe != null)
|
||||
{
|
||||
orbRunePages.add(BookUtils.getPageForRecipe(orbRuneRecipe));
|
||||
|
@ -657,7 +657,7 @@ public class CategoryArchitect
|
|||
|
||||
List<IPage> mimicPages = new ArrayList<IPage>();
|
||||
|
||||
IRecipe mimicRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.mimic, 1, 1));
|
||||
IRecipe mimicRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.MIMIC, 1, 1));
|
||||
if (mimicRecipe != null)
|
||||
{
|
||||
mimicPages.add(BookUtils.getPageForRecipe(mimicRecipe));
|
||||
|
|
|
@ -51,7 +51,7 @@ public class CategoryDemon
|
|||
List<IPage> forgePages = new ArrayList<IPage>();
|
||||
forgePages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "forge" + ".info.1"), 370));
|
||||
|
||||
IRecipe forgeRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.soulForge));
|
||||
IRecipe forgeRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.SOUL_FORGE));
|
||||
if (forgeRecipe != null)
|
||||
{
|
||||
forgePages.add(BookUtils.getPageForRecipe(forgeRecipe));
|
||||
|
@ -100,22 +100,22 @@ public class CategoryDemon
|
|||
entries.put(new ResourceLocation(keyBase + "sentientGem"), new EntryText(sentientGemPages, TextHelper.localize(keyBase + "sentientGem"), true));
|
||||
|
||||
List<IPage> routingPages = new ArrayList<IPage>();
|
||||
TartaricForgeRecipe nodeRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.itemRoutingNode));
|
||||
TartaricForgeRecipe nodeRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.ITEM_ROUTING_NODE));
|
||||
if (nodeRecipe != null)
|
||||
{
|
||||
routingPages.add(new PageTartaricForgeRecipe(nodeRecipe));
|
||||
}
|
||||
TartaricForgeRecipe inputNodeRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.inputRoutingNode));
|
||||
TartaricForgeRecipe inputNodeRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.INPUT_ROUTING_NODE));
|
||||
if (inputNodeRecipe != null)
|
||||
{
|
||||
routingPages.add(new PageTartaricForgeRecipe(inputNodeRecipe));
|
||||
}
|
||||
TartaricForgeRecipe outputNodeRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.outputRoutingNode));
|
||||
TartaricForgeRecipe outputNodeRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.OUTPUT_ROUTING_NODE));
|
||||
if (outputNodeRecipe != null)
|
||||
{
|
||||
routingPages.add(new PageTartaricForgeRecipe(outputNodeRecipe));
|
||||
}
|
||||
TartaricForgeRecipe masterNodeRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.masterRoutingNode));
|
||||
TartaricForgeRecipe masterNodeRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.MASTER_ROUTING_NODE));
|
||||
if (masterNodeRecipe != null)
|
||||
{
|
||||
routingPages.add(new PageTartaricForgeRecipe(masterNodeRecipe));
|
||||
|
@ -142,7 +142,7 @@ public class CategoryDemon
|
|||
|
||||
List<IPage> cruciblePages = new ArrayList<IPage>();
|
||||
|
||||
TartaricForgeRecipe crucibleRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.demonCrucible));
|
||||
TartaricForgeRecipe crucibleRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.DEMON_CRUCIBLE));
|
||||
if (crucibleRecipe != null)
|
||||
{
|
||||
cruciblePages.add(new PageTartaricForgeRecipe(crucibleRecipe));
|
||||
|
@ -153,7 +153,7 @@ public class CategoryDemon
|
|||
|
||||
List<IPage> crystallizerPages = new ArrayList<IPage>();
|
||||
|
||||
TartaricForgeRecipe crystallizerRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.demonCrystallizer));
|
||||
TartaricForgeRecipe crystallizerRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.DEMON_CRYSTALLIZER));
|
||||
if (crystallizerRecipe != null)
|
||||
{
|
||||
crystallizerPages.add(new PageTartaricForgeRecipe(crystallizerRecipe));
|
||||
|
@ -164,7 +164,7 @@ public class CategoryDemon
|
|||
|
||||
List<IPage> clusterPages = new ArrayList<IPage>();
|
||||
|
||||
TartaricForgeRecipe clusterRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.demonCrystal));
|
||||
TartaricForgeRecipe clusterRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.DEMON_CRYSTAL));
|
||||
if (clusterRecipe != null)
|
||||
{
|
||||
clusterPages.add(new PageTartaricForgeRecipe(clusterRecipe));
|
||||
|
@ -175,7 +175,7 @@ public class CategoryDemon
|
|||
|
||||
List<IPage> pylonPages = new ArrayList<IPage>();
|
||||
|
||||
TartaricForgeRecipe pylonRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.demonPylon));
|
||||
TartaricForgeRecipe pylonRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(ModBlocks.DEMON_PYLON));
|
||||
if (pylonRecipe != null)
|
||||
{
|
||||
pylonPages.add(new PageTartaricForgeRecipe(pylonRecipe));
|
||||
|
|
|
@ -9,7 +9,6 @@ import mezz.jei.api.IJeiHelpers;
|
|||
import mezz.jei.api.IModRegistry;
|
||||
import mezz.jei.api.JEIPlugin;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fml.common.Loader;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import WayofTime.bloodmagic.api.Constants;
|
||||
import WayofTime.bloodmagic.api.livingArmour.LivingArmourHandler;
|
||||
|
@ -58,11 +57,11 @@ public class BloodMagicPlugin extends BlankModPlugin
|
|||
registry.addDescription(new ItemStack(ModItems.altarMaker), "jei.BloodMagic.desc.altarBuilder");
|
||||
registry.addDescription(new ItemStack(ModItems.monsterSoul), "jei.BloodMagic.desc.demonicWill");
|
||||
|
||||
jeiHelper.getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.bloodLight));
|
||||
jeiHelper.getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.spectralBlock));
|
||||
jeiHelper.getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.phantomBlock));
|
||||
jeiHelper.getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.alchemyArray));
|
||||
jeiHelper.getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.dimensionalPortal, 1, OreDictionary.WILDCARD_VALUE));
|
||||
jeiHelper.getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.BLOOD_LIGHT));
|
||||
jeiHelper.getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.SPECTRAL_BLOCK));
|
||||
jeiHelper.getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.PHANTOM_BLOCK));
|
||||
jeiHelper.getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.ALCHEMY_ARRAY));
|
||||
jeiHelper.getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.DIMENSIONAL_PORTAL, 1, OreDictionary.WILDCARD_VALUE));
|
||||
|
||||
for (Map.Entry<String, Integer> entry : LivingArmourHandler.upgradeMaxLevelMap.entrySet())
|
||||
{
|
||||
|
@ -79,11 +78,11 @@ public class BloodMagicPlugin extends BlankModPlugin
|
|||
|
||||
registry.addRecipeClickArea(GuiSoulForge.class, 115, 15, 16, 88, Constants.Compat.JEI_CATEGORY_SOULFORGE);
|
||||
|
||||
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.altar), Constants.Compat.JEI_CATEGORY_ALTAR);
|
||||
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.soulForge), Constants.Compat.JEI_CATEGORY_SOULFORGE);
|
||||
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.ALTAR), Constants.Compat.JEI_CATEGORY_ALTAR);
|
||||
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.SOUL_FORGE), Constants.Compat.JEI_CATEGORY_SOULFORGE);
|
||||
registry.addRecipeCategoryCraftingItem(new ItemStack(ModItems.arcaneAshes), Constants.Compat.JEI_CATEGORY_ALCHEMYARRAY);
|
||||
registry.addRecipeCategoryCraftingItem(new ItemStack(ModItems.arcaneAshes), Constants.Compat.JEI_CATEGORY_BINDING);
|
||||
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.alchemyTable), Constants.Compat.JEI_CATEGORY_ALCHEMYTABLE);
|
||||
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.ALCHEMY_TABLE), Constants.Compat.JEI_CATEGORY_ALCHEMYTABLE);
|
||||
|
||||
jeiHelper.getNbtIgnoreList().ignoreNbtTagNames(Constants.NBT.OWNER_UUID);
|
||||
jeiHelper.getNbtIgnoreList().ignoreNbtTagNames(Constants.NBT.OWNER_NAME);
|
||||
|
|
|
@ -22,7 +22,7 @@ public class DataProviderAlchemyArray implements IWailaDataProvider
|
|||
@Override
|
||||
public ItemStack getWailaStack(IWailaDataAccessor accessor, IWailaConfigHandler config)
|
||||
{
|
||||
return new ItemStack(ModItems.arcaneAshes).setStackDisplayName(TextHelper.getFormattedText(ModBlocks.alchemyArray.getLocalizedName()));
|
||||
return new ItemStack(ModItems.arcaneAshes).setStackDisplayName(TextHelper.getFormattedText(ModBlocks.ALCHEMY_ARRAY.getLocalizedName()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -21,7 +21,7 @@ public class DataProviderMimic implements IWailaDataProvider
|
|||
public ItemStack getWailaStack(IWailaDataAccessor accessor, IWailaConfigHandler config)
|
||||
{
|
||||
TileMimic mimic = (TileMimic) accessor.getTileEntity();
|
||||
return mimic != null && mimic.getStackInSlot(0) != null ? mimic.getStackInSlot(0) : new ItemStack(ModBlocks.mimic, 1, mimic.getBlockMetadata());
|
||||
return mimic != null && mimic.getStackInSlot(0) != null ? mimic.getStackInSlot(0) : new ItemStack(ModBlocks.MIMIC, 1, mimic.getBlockMetadata());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue