Compare commits

..
10 Commits
Author SHA1 Message Date
Martin Robertz 77f61fd033 update 2025-12-09 15:09:35 +01:00
Martin Robertz 522ca71ef7 Merge remote-tracking branch 'origin/hazmat-protecting-bound-armor' into dev 2025-12-09 15:09:01 +01:00
Martin Robertz 8613e4ac0c Merge remote-tracking branch 'origin/recipe-tooltip' into dev 2025-12-09 15:08:56 +01:00
Martin Robertz ae7265cc99 Merge remote-tracking branch 'origin/calcinator' into dev 2025-12-09 15:08:43 +01:00
Worive b29dc7d66a Add hazmat protection to bound and omega armors 2025-12-09 11:40:25 +01:00
koolkrafter5 aa5cfa8a40 Remove "Press shift for Recipe" tooltip from alchemy items 2025-11-29 16:14:24 -05:00
koolkrafter5 f0e045061a Bind unbound blood orbs that are placed into the calcinator by players
Only allow reagents in the top slot and blood orbs in the bottom slot
Take the full reagent stack from the player's hand instead of only one item
2025-11-29 15:20:49 -05:00
Martin Robertz 49b1d051e8 update 2025-10-16 10:45:07 +02:00
koolkrafter5andgithub-actions[bot] 65acf4c4b0 Fix some issues in NEI handlers (#105)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-15 17:18:43 +00:00
koolkrafter5 c89a320168 NEI Info Pages (#104) 2025-10-15 16:12:27 +00:00
28 changed files with 315 additions and 367 deletions

No files matched your search

+9 -8
View File
@@ -23,16 +23,17 @@
*/
dependencies {
api("com.github.GTNewHorizons:waila:1.9.0:dev")
api("com.github.GTNewHorizons:NotEnoughItems:2.8.9-GTNH:dev")
api("com.github.GTNewHorizons:waila:1.9.15:dev")
api("com.github.GTNewHorizons:NotEnoughItems:2.8.40-GTNH:dev")
api("com.github.GTNewHorizons:GTNHLib:0.8.25:dev")
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.52.31:dev") {transitive = false }
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.52.134:dev") {transitive = false }
compileOnly("com.github.GTNewHorizons:Botania:1.13.3-GTNH:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ForestryMC:4.10.17:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.6.8:dev") {transitive = false }
compileOnly("com.github.GTNewHorizons:Botania:1.13.6-GTNH:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ForestryMC:4.11.2:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.7.2:dev") {transitive = false }
compileOnly("com.github.GTNewHorizons:Chisel:2.17.0-GTNH:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:Chisel:2.17.7-GTNH:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ZenScript:1.0.0-GTNH") {transitive = false }
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.2:dev") {transitive = false }
@@ -40,5 +41,5 @@ dependencies {
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev") {transitive = false }
compileOnly("curse.maven:guide-api-228832:2287185") {transitive = false }
compileOnly("com.github.GTNewHorizons:StructureLib:1.4.23:dev")
compileOnly("com.github.GTNewHorizons:StructureLib:1.4.24:dev")
}
+9 -1
View File
@@ -96,7 +96,9 @@ usesMixinDebug = false
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
mixinPlugin =
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
# Specify the package that contains all of your Mixins. The package must exist or
# the build will fail. If you have a package property defined in your mixins.<modid>.json,
# it must match with this or the build will fail.
mixinsPackage =
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
@@ -172,6 +174,12 @@ curseForgeRelations =
# projects. New projects should not use this parameter.
customArchiveBaseName = BloodMagic
# Optional parameter to customize the default working directory used by the runClient* tasks. Relative to the project directory.
# runClientWorkingDirectory = run/client
# Optional parameter to customize the default working directory used by the runServer* tasks. Relative to the project directory.
# runServerWorkingDirectory = run/server
# Optional parameter to have the build automatically fail if an illegal version is used.
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
# The check is ONLY performed if the version is a git tag.
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Vendored
+2 -2
View File
@@ -114,7 +114,7 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
CLASSPATH="\\\"\\\""
# Determine the Java command to use to start the JVM.
@@ -213,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"
# Stop when "xargs" is not available.
Vendored
+2 -2
View File
@@ -70,11 +70,11 @@ goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
set CLASSPATH=
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
:end
@rem End local scope for the variables with windows NT shell
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.43'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.48'
}
@@ -38,8 +38,4 @@ public class Reagent {
return colourIntensity;
}
@Override
public boolean equals(Object o) {
return o instanceof Reagent && this == o && name.equals(((Reagent) o).name);
}
}
@@ -2,6 +2,7 @@ package WayofTime.alchemicalWizardry.client.nei;
import net.minecraft.nbt.NBTTagCompound;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import cpw.mods.fml.common.event.FMLInterModComms;
public class IMCForNEI {
@@ -12,6 +13,95 @@ public class IMCForNEI {
sendCatalyst("alchemicalwizardry.meteor", "AWWayofTime:masterStone");
sendCatalyst("alchemicalwizardry.bindingritual", "AWWayofTime:masterStone");
sendCatalyst("alchemicalwizardry.calcinator", "AWWayofTime:blockAlchemicCalcinator");
// Blood Altar Progression
sendInfoPage(
"AWWayofTime: Altar,sacrificialKnife",
"nei.infopage.bloodAltar.1." + (AlchemicalWizardry.wimpySettings ? "b" : "a"));
sendInfoPage("AWWayofTime: Altar", "nei.infopage.bloodAltar.2");
sendInfoPage("AWWayofTime: Altar,bucketLife", "nei.infopage.bloodAltar.3");
sendInfoPage("AWWayofTime: Altar,weakBloodOrb", "nei.infopage.bloodAltar.4");
sendInfoPage(
"AWWayofTime: Altar,apprenticeBloodOrb|<AWWayofTime:AlchemicalWizardrybloodRune>",
"nei.infopage.bloodAltar.5");
sendInfoPage("AWWayofTime: Altar,magicianBloodOrb|<minecraft:glowstone>", "nei.infopage.bloodAltar.6");
sendInfoPage("AWWayofTime: Altar,masterBloodOrb,largeBloodStoneBrick", "nei.infopage.bloodAltar.7");
sendInfoPage("AWWayofTime: Altar,archmageBloodOrb|minecraft:beacon", "nei.infopage.bloodAltar.8");
sendInfoPage("AWWayofTime: Altar,transcendentBloodOrb|<AWWayofTime:blockCrystal>", "nei.infopage.bloodAltar.9");
// Incense
sendInfoPage("AWWayofTime: incense,sacrificialKnife,blockCrucible", "nei.infopage.incense.1");
sendInfoPage(
"AWWayofTime: incense,sacrificialKnife,blockCrucible",
"nei.infopage.incense.2." + (AlchemicalWizardry.wimpySettings ? "b" : "a"));
sendInfoPage("AWWayofTime: incense,sacrificialKnife,blockCrucible", "nei.infopage.incense.3");
// Sacrifices
sendInfoPage("AWWayofTime runeOfSacrifice,daggerOfSacrifice", "nei.infopage.sacrifice.1");
sendInfoPage("AWWayofTime runeOfSacrifice,daggerOfSacrifice", "nei.infopage.sacrifice.2");
sendInfoPage("AWWayofTime runeOfSacrifice,daggerOfSacrifice", "nei.infopage.sacrifice.3");
// Altar Runes
sendInfoPage("<AWWayofTime:AlchemicalWizardrybloodRune:1>", "nei.infopage.rune.augmentedCapacity");
sendInfoPage("<AWWayofTime:AlchemicalWizardrybloodRune:2>", "nei.infopage.rune.dislocation");
sendInfoPage("<AWWayofTime:AlchemicalWizardrybloodRune:3>", "nei.infopage.rune.orb");
sendInfoPage("<AWWayofTime:AlchemicalWizardrybloodRune:4>", "nei.infopage.rune.superiorCapacity");
sendInfoPage("<AWWayofTime:AlchemicalWizardrybloodRune:5>", "nei.infopage.rune.acceleration");
sendInfoPage("<AWWayofTime:AlchemicalWizardrybloodRune:6>", "nei.infopage.rune.quickness");
sendInfoPage("<AWWayofTime:speedRune>", "nei.infopage.rune.speed");
sendInfoPage("<AWWayofTime:efficiencyRune>", "nei.infopage.rune.efficiency");
sendInfoPage("AWWayofTime runeOfSacrifice,daggerOfSacrifice", "nei.infopage.rune.sacrifice");
sendInfoPage("AWWayofTime runeOfSelfSacrifice,sacrificialKnife", "nei.infopage.rune.selfSacrifice");
sendInfoPage(
"<AWWayofTime:AlchemicalWizardrybloodRune>|AWWayofTime runeOfSacrifice,daggerOfSacrifice",
"nei.infopage.rune.blank");
// Progression Items
sendInfoPage(
"AWWayofTime: masterBloodOrb,largeBloodStoneBrick,weakBloodShard,energySword,alchemyFlask",
"nei.infopage.bloodShards");
sendInfoPage(
"AWWayofTime: masterBloodOrb,demonBloodShard,blockPlinth,blockPedestal,aether,aquasalus,incendium,sanctus,tennebrae|<AWWayofTime:terrae>",
"nei.infopage.demonShards.1");
sendInfoPage(
"AWWayofTime: masterBloodOrb,demonBloodShard,blockPlinth,blockPedestal,aether,aquasalus,incendium,sanctus,tennebrae|<AWWayofTime:terrae>",
"nei.infopage.demonShards.2");
sendInfoPage(
"AWWayofTime: demonBloodShard,blockPlinth,blockPedestal,aether,aquasalus,incendium,sanctus,tennebrae|<AWWayofTime:terrae>",
"nei.infopage.demonShards.3");
sendInfoPage(
"AWWayofTime:bloodMagicBaseItems 28,29|<AWWayofTime:blockCrystal>",
"nei.infopage.convocationShards");
// Blood Orb / Soul Network Explanation
sendInfoPage(
"AWWayofTime: BloodOrb|<avaritia:orb_armok>|<ForbiddenMagic:EldritchOrb>|<BloodArsenal:transparent_orb>",
"nei.infopage.bloodOrbs.1");
sendInfoPage(
"AWWayofTime: BloodOrb|<avaritia:orb_armok>|<ForbiddenMagic:EldritchOrb>|<BloodArsenal:transparent_orb>",
"nei.infopage.bloodOrbs.2");
sendInfoPage(
"AWWayofTime: BloodOrb|<avaritia:orb_armok>|<ForbiddenMagic:EldritchOrb>|<BloodArsenal:transparent_orb>",
"nei.infopage.bloodOrbs.3");
sendInfoPage(
"AWWayofTime: BloodOrb,divinationSigil|<avaritia:orb_armok>|<ForbiddenMagic:EldritchOrb>|<BloodArsenal:transparent_orb>",
"nei.infopage.bloodOrbs.4");
// Rituals
sendInfoPage("<AWWayofTime:imperfectRitualStone>", "nei.infopage.rituals.weak.1");
sendInfoPage("<AWWayofTime:imperfectRitualStone>", "nei.infopage.rituals.weak.2");
sendInfoPage(
"<AWWayofTime:ritualStone>|AWWayofTime masterStone,itemRitualDiviner,ScribeTool|activationCrystal 0,1",
"nei.infopage.rituals.1");
sendInfoPage(
"<AWWayofTime:ritualStone>|AWWayofTime masterStone,itemRitualDiviner,ScribeTool|activationCrystal 0,1",
"nei.infopage.rituals.2");
sendInfoPage(
"<AWWayofTime:ritualStone>|AWWayofTime masterStone,itemRitualDiviner,ScribeTool|activationCrystal 0,1",
"nei.infopage.rituals.3");
// Reagents
sendInfoPage("AWWayofTime masterStone,blockAlchemicCalcinator", "nei.infopage.reagents.1");
sendInfoPage("AWWayofTime masterStone,blockAlchemicCalcinator|<AWWayofTime:terrae>", "nei.infopage.reagents.2");
sendInfoPage("AWWayofTime masterStone,blockAlchemicCalcinator,itemAttunedCrystal", "nei.infopage.reagents.3");
sendInfoPage(
"AWWayofTime masterStone,blockAlchemicCalcinator,itemTankSegmenter,itemDestinationClearer",
"nei.infopage.reagents.4");
sendInfoPage(
"AWWayofTime masterStone,blockAlchemicCalcinator,blockReagentConduit,CrystalBelljar",
"nei.infopage.reagents.5");
}
private static void sendHandler(String handlerName, String stack, int height, int recipesPerPage) {
@@ -37,4 +127,11 @@ public class IMCForNEI {
private static void sendCatalyst(String handlerName, String stack) {
sendCatalyst(handlerName, stack, 0);
}
private static void sendInfoPage(String filter, String page) {
NBTTagCompound NBT = new NBTTagCompound();
NBT.setString("filter", filter);
NBT.setString("page", page);
FMLInterModComms.sendMessage("NotEnoughItems", "addItemInfo", NBT);
}
}
@@ -5,6 +5,7 @@ import static WayofTime.alchemicalWizardry.client.nei.NEIConfig.getBloodOrbs;
import java.awt.Rectangle;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import net.minecraft.client.gui.inventory.GuiContainer;
@@ -29,15 +30,14 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
public class CachedAlchemyRecipe extends CachedRecipe {
ArrayList<ItemStack> orbs;
PositionedStack output;
List<PositionedStack> inputs;
int lp;
private final PositionedStack orbs;
private final PositionedStack output;
private final List<PositionedStack> inputs;
private final int lp;
public CachedAlchemyRecipe(AlchemyRecipe recipe, ItemStack orb) {
this(recipe);
this.orbs = new ArrayList<>();
orbs.add(orb);
this.orbs.setPermutationToRender(orb);
}
public CachedAlchemyRecipe(AlchemyRecipe recipe) {
@@ -51,12 +51,13 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
this.inputs = inputs;
this.output = new PositionedStack(recipe.getResult(), 76, 25);
this.lp = recipe.getAmountNeeded() * 100;
this.orbs = new ArrayList<>();
List<ItemStack> orbStacks = new ArrayList<>();
for (Item orb : getBloodOrbs()) {
if (((IBloodOrb) orb).getOrbLevel() >= recipe.getOrbLevel()) {
orbs.add(new ItemStack(orb));
orbStacks.add(new ItemStack(orb));
}
}
orbs = new PositionedStack(orbStacks, 136, 47);
}
@Override
@@ -70,12 +71,8 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
}
@Override
public PositionedStack getOtherStack() {
if (orbs == null || orbs.isEmpty()) return null;
PositionedStack stack = new PositionedStack(orbs, 136, 47, false);
stack.setPermutationToRender((cycleticks / 48) % orbs.size());
stack.setMaxSize(1);
return stack;
public List<PositionedStack> getOtherStacks() {
return getCycledIngredients(cycleticks / 20, Collections.singletonList(orbs));
}
}
@@ -25,10 +25,10 @@ public class NEIAltarRecipeHandler extends TemplateRecipeHandler {
public class CachedAltarRecipe extends CachedRecipe {
PositionedStack input;
private final PositionedStack input;
// PositionedStack inputItems;
PositionedStack output;
int tier, lp_amount, consumption, drain;
private final PositionedStack output;
private final int tier, lp_amount, consumption, drain;
public CachedAltarRecipe(AltarRecipe recipe) {
// inputItems = new PositionedStack(recipe.input, 38, 2, false);
@@ -29,7 +29,7 @@ public class NEIBindingRitualHandler extends TemplateRecipeHandler {
public class CachedBindingRecipe extends CachedRecipe {
PositionedStack input, output;
private final PositionedStack input, output;
public CachedBindingRecipe(BindingRecipe recipe) {
input = new PositionedStack(recipe.requiredItem, 37, 21, false);
@@ -2,10 +2,12 @@ package WayofTime.alchemicalWizardry.client.nei;
import static WayofTime.alchemicalWizardry.client.ClientUtils.mc;
import static WayofTime.alchemicalWizardry.client.nei.NEIConfig.ARROW_TEXTURE;
import static codechicken.lib.gui.GuiDraw.fontRenderer;
import java.awt.Rectangle;
import java.util.Collections;
import java.util.List;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.item.ItemStack;
@@ -28,19 +30,39 @@ public class NEICalcinatorHandler extends TemplateRecipeHandler {
public class CachedReagentInfo extends CachedRecipe {
private final Reagent reagent;
private final PositionedStack stack;
private final PositionedStack orbs;
private final int amount;
private final int color;
private final String amountText;
private final int amountTextWidth;
private final String nameText;
private final int nameTextWidth;
private static final int ARROW_WIDTH = 24;
private static final int ARROW_HEIGHT = 16;
private static final int FILL_TIME = 192;
private static final int HOLD_TIME = 8;
public CachedReagentInfo(ReagentStack reagent) {
this.reagent = reagent.reagent;
this.stack = new PositionedStack(ReagentRegistry.getItemForReagent(reagent.reagent), 32, 6);
this.amount = reagent.amount;
this.color = reagent.reagent.getColourRed() << 16 | reagent.reagent.getColourGreen() << 8
| reagent.reagent.getColourBlue();
ItemStack[] orbStacks = NEIConfig.getBloodOrbs().stream().map(ItemStack::new).toArray(ItemStack[]::new);
this.orbs = new PositionedStack(orbStacks, 32, 33);
this.amountText = String.format("%,d AR", amount);
this.amountTextWidth = fontRenderer.getStringWidth(amountText);
this.nameText = this.reagent.name;
this.nameTextWidth = fontRenderer.getStringWidth(nameText);
}
@Override
public PositionedStack getResult() {
return new PositionedStack(ReagentRegistry.getItemForReagent(reagent), 32, 6);
return stack;
}
public Reagent getReagent() {
@@ -54,39 +76,29 @@ public class NEICalcinatorHandler extends TemplateRecipeHandler {
public void onDraw(int x, int y) {
drawColoredProgressBar(x, y);
String amountText = String.format("%,d AR", amount);
FontRenderer fontRenderer = mc.fontRenderer;
int textWidth = fontRenderer.getStringWidth(amountText);
int textX = x + 84 - (textWidth / 2);
int textX = x + 84 - (amountTextWidth / 2);
int textY = y + 19;
fontRenderer.drawString(amountText, textX, textY, 0x000000);
textWidth = fontRenderer.getStringWidth(reagent.name);
textX = x + 84 - (textWidth / 2);
textY = y + 29;
fontRenderer.drawString(reagent.name, textX, textY, color);
textX = x + 84 - (nameTextWidth / 2);
textY += 10;
int color = reagent.getColourRed() << 16 | reagent.getColourGreen() << 8 | reagent.getColourBlue();
fontRenderer.drawString(nameText, textX, textY, color);
}
private void drawColoredProgressBar(int x, int y) {
int arrowX = x + 25;
int arrowY = y + 19;
int arrowWidth = 24;
int arrowHeight = 16;
int fillTime = 192;
int holdTime = 8;
int totalCycle = fillTime + holdTime;
int totalCycle = FILL_TIME + HOLD_TIME;
int cycleTick = cycleticks % totalCycle;
int fillWidth;
if (cycleTick < fillTime) {
fillWidth = cycleTick * arrowWidth / fillTime;
if (cycleTick < FILL_TIME) {
fillWidth = cycleTick * ARROW_WIDTH / FILL_TIME;
} else {
fillWidth = arrowWidth;
fillWidth = ARROW_WIDTH;
}
TextureManager texManager = mc.getTextureManager();
@@ -94,35 +106,33 @@ public class NEICalcinatorHandler extends TemplateRecipeHandler {
Tessellator tessellator = Tessellator.instance;
GL11.glPushMatrix();
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
float r = ((color >> 16) & 0xFF) / 255f;
float g = ((color >> 8) & 0xFF) / 255f;
float b = (color & 0xFF) / 255f;
GL11.glColor4f(r, g, b, 1.0f);
GL11.glColor4ub(
(byte) reagent.getColourRed(),
(byte) reagent.getColourGreen(),
(byte) reagent.getColourBlue(),
(byte) 255);
tessellator.startDrawingQuads();
tessellator.addVertexWithUV(arrowX, arrowY + arrowHeight, 0, 0, 1);
tessellator.addVertexWithUV(arrowX + fillWidth, arrowY + arrowHeight, 0, fillWidth / (float) arrowWidth, 1);
tessellator.addVertexWithUV(arrowX + fillWidth, arrowY, 0, fillWidth / (float) arrowWidth, 0);
tessellator.addVertexWithUV(arrowX, arrowY + ARROW_HEIGHT, 0, 0, 1);
tessellator
.addVertexWithUV(arrowX + fillWidth, arrowY + ARROW_HEIGHT, 0, fillWidth / (float) ARROW_WIDTH, 1);
tessellator.addVertexWithUV(arrowX + fillWidth, arrowY, 0, fillWidth / (float) ARROW_WIDTH, 0);
tessellator.addVertexWithUV(arrowX, arrowY, 0, 0, 0);
tessellator.draw();
GL11.glDisable(GL11.GL_BLEND);
GL11.glPopAttrib();
GL11.glPopMatrix();
}
@Override
public PositionedStack getOtherStack() {
ItemStack[] orbStacks = NEIConfig.getBloodOrbs().stream().map(ItemStack::new).toArray(ItemStack[]::new);
PositionedStack stack = new PositionedStack(orbStacks, 32, 33, true);
stack.setPermutationToRender((cycleticks / 20) % orbStacks.length);
return stack;
public List<PositionedStack> getIngredients() {
return getCycledIngredients(cycleticks / 20, Collections.singletonList(this.orbs));
}
}
@@ -151,24 +161,26 @@ public class NEICalcinatorHandler extends TemplateRecipeHandler {
ReagentStack rs = ReagentRegistry.getReagentStackForItem(result);
if (rs != null) {
arecipes.add(new CachedReagentInfo(rs));
} else { // Check reagents in crystal belljars or other reagent storages
NBTTagCompound tagCompound = result.getTagCompound();
if (tagCompound == null || tagCompound.hasNoTags()) {
return;
}
NBTTagList tagList = tagCompound.getTagList("reagentTanks", Constants.NBT.TAG_COMPOUND);
if (tagList.tagList.isEmpty()) {
return;
}
for (int i = 0; i < tagList.tagCount(); i++) {
// Get the proper size of the ReagentStack created by melting the item for this reagent
NBTTagCompound savedTag = tagList.getCompoundTagAt(i);
ReagentStack reagent = ReagentContainer.readFromNBT(savedTag).getReagent();
ItemStack reagentItem = ReagentRegistry.getItemForReagent(reagent.reagent);
ReagentStack reagentStackForItem = ReagentRegistry.getReagentStackForItem(reagentItem);
if (reagentStackForItem != null) {
arecipes.add(new CachedReagentInfo(reagentStackForItem));
}
return;
}
// Check reagents in crystal belljars or other reagent storages
NBTTagCompound tagCompound = result.getTagCompound();
if (tagCompound == null || tagCompound.hasNoTags()) {
return;
}
NBTTagList tagList = tagCompound.getTagList("reagentTanks", Constants.NBT.TAG_COMPOUND);
if (tagList.tagList.isEmpty()) {
return;
}
for (int i = 0; i < tagList.tagCount(); i++) {
// Get the proper size of the ReagentStack created by melting the item for this reagent
NBTTagCompound savedTag = tagList.getCompoundTagAt(i);
ReagentStack reagent = ReagentContainer.readFromNBT(savedTag).getReagent();
if (reagent == null) continue;
ItemStack reagentItem = ReagentRegistry.getItemForReagent(reagent.reagent);
ReagentStack reagentStackForItem = ReagentRegistry.getReagentStackForItem(reagentItem);
if (reagentStackForItem != null) {
arecipes.add(new CachedReagentInfo(reagentStackForItem));
}
}
}
@@ -191,7 +203,7 @@ public class NEICalcinatorHandler extends TemplateRecipeHandler {
@Override
public void loadTransferRects() {
transferRects.add(new RecipeTransferRect(new Rectangle(54, 23, 23, 16), "alchemicalwizardry.calcinator"));
transferRects.add(new RecipeTransferRect(new Rectangle(55, 18, 24, 17), "alchemicalwizardry.calcinator"));
}
@Override
@@ -20,13 +20,9 @@ public class NEIConfig implements IConfigureNEI {
"alchemicalwizardry",
"gui/nei/arrow.png");
public static ArrayList<Item> getBloodOrbs() {
public synchronized static ArrayList<Item> getBloodOrbs() {
if (bloodOrbs == null) {
synchronized (NEIConfig.class) {
if (bloodOrbs == null) {
bloodOrbs = collectAllBloodOrbs();
}
}
bloodOrbs = collectAllBloodOrbs();
}
return bloodOrbs;
}
@@ -39,7 +35,7 @@ public class NEIConfig implements IConfigureNEI {
}
}
if (bloodOrbsTemp.isEmpty()) {
// If there is NEI no cache - go to item registry
// If there is no NEI cache - go to item registry
for (Object anItemRegistry : Item.itemRegistry) {
Item item = (Item) anItemRegistry;
if (item instanceof IBloodOrb) {
@@ -50,12 +46,12 @@ public class NEIConfig implements IConfigureNEI {
return bloodOrbsTemp;
}
public static ArrayList<Item> getOrbsByCapacity() {
public synchronized static ArrayList<Item> getOrbsByCapacity() {
if (byCapacity == null) {
byCapacity = new ArrayList<>(getBloodOrbs());
byCapacity.sort((a, b) -> {
if (a instanceof IBloodOrb && b instanceof IBloodOrb) {
return Integer.compare(((IBloodOrb) a).getMaxEssence(), ((IBloodOrb) b).getMaxEssence());
if (a instanceof IBloodOrb orbA && b instanceof IBloodOrb orbB) {
return Integer.compare(orbA.getMaxEssence(), orbB.getMaxEssence());
}
return 0;
});
@@ -16,6 +16,8 @@ import net.minecraft.util.IIcon;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBindable;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
import WayofTime.alchemicalWizardry.api.items.interfaces.IReagentManipulator;
import WayofTime.alchemicalWizardry.common.tileEntity.TEAlchemicCalcinator;
@@ -87,12 +89,10 @@ public class BlockAlchemicCalcinator extends BlockContainer {
Random rand = new Random();
TileEntity tileEntity = world.getTileEntity(x, y, z);
if (!(tileEntity instanceof IInventory)) {
if (!(tileEntity instanceof IInventory inventory)) {
return;
}
IInventory inventory = (IInventory) tileEntity;
for (int i = 0; i < inventory.getSizeInventory(); i++) {
ItemStack item = inventory.getStackInSlot(i);
@@ -139,18 +139,17 @@ public class BlockAlchemicCalcinator extends BlockContainer {
if (playerItem.getItem() instanceof IBloodOrb) {
if (tileEntity.getStackInSlot(0) == null) {
IBindable.checkAndSetItemOwner(playerItem, player);
ItemStack newItem = playerItem.copy();
newItem.stackSize = 1;
--playerItem.stackSize;
tileEntity.setInventorySlotContents(0, newItem);
}
} else if (tileEntity.getStackInSlot(1) == null) {
ItemStack newItem = playerItem.copy();
newItem.stackSize = 1;
--playerItem.stackSize;
tileEntity.setInventorySlotContents(1, newItem);
}
} else if (tileEntity.getStackInSlot(1) == null
&& ReagentRegistry.getReagentStackForItem(playerItem) != null) {
tileEntity.setInventorySlotContents(1, playerItem);
player.inventory.setInventorySlotContents(player.inventory.currentItem, null);
}
} else {
if (tileEntity.getStackInSlot(1) != null) {
player.inventory.addItemStackToInventory(tileEntity.getStackInSlot(1));
@@ -7,16 +7,12 @@ import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.IIcon;
import net.minecraft.util.MathHelper;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import org.lwjgl.input.Keyboard;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.api.alchemy.AlchemyRecipeRegistry;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBindable;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -48,51 +44,13 @@ public class ActivationCrystal extends EnergyItems {
}
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List,
boolean par4) {
switch (par1ItemStack.getItemDamage()) {
case 0: {
par3List.add(StatCollector.translateToLocal("tooltip.activationcrystal.lowlevelrituals"));
break;
}
case 1: {
par3List.add(StatCollector.translateToLocal("tooltip.activationcrystal.powerfulrituals"));
if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
ItemStack[] recipe = AlchemyRecipeRegistry.getRecipeForItemStack(par1ItemStack);
if (recipe != null) {
par3List.add(
EnumChatFormatting.BLUE + StatCollector.translateToLocal("tooltip.alchemy.recipe"));
for (ItemStack item : recipe) {
if (item != null) {
par3List.add("" + item.getDisplayName());
}
}
}
} else {
par3List.add(
"-" + StatCollector.translateToLocal("tooltip.alchemy.press")
+ " "
+ EnumChatFormatting.BLUE
+ StatCollector.translateToLocal("tooltip.alchemy.shift")
+ EnumChatFormatting.GRAY
+ " "
+ StatCollector.translateToLocal("tooltip.alchemy.forrecipe")
+ "-");
}
break;
}
case 2: {
par3List.add(StatCollector.translateToLocal("tooltip.activationcrystal.creativeonly"));
break;
}
case 0 -> par3List.add(StatCollector.translateToLocal("tooltip.activationcrystal.lowlevelrituals"));
case 1 -> par3List.add(StatCollector.translateToLocal("tooltip.activationcrystal.powerfulrituals"));
case 2 -> par3List.add(StatCollector.translateToLocal("tooltip.activationcrystal.creativeonly"));
}
addBindingInformation(par1ItemStack, par3List);
}
@@ -7,16 +7,11 @@ import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.IIcon;
import net.minecraft.util.MathHelper;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import org.lwjgl.input.Keyboard;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.api.alchemy.AlchemyRecipeRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -46,43 +41,15 @@ public class ItemAlchemyBase extends Item {
}
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List,
boolean par4) {
par3List.add(StatCollector.translateToLocal("tooltip.alchemy.usedinalchemy"));
if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
ItemStack[] recipe = AlchemyRecipeRegistry.getRecipeForItemStack(par1ItemStack);
if (recipe != null) {
par3List.add(EnumChatFormatting.BLUE + StatCollector.translateToLocal("tooltip.alchemy.recipe"));
for (ItemStack item : recipe) {
if (item != null) {
par3List.add("" + item.getDisplayName());
}
}
}
} else {
par3List.add(
"-" + StatCollector.translateToLocal("tooltip.alchemy.press")
+ " "
+ EnumChatFormatting.BLUE
+ StatCollector.translateToLocal("tooltip.alchemy.shift")
+ EnumChatFormatting.GRAY
+ " "
+ StatCollector.translateToLocal("tooltip.alchemy.forrecipe")
+ "-");
}
}
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
return par1ItemStack;
}
@Override
public String getUnlocalizedName(ItemStack itemStack) {
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, ITEM_NAMES.length - 1);
return ("" + "item.bloodMagicAlchemyItem." + ITEM_NAMES[meta]);
return ("item.bloodMagicAlchemyItem." + ITEM_NAMES[meta]);
}
@Override
@@ -94,7 +61,7 @@ public class ItemAlchemyBase extends Item {
@Override
@SideOnly(Side.CLIENT)
public void getSubItems(Item id, CreativeTabs creativeTab, List list) {
public void getSubItems(Item id, CreativeTabs creativeTab, List<ItemStack> list) {
for (int meta = 0; meta < ITEM_NAMES.length; ++meta) {
list.add(new ItemStack(id, 1, meta));
}
@@ -33,6 +33,8 @@ import cpw.mods.fml.common.Optional;
import cpw.mods.fml.common.Optional.Interface;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gregtech.api.hazards.Hazard;
import gregtech.api.hazards.IHazardProtector;
import thaumcraft.api.IGoggles;
import thaumcraft.api.IRunicArmor;
import thaumcraft.api.nodes.IRevealer;
@@ -40,9 +42,10 @@ import thaumcraft.api.nodes.IRevealer;
@Optional.InterfaceList(
value = { @Interface(iface = "thaumcraft.api.nodes.IRevealer", modid = "Thaumcraft"),
@Interface(iface = "thaumcraft.api.IGoggles", modid = "Thaumcraft"),
@Interface(iface = "thaumcraft.api.IRunicArmor", modid = "Thaumcraft") })
public class BoundArmour extends ItemArmor
implements IAlchemyGoggles, ISpecialArmor, IBindable, IRevealer, IGoggles, IRunicArmor, ILPGauge {
@Interface(iface = "thaumcraft.api.IRunicArmor", modid = "Thaumcraft"),
@Interface(iface = "gregtech.api.hazards.IHazardProtector", modid = "gregtech_nh") })
public class BoundArmour extends ItemArmor implements IAlchemyGoggles, ISpecialArmor, IBindable, IRevealer, IGoggles,
IRunicArmor, ILPGauge, IHazardProtector {
private static int invSize = 9;
@@ -751,4 +754,11 @@ public class BoundArmour extends ItemArmor
return false;
}
/// GT5 Hazmat protection
@Optional.Method(modid = "gregtech_nh")
@Override
public boolean protectsAgainst(ItemStack itemStack, Hazard hazard) {
return true;
}
}
@@ -6,14 +6,10 @@ import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;
import org.lwjgl.input.Keyboard;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.ModItems;
import WayofTime.alchemicalWizardry.api.alchemy.AlchemyRecipeRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -70,31 +66,8 @@ public class AlchemyReagent extends Item {
}
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List,
boolean par4) {
par3List.add(StatCollector.translateToLocal("tooltip.alchemy.usedinalchemy"));
if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
ItemStack[] recipe = AlchemyRecipeRegistry.getRecipeForItemStack(par1ItemStack);
if (recipe != null) {
par3List.add(EnumChatFormatting.BLUE + StatCollector.translateToLocal("tooltip.alchemy.recipe"));
for (ItemStack item : recipe) {
if (item != null) {
par3List.add("" + item.getDisplayName());
}
}
}
} else {
par3List.add(
"-" + StatCollector.translateToLocal("tooltip.alchemy.press")
+ " "
+ EnumChatFormatting.BLUE
+ StatCollector.translateToLocal("tooltip.alchemy.shift")
+ EnumChatFormatting.GRAY
+ " "
+ StatCollector.translateToLocal("tooltip.alchemy.forrecipe")
+ "-");
}
}
}
@@ -5,13 +5,9 @@ import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;
import org.lwjgl.input.Keyboard;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.api.alchemy.AlchemyRecipeRegistry;
import WayofTime.alchemicalWizardry.common.ICatalyst;
public class LengtheningCatalyst extends Item implements ICatalyst {
@@ -34,31 +30,8 @@ public class LengtheningCatalyst extends Item implements ICatalyst {
}
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List,
boolean par4) {
par3List.add(StatCollector.translateToLocal("tooltip.alchemy.usedinalchemy"));
if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
ItemStack[] recipe = AlchemyRecipeRegistry.getRecipeForItemStack(par1ItemStack);
if (recipe != null) {
par3List.add(EnumChatFormatting.BLUE + StatCollector.translateToLocal("tooltip.alchemy.recipe"));
for (ItemStack item : recipe) {
if (item != null) {
par3List.add("" + item.getDisplayName());
}
}
}
} else {
par3List.add(
"-" + StatCollector.translateToLocal("tooltip.alchemy.press")
+ " "
+ EnumChatFormatting.BLUE
+ StatCollector.translateToLocal("tooltip.alchemy.shift")
+ EnumChatFormatting.GRAY
+ " "
+ StatCollector.translateToLocal("tooltip.alchemy.forrecipe")
+ "-");
}
}
}
@@ -5,13 +5,9 @@ import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;
import org.lwjgl.input.Keyboard;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.api.alchemy.AlchemyRecipeRegistry;
import WayofTime.alchemicalWizardry.common.ICatalyst;
public class PowerCatalyst extends Item implements ICatalyst {
@@ -35,31 +31,8 @@ public class PowerCatalyst extends Item implements ICatalyst {
}
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List,
boolean par4) {
par3List.add(StatCollector.translateToLocal("tooltip.alchemy.usedinalchemy"));
if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
ItemStack[] recipe = AlchemyRecipeRegistry.getRecipeForItemStack(par1ItemStack);
if (recipe != null) {
par3List.add(EnumChatFormatting.BLUE + StatCollector.translateToLocal("tooltip.alchemy.recipe"));
for (ItemStack item : recipe) {
if (item != null) {
par3List.add("" + item.getDisplayName());
}
}
}
} else {
par3List.add(
"-" + StatCollector.translateToLocal("tooltip.alchemy.press")
+ " "
+ EnumChatFormatting.BLUE
+ StatCollector.translateToLocal("tooltip.alchemy.shift")
+ EnumChatFormatting.GRAY
+ " "
+ StatCollector.translateToLocal("tooltip.alchemy.forrecipe")
+ "-");
}
}
}
@@ -6,13 +6,9 @@ import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;
import org.lwjgl.input.Keyboard;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.api.alchemy.AlchemyRecipeRegistry;
import WayofTime.alchemicalWizardry.common.IBindingAgent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -36,31 +32,8 @@ public class StandardBindingAgent extends Item implements IBindingAgent {
}
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List,
boolean par4) {
par3List.add(StatCollector.translateToLocal("tooltip.alchemy.usedinalchemy"));
if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
ItemStack[] recipe = AlchemyRecipeRegistry.getRecipeForItemStack(par1ItemStack);
if (recipe != null) {
par3List.add(EnumChatFormatting.BLUE + StatCollector.translateToLocal("tooltip.alchemy.recipe"));
for (ItemStack item : recipe) {
if (item != null) {
par3List.add("" + item.getDisplayName());
}
}
}
} else {
par3List.add(
"-" + StatCollector.translateToLocal("tooltip.alchemy.press")
+ " "
+ EnumChatFormatting.BLUE
+ StatCollector.translateToLocal("tooltip.alchemy.shift")
+ EnumChatFormatting.GRAY
+ " "
+ StatCollector.translateToLocal("tooltip.alchemy.forrecipe")
+ "-");
}
}
}
@@ -7,13 +7,9 @@ import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;
import org.lwjgl.input.Keyboard;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.api.alchemy.AlchemyRecipeRegistry;
import WayofTime.alchemicalWizardry.common.IFillingAgent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -51,31 +47,8 @@ public class WeakFillingAgent extends Item implements IFillingAgent {
}
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List,
boolean par4) {
par3List.add(StatCollector.translateToLocal("tooltip.alchemy.usedinalchemy"));
if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
ItemStack[] recipe = AlchemyRecipeRegistry.getRecipeForItemStack(par1ItemStack);
if (recipe != null) {
par3List.add(EnumChatFormatting.BLUE + StatCollector.translateToLocal("tooltip.alchemy.recipe"));
for (ItemStack item : recipe) {
if (item != null) {
par3List.add("" + item.getDisplayName());
}
}
}
} else {
par3List.add(
"-" + StatCollector.translateToLocal("tooltip.alchemy.press")
+ " "
+ EnumChatFormatting.BLUE
+ StatCollector.translateToLocal("tooltip.alchemy.shift")
+ EnumChatFormatting.GRAY
+ " "
+ StatCollector.translateToLocal("tooltip.alchemy.forrecipe")
+ "-");
}
}
}
@@ -318,7 +318,9 @@ public class TEAlchemicCalcinator extends TEReagentConduit implements IInventory
@Override
public boolean isItemValidForSlot(int slot, ItemStack itemStack) {
return true;
if (itemStack == null) return false;
return (slot == 0 && itemStack.getItem() instanceof IBloodOrb)
|| (slot == 1 && ReagentRegistry.getReagentStackForItem(itemStack) != null);
}
@Override
@@ -423,11 +423,7 @@ tooltip.alchemy.coords=Coords:
tooltip.alchemy.damage=Damage:
tooltip.alchemy.dimension=Bound Dimension:
tooltip.alchemy.direction=Direction:
tooltip.alchemy.forrecipe=for Recipe
tooltip.alchemy.press=Press
tooltip.alchemy.recipe=Recipe:
tooltip.alchemy.ritualid=RitualID:
tooltip.alchemy.shift=shift
tooltip.alchemy.usedinalchemy=Used in Alchemy
tooltip.alchemyflask.caution=CAUTION: Contents are throwable
tooltip.alchemyflask.swigsleft=Swigs Left:
@@ -683,3 +679,59 @@ structurelib.bloodmagic.altar.2=Hold 1-6 Hologram Projectors to determine the ti
structurelib.bloodmagic.altar.3=Tier %s pillars accept any block
structurelib.bloodmagic.altar.4=Tier %s caps accept any block
structurelib.bloodmagic.altar.5=Tier 5 beacons accept any block
# GTNH NEI Information Pages
# Blood Altar Progression
nei.infopage.bloodAltar.1.a=The Blood Altar is the bleeding heart of Blood Magic: Alchemical Wizardry.\n\nTo begin your journey to immense power, place it in the world and use a Sacrificial Knife while standing close to the altar to turn 1 heart into raw Life Essence.
nei.infopage.bloodAltar.1.b=The Blood Altar is the bleeding heart of Blood Magic: Alchemical Wizardry.\n\nTo begin your journey to immense power, place it in the world and use a Sacrificial Orb while standing close to the altar to turn 1 heart into raw Life Essence.
nei.infopage.bloodAltar.2=Once the Blood Altar holds enough Life Essence, you may place an item inside with right-click. Compatible offerings will absorb Life Essence from the altar and be transmuted. Items can be removed with an empty hand. They may also be inserted and extracted with hoppers and pipes.
nei.infopage.bloodAltar.3=Alongside its main crafting pool, the Blood Altar has two internal fluid buffers: one for input, one for output. Life Essence will slowly seep between the altar's main storage and buffers, which handle all interactions with any manner of fluid pipe or pump. Both buffers have a capacity of 1/10th of the altar's main pool.
nei.infopage.bloodAltar.4=Your first offering should be used to create a Weak Blood Orb. Once created, right-click with it in hand to bind it to your soul. Once bound, it can be placed in the Blood Altar to add life essence to your Soul Network in the form of LP.
nei.infopage.bloodAltar.5=The Blood Altar may be strengthened with Blood Runes. Construct a 3×3 ring beneath its base to reach Tier 2. Each new tier awakens greater transmutations.
nei.infopage.bloodAltar.6=Upgrading the Blood Altar to Tier 3 requires 20 additional Runes in a 7×7 ring (centered on the altar, place 5 on each side) placed one block below the previous ring. Place two-block tall pillars in the corners made from any material and cap them with blocks of Glowstone. The gaps between rings of Runes may be filled by any cosmetic block, or nothing at all.
nei.infopage.bloodAltar.7=Upgrading the Blood Altar to Tier 4 requires 28 additional Runes in an 11×11 ring (centered on the altar, place 7 on each side) placed one block below the previous ring. Place four-block tall pillars in the corners made from any material and cap them with Large Bloodstone Bricks. The Bloodstone should stand one block above the Glowstone.
nei.infopage.bloodAltar.8=Upgrading the Blood Altar to Tier 5 requires 52 additional Runes in a 17×17 ring (centered on the altar, place 13 on each side) placed one block below the previous ring. Place one Beacon in each corner, one block above the Runes. The altar's structure can accommodate the maximum size beacon base for all four beacons.
nei.infopage.bloodAltar.9=Upgrading the Blood Altar to Tier 6 requires 76 additional Runes in a 23×23 ring (centered on the altar, place 19 on each side) placed one block below the previous ring. Place seven-block tall pillars in the corners made from any material and cap them with Crystal Cluster blocks. These caps should stand one block above the Bloodstone used for Tier 4.
# Incense
nei.infopage.incense.1=The Incense Crucible empowers self-sacrifice. Place one near your Blood Altar for each type of incense you will use, and add them with right-click. The flames and colored smoke will fade once the incense is ready. Multiple crucibles with the same incense will burn faster, charging more quickly.
nei.infopage.incense.2.a=Burning incense lasts for about 10 sacrifices. Your Sacrificial Knife will start to glow as the incense burns. While active, using your knife drains all but the last 10% of your health at once, greatly increasing the LP gained. This leaves you with the Soul Fray effect for a short time, preventing further sacrifices.
nei.infopage.incense.2.b=Burning incense lasts for about 10 sacrifices. Your Sacrificial Orb will start to glow as the incense burns. While active, using your orb drains all but the last 10% of your health at once, greatly increasing the LP gained. This leaves you with the Soul Fray effect for a short time, preventing further sacrifices.
nei.infopage.incense.3=Incense increases the LP gained compared to normal sacrifices. Each tier requires the previous, and grants the following bonus when fully charged:\n\nWood Ash: 40%\nByrrus: 80%\nLivens: 150%\nViridis: 240%\nPurpura: 350%
# Sacrifices
nei.infopage.sacrifice.1=The Dagger of Sacrifice channels the life of others into the Blood Altar. Strike a creature with the dagger while it is near the altar, and it will be slain instantly, pouring its essence into the altar's pool.
nei.infopage.sacrifice.2=Creatures yield Life Essence according to their vitality: animals give the least, monsters give more, and villagers offer the greatest. Bosses, babies, and other players resist this magic and cannot be sacrificed.
nei.infopage.sacrifice.3=Mechanical hands are unable to wield the Dagger of Sacrifice with the finesse it requires. For automatic sacrifices, seek the Well of Suffering ritual.
# Altar Runes
nei.infopage.rune.augmentedCapacity=The Rune of Augmented Capacity increases the altar's maximum storage by 3500 LP per rune. This bonus applies after Superior Capacity's.\n\nIncreasing the altar's capacity also increases the size of its input and output buffers by a proportional amount.
nei.infopage.rune.dislocation=The Rune of Dislocation accelerates the flow of essence between the altar and its buffers, increasing transfer by 50% per rune, stacking multiplicatively. The altar's veins strain, pushing blood faster through every channel.
nei.infopage.rune.orb=The Rune of the Orb strengthens the link between altar and Soul Network. Each rune temporarily increases the inserted Blood Orb's maximum LP capacity by 4% per rune, stacking additively. Pushing the limits is required to achieve ultimate power.
nei.infopage.rune.superiorCapacity=The Rune of Superior Capacity increases the altar's base storage by 14% per rune, stacking multiplicatively. With enough runes, the altar may hold oceans of Life Essence.
nei.infopage.rune.acceleration=The Rune of Acceleration hastens interactions with the altar's fluid buffers. Normally, they cycle fluid once per second; each rune reduces this delay by 1 tick.\n\nThe effect caps after 19 runes, allowing for a ceaseless torrent of Life Essence.
nei.infopage.rune.quickness=The Rune of Quickness shortens the five-second pause between transmutations by 20%, stacking multiplicatively.\n\nThe effect caps after 18 runes. Unfortunately, the Blood Altar is unable to break the laws of time...
nei.infopage.rune.speed=The Rune of Speed increases the rate at which the altar infuses essence into offerings by 25% per rune, stacking additively. A little haste never hurt anybody.
nei.infopage.rune.efficiency=The Rune of Efficiency is shrouded in mystery. It is inert, unobtainable, and its purpose is long forgotten.
nei.infopage.rune.sacrifice=The Rune of Sacrifice increases LP gained from sacrifices by 12% per rune, stacking additively. With enough runes, every offering yields rivers of blood.
nei.infopage.rune.selfSacrifice=The Rune of Self-Sacrifice empowers offerings of one's own blood, granting 12% more LP per rune, stacking additively. Through pain comes power.
nei.infopage.rune.blank=Blood Runes serve as the foundation of every altar. Though plain at first, they may be replaced with specialized runes that amplify the altar's capabilities, such as the Rune of Sacrifice, which grants more essence when blood is spilled with a Dagger of Sacrifice or the Well of Suffering ritual.
# Progression Items
nei.infopage.bloodShards=Weak Blood Shards, which are required for the Bloodstone Bricks and Master Blood Orb used to progress your altar to Tier 4, are dropped by creatures slain while under the effect of Weakness III or higher. This effect is impossible through traditional means of potion brewing, but a Bound Blade or Potion Flask will be able to apply such an effect.
nei.infopage.demonShards.1=Demon Blood Shards are required for the Archmage Blood Orb and Awakened Activation Crystal. To summon the beings that carry them, place a bound Master Blood Orb (or higher) upon an Arcane Plinth, and surround it with six Arcane Pedestals, each holding the same reagent.
nei.infopage.demonShards.2=The pedestals must be placed in the outer ring of a 5×5 area, with the Arcane Plinth at the center. This forms a hexagonal pattern. After the ritual has been prepared, lightning will strike each pedestal in turn before the Elemental manifests. The reagent used determines the type of Elemental called forth.
nei.infopage.demonShards.3=Elementals are flying, durable creatures with 100 HP that will attack on sight. They can attack from a distance and embody the powers of their element in battle. They need not be slain with a Bound Blade to yield Demon Blood Shards, though drops are not guaranteed. The Looting enchantment increases the chance.
nei.infopage.convocationShards=The Soul and Life Shards required for the Crystal Clusters used to upgrade the altar to Tier 6 are dropped by Demon Grunts summoned by the Convocation of the Damned ritual. Only those who command demons may bring an altar to its ultimate perfection.
# Blood Orb / Soul Network Explanation
nei.infopage.bloodOrbs.1=Blood Orbs are the vessels of your Soul Network. When you create one in the Blood Altar, right-click with it in hand to bind it to yourself.
nei.infopage.bloodOrbs.2=Once bound, place your Blood Orb into the altar. Any Life Essence you pour in, whether by self-sacrifice, dagger, or ritual, will be stored in your personal Soul Network as LP, ready for use by mystical items, powerful sigils, alchemic chemistry, and rituals.
nei.infopage.bloodOrbs.3=Higher tiers of Blood Orbs unlock new recipes. Each orb also has its own maximum LP that it can insert into your Soul Network, which may temporarily be expanded by placing it in a Blood Altar augmented with Runes of the Orb.
nei.infopage.bloodOrbs.4=Your Soul Network is invisible to the eye, but its presence can be felt. Many rituals, sigils, and magical devices will draw directly from your LP. If your network runs dry, the power will be taken from your own life instead. A Divination Sigil may be used to see your current LP.
# Rituals
nei.infopage.rituals.weak.1=Rituals are the next step on your path to power. Right-clicking the Imperfect Ritual Stone will call down lightning and create the following effects when placed beneath the correct block, at the cost of 5,000 LP.
nei.infopage.rituals.weak.2=Water Source: Summon a thunderstorm\nBlock of Coal: Summon an empowered zombie\nLapis Lazuli Block: Shift the time to night\nBedrock: Grant Resistance II for 1 minute
nei.infopage.rituals.1=While it has its uses, the Imperfect Ritual Stone is a curiosity of limited power, since it can only draw strength from the block directly above it. The Master Ritual Stone, by contrast, is capable of channeling energy from many surrounding Ritual Stones.
nei.infopage.rituals.2=To build a ritual, place a Master Ritual Stone surrounded by Ritual Stones, and inscribe them with Elemental Inscription Tools. A Ritual Diviner may instead be used to automatically place the stones and inscribe them correctly.
nei.infopage.rituals.3=Once the ritual is assembled, right-click the Master Ritual Stone with a bound Activation Crystal. If everything is in place and your Soul Network contains sufficient LP, the ritual will commence! Each ritual has a unique effect. Experimentation is encouraged to discover the full potential of the Master Ritual Stone.
nei.infopage.reagents.1=Some rituals can be modified by providing reagents to the Master Ritual Stone. However, raw reagents are too impure to be used directly. They must first be refined in an Alchemic Calcinator into AR (Alchemy Reagent), a pure essence usable by the ritual.
nei.infopage.reagents.2=To use an Alchemic Calcinator, right-click it with a bound Blood Orb, and then right-click it with the reagent item. Reagents may also be inserted via hoppers or pipes. The reagent will be consumed and converted into AR, which the Calcinator will store internally.
nei.infopage.reagents.3=An Alchemic Router is required to transfer AR. Shift-right-click a block containing AR to attune the Router to that reagent. Then right-click the source block, followed by the destination block, to create a link. Shift-right-click in the air to remove the currently saved source.
nei.infopage.reagents.4=An Alchemic Cleanser may be used to remove AR links by using it on the source block. An Alchemic Segmenter may be used to limit how many internal AR tanks a single reagent may occupy; it is attuned in the same way as the Router.
nei.infopage.reagents.5=The range of AR links is limited to a few blocks. To extend the transfer distance, use Alchemic Relays. Crystal Belljars may be placed to store AR, and they will retain their contents when broken.
@@ -300,11 +300,7 @@ tooltip.alchemy.coords=Координаты:
tooltip.alchemy.damage=Урон:
tooltip.alchemy.dimension=Связанное измерение:
tooltip.alchemy.direction=Направление:
tooltip.alchemy.forrecipe=чтобы увидеть рецепт
tooltip.alchemy.press=Нажмите
tooltip.alchemy.recipe=Рецепт:
tooltip.alchemy.ritualid=ID ритуала:
tooltip.alchemy.shift=shift,
tooltip.alchemy.usedinalchemy=Используется в алхимии
tooltip.alchemyflask.caution=ВНИМАНИЕ: Содержимое можно кидать
tooltip.alchemyflask.swigsleft=Глотков осталось:
@@ -396,11 +396,7 @@ tooltip.alchemy.coords=坐标:
tooltip.alchemy.damage=攻击伤害:
tooltip.alchemy.dimension=绑定世界:
tooltip.alchemy.direction=方向:
tooltip.alchemy.forrecipe=了解配方
tooltip.alchemy.press=对着物品按
tooltip.alchemy.recipe=材料:
tooltip.alchemy.ritualid=仪式ID:
tooltip.alchemy.shift=shift
tooltip.alchemy.usedinalchemy=用于炼金术
tooltip.alchemyflask.caution=警 告: 内部异常
tooltip.alchemyflask.swigsleft=药水剩余:
@@ -312,11 +312,7 @@ tooltip.alchemy.coords=Coords:
tooltip.alchemy.damage=Damage:
tooltip.alchemy.dimension=Bound Dimension:
tooltip.alchemy.direction=Direction:
tooltip.alchemy.forrecipe=for Recipe
tooltip.alchemy.press=Press
tooltip.alchemy.recipe=Recipe:
tooltip.alchemy.ritualid=RitualID:
tooltip.alchemy.shift=shift
tooltip.alchemy.usedinalchemy=Used in Alchemy
tooltip.alchemyflask.caution=CAUTION: Contents are throwable
tooltip.alchemyflask.swigsleft=Swigs Left: