mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 07:13:14 +00:00
Compare commits
18
Commits
1.9.17
...
1.7.27-pre
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7c4f48396 | ||
|
|
ee94755d48 | ||
|
|
ddb40cf18d | ||
|
|
9562bc6e13 | ||
|
|
2d145c4c98 | ||
|
|
718b34ae4c | ||
|
|
4cb550b34c | ||
|
|
c5c5c4aef8 | ||
|
|
71222e2c13 | ||
|
|
81fed8f46d | ||
|
|
60ab0504a9 | ||
|
|
24d6f382ba | ||
|
|
a6c64ee2c1 | ||
|
|
0ae2f329b8 | ||
|
|
4f576b1b75 | ||
|
|
c99c80d42f | ||
|
|
d4285df030 | ||
|
|
32b7b3fbe0 |
No files matched your search
+5
-5
@@ -24,18 +24,18 @@
|
||||
|
||||
dependencies {
|
||||
api("com.github.GTNewHorizons:waila:1.8.4:dev")
|
||||
api("com.github.GTNewHorizons:NotEnoughItems:2.7.43-GTNH:dev")
|
||||
api("com.github.GTNewHorizons:NotEnoughItems:2.7.45-GTNH:dev")
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.51.282:dev") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.51.291:dev") {transitive = false }
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:Botania:1.12.6-GTNH:api") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:ForestryMC:4.10.7:api") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:Botania:1.12.8-GTNH:api") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:ForestryMC:4.10.8:api") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.6.2:dev") {transitive = false }
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:Chisel:2.16.4-GTNH:api") {transitive = false }
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:ZenScript:1.0.0-GTNH") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.1:dev") {transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.2:dev") {transitive = false }
|
||||
|
||||
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev") {transitive = false }
|
||||
compileOnly("curse.maven:guide-api-228832:2287185") {transitive = false }
|
||||
|
||||
@@ -8,7 +8,6 @@ import WayofTime.alchemicalWizardry.api.items.ItemSpellMultiTool;
|
||||
import WayofTime.alchemicalWizardry.api.spell.SpellParadigmTool;
|
||||
import WayofTime.alchemicalWizardry.common.items.AWBaseItems;
|
||||
import WayofTime.alchemicalWizardry.common.items.ActivationCrystal;
|
||||
import WayofTime.alchemicalWizardry.common.items.AirScribeTool;
|
||||
import WayofTime.alchemicalWizardry.common.items.ApprenticeBloodOrb;
|
||||
import WayofTime.alchemicalWizardry.common.items.ArchmageBloodOrb;
|
||||
import WayofTime.alchemicalWizardry.common.items.ArmourInhibitor;
|
||||
@@ -20,17 +19,13 @@ import WayofTime.alchemicalWizardry.common.items.BoundShovel;
|
||||
import WayofTime.alchemicalWizardry.common.items.CheatyItem;
|
||||
import WayofTime.alchemicalWizardry.common.items.CreativeDagger;
|
||||
import WayofTime.alchemicalWizardry.common.items.DaggerOfSacrifice;
|
||||
import WayofTime.alchemicalWizardry.common.items.DawnScribeTool;
|
||||
import WayofTime.alchemicalWizardry.common.items.DemonPlacer;
|
||||
import WayofTime.alchemicalWizardry.common.items.DemonicTelepositionFocus;
|
||||
import WayofTime.alchemicalWizardry.common.items.DuskScribeTool;
|
||||
import WayofTime.alchemicalWizardry.common.items.EarthScribeTool;
|
||||
import WayofTime.alchemicalWizardry.common.items.EnergyBattery;
|
||||
import WayofTime.alchemicalWizardry.common.items.EnergyBazooka;
|
||||
import WayofTime.alchemicalWizardry.common.items.EnergyBlast;
|
||||
import WayofTime.alchemicalWizardry.common.items.EnergySword;
|
||||
import WayofTime.alchemicalWizardry.common.items.EnhancedTelepositionFocus;
|
||||
import WayofTime.alchemicalWizardry.common.items.FireScribeTool;
|
||||
import WayofTime.alchemicalWizardry.common.items.ItemAlchemyBase;
|
||||
import WayofTime.alchemicalWizardry.common.items.ItemBloodLetterPack;
|
||||
import WayofTime.alchemicalWizardry.common.items.ItemComplexSpellCrystal;
|
||||
@@ -45,9 +40,9 @@ import WayofTime.alchemicalWizardry.common.items.MagicianBloodOrb;
|
||||
import WayofTime.alchemicalWizardry.common.items.MasterBloodOrb;
|
||||
import WayofTime.alchemicalWizardry.common.items.ReinforcedTelepositionFocus;
|
||||
import WayofTime.alchemicalWizardry.common.items.SacrificialDagger;
|
||||
import WayofTime.alchemicalWizardry.common.items.ScribeTool;
|
||||
import WayofTime.alchemicalWizardry.common.items.TelepositionFocus;
|
||||
import WayofTime.alchemicalWizardry.common.items.TranscendentBloodOrb;
|
||||
import WayofTime.alchemicalWizardry.common.items.WaterScribeTool;
|
||||
import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour;
|
||||
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourEarth;
|
||||
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourFire;
|
||||
@@ -271,10 +266,14 @@ public class ModItems {
|
||||
sigilOfHaste = new SigilOfHaste().setUnlocalizedName("sigilOfHaste");
|
||||
sigilOfHolding = new SigilOfHolding().setUnlocalizedName("sigilOfHolding");
|
||||
divinationSigil = new SigilDivination().setUnlocalizedName("divinationSigil");
|
||||
waterScribeTool = new WaterScribeTool().setUnlocalizedName("waterScribeTool");
|
||||
fireScribeTool = new FireScribeTool().setUnlocalizedName("fireScribeTool");
|
||||
earthScribeTool = new EarthScribeTool().setUnlocalizedName("earthScribeTool");
|
||||
airScribeTool = new AirScribeTool().setUnlocalizedName("airScribeTool");
|
||||
|
||||
waterScribeTool = new ScribeTool(1, "WaterScribeTool").setUnlocalizedName("waterScribeTool");
|
||||
fireScribeTool = new ScribeTool(2, "FireScribeTool").setUnlocalizedName("fireScribeTool");
|
||||
earthScribeTool = new ScribeTool(3, "EarthScribeTool").setUnlocalizedName("earthScribeTool");
|
||||
airScribeTool = new ScribeTool(4, "AirScribeTool").setUnlocalizedName("airScribeTool");
|
||||
duskScribeTool = new ScribeTool(5, "DuskScribeTool").setUnlocalizedName("duskScribeTool");
|
||||
dawnScribeTool = new ScribeTool(6, "DawnScribeTool").setUnlocalizedName("dawnScribeTool");
|
||||
|
||||
activationCrystal = new ActivationCrystal();
|
||||
boundPickaxe = new BoundPickaxe().setUnlocalizedName("boundPickaxe");
|
||||
boundAxe = new BoundAxe().setUnlocalizedName("boundAxe");
|
||||
@@ -313,7 +312,6 @@ public class ModItems {
|
||||
demonicTelepositionFocus = new DemonicTelepositionFocus().setUnlocalizedName("demonicTelepositionFocus");
|
||||
imbuedSlate = new AWBaseItems().setUnlocalizedName("imbuedSlate");
|
||||
demonicSlate = new AWBaseItems().setUnlocalizedName("demonicSlate");
|
||||
duskScribeTool = new DuskScribeTool().setUnlocalizedName("duskScribeTool");
|
||||
sigilOfTheBridge = new SigilOfTheBridge().setUnlocalizedName("sigilOfTheBridge");
|
||||
armourInhibitor = new ArmourInhibitor().setUnlocalizedName("armourInhibitor");
|
||||
creativeFiller = new CheatyItem().setUnlocalizedName("cheatyItem");
|
||||
@@ -348,8 +346,6 @@ public class ModItems {
|
||||
itemTankSegmenter = new ItemTankSegmenter().setUnlocalizedName("itemTankSegmenter");
|
||||
itemDestinationClearer = new ItemDestinationClearer().setUnlocalizedName("destinationClearer");
|
||||
|
||||
dawnScribeTool = new DawnScribeTool().setUnlocalizedName("dawnScribeTool");
|
||||
|
||||
itemBloodPack = new ItemBloodLetterPack().setUnlocalizedName("itemBloodPack");
|
||||
itemHarvestSigil = new SigilHarvest().setUnlocalizedName("itemHarvestSigil");
|
||||
itemCompressionSigil = new SigilPackRat().setUnlocalizedName("itemCompressionSigil");
|
||||
@@ -409,6 +405,8 @@ public class ModItems {
|
||||
GameRegistry.registerItem(ModItems.fireScribeTool, "fireScribeTool");
|
||||
GameRegistry.registerItem(ModItems.earthScribeTool, "earthScribeTool");
|
||||
GameRegistry.registerItem(ModItems.airScribeTool, "airScribeTool");
|
||||
GameRegistry.registerItem(ModItems.duskScribeTool, "duskScribeTool");
|
||||
GameRegistry.registerItem(ModItems.dawnScribeTool, "dawnScribeTool");
|
||||
GameRegistry.registerItem(ModItems.activationCrystal, "activationCrystal");
|
||||
GameRegistry.registerItem(ModItems.boundPickaxe, "boundPickaxe");
|
||||
GameRegistry.registerItem(ModItems.boundAxe, "boundAxe");
|
||||
@@ -449,7 +447,6 @@ public class ModItems {
|
||||
GameRegistry.registerItem(ModItems.demonicTelepositionFocus, "demonicTelepositionFocus");
|
||||
GameRegistry.registerItem(ModItems.imbuedSlate, "imbuedSlate");
|
||||
GameRegistry.registerItem(ModItems.demonicSlate, "demonicSlate");
|
||||
GameRegistry.registerItem(ModItems.duskScribeTool, "duskScribeTool");
|
||||
GameRegistry.registerItem(ModItems.sigilOfTheBridge, "sigilOfTheBridge");
|
||||
GameRegistry.registerItem(ModItems.armourInhibitor, "armourInhibitor");
|
||||
GameRegistry.registerItem(ModItems.creativeFiller, "creativeFiller");
|
||||
@@ -485,8 +482,6 @@ public class ModItems {
|
||||
GameRegistry.registerItem(ModItems.baseItems, "bloodMagicBaseItems");
|
||||
GameRegistry.registerItem(ModItems.baseAlchemyItems, "bloodMagicBaseAlchemyItems");
|
||||
|
||||
GameRegistry.registerItem(ModItems.dawnScribeTool, "dawnScribeTool");
|
||||
|
||||
GameRegistry.registerItem(ModItems.itemBloodPack, "itemBloodPack");
|
||||
GameRegistry.registerItem(ModItems.itemHarvestSigil, "itemHarvestSigil");
|
||||
GameRegistry.registerItem(ModItems.itemCompressionSigil, "itemCompressionSigil");
|
||||
|
||||
@@ -1,17 +1,29 @@
|
||||
package WayofTime.alchemicalWizardry.api;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class RoutingFocusLogic {
|
||||
|
||||
public boolean getDefaultMatch(ItemStack keyStack, ItemStack checkedStack) {
|
||||
return (keyStack != null ? checkedStack != null && keyStack.getItem() == checkedStack.getItem()
|
||||
&& (keyStack.getItem().getHasSubtypes() ? keyStack.getItemDamage() == checkedStack.getItemDamage()
|
||||
: true)
|
||||
: false);
|
||||
return (keyStack != null && keyStack.getItem() != null
|
||||
&& checkedStack != null
|
||||
&& keyStack.getItem() == checkedStack.getItem()
|
||||
&& (!keyStack.getItem().getHasSubtypes() || keyStack.getItemDamage() == checkedStack.getItemDamage()));
|
||||
}
|
||||
|
||||
public boolean doesItemMatch(boolean previous, ItemStack keyStack, ItemStack checkedStack) {
|
||||
return previous || this.getDefaultMatch(keyStack, checkedStack);
|
||||
}
|
||||
|
||||
public List<String> getDescription() {
|
||||
return new ArrayList<>(
|
||||
Collections.singletonList(
|
||||
StatCollector.translateToLocal("tooltip.routingFocus.logic") + " "
|
||||
+ StatCollector.translateToLocal("item.outputRoutingFocus.default.logic")));
|
||||
}
|
||||
}
|
||||
@@ -7,9 +7,11 @@ import net.minecraft.item.ItemStack;
|
||||
|
||||
public class RoutingFocusParadigm {
|
||||
|
||||
public List<RoutingFocusLogic> logicList = new LinkedList();
|
||||
public List<RoutingFocusLogic> logicList = new LinkedList<>();
|
||||
|
||||
public List<RoutingFocusPosAndFacing> locationList = new LinkedList();
|
||||
public List<RoutingFocusPosAndFacing> locationList = new LinkedList<>();
|
||||
|
||||
public List<String> nameList = new LinkedList<>();
|
||||
|
||||
public int maximumAmount = 0;
|
||||
|
||||
@@ -24,6 +26,14 @@ public class RoutingFocusParadigm {
|
||||
logicList.add(logic);
|
||||
}
|
||||
|
||||
public void addName(String name) {
|
||||
nameList.add(name);
|
||||
}
|
||||
|
||||
public boolean doesNameMatch(String name) {
|
||||
return nameList.contains(name);
|
||||
}
|
||||
|
||||
public boolean doesItemMatch(ItemStack keyStack, ItemStack checkedStack) {
|
||||
boolean isGood = false;
|
||||
boolean isFirst = true;
|
||||
@@ -42,6 +52,7 @@ public class RoutingFocusParadigm {
|
||||
public void clear() {
|
||||
logicList.clear();
|
||||
locationList.clear();
|
||||
nameList.clear();
|
||||
maximumAmount = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,12 +7,14 @@ import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
public class IMCForNEI {
|
||||
|
||||
public static void IMCSender() {
|
||||
sendHandler("alchemicalwizardry.meteor", "AWWayofTime:masterStone", 181);
|
||||
sendHandler("alchemicalwizardry.meteor", "AWWayofTime:masterStone", 181, 1);
|
||||
sendHandler("alchemicalwizardry.calcinator", "AWWayofTime:blockAlchemicCalcinator", 55, 5);
|
||||
sendCatalyst("alchemicalwizardry.meteor", "AWWayofTime:masterStone");
|
||||
sendCatalyst("alchemicalwizardry.bindingritual", "AWWayofTime:masterStone");
|
||||
sendCatalyst("alchemicalwizardry.calcinator", "AWWayofTime:blockAlchemicCalcinator");
|
||||
}
|
||||
|
||||
private static void sendHandler(String handlerName, String stack, int height) {
|
||||
private static void sendHandler(String handlerName, String stack, int height, int recipes) {
|
||||
NBTTagCompound NBT = new NBTTagCompound();
|
||||
NBT.setString("handler", handlerName);
|
||||
NBT.setString("modName", "Blood Magic");
|
||||
@@ -20,7 +22,7 @@ public class IMCForNEI {
|
||||
NBT.setBoolean("modRequired", true);
|
||||
NBT.setString("itemName", stack);
|
||||
NBT.setInteger("handlerHeight", height);
|
||||
NBT.setInteger("maxRecipesPerPage", 1);
|
||||
NBT.setInteger("maxRecipesPerPage", recipes);
|
||||
FMLInterModComms.sendMessage("NotEnoughItems", "registerHandlerInfo", NBT);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,206 @@
|
||||
package WayofTime.alchemicalWizardry.client.nei;
|
||||
|
||||
import static WayofTime.alchemicalWizardry.client.ClientUtils.mc;
|
||||
import static WayofTime.alchemicalWizardry.client.nei.NEIConfig.ARROW_TEXTURE;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
|
||||
import net.minecraft.client.gui.FontRenderer;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.texture.TextureManager;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.common.util.Constants;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentContainer;
|
||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentStack;
|
||||
import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||
|
||||
public class NEICalcinatorHandler extends TemplateRecipeHandler {
|
||||
|
||||
public class CachedReagentInfo extends CachedRecipe {
|
||||
|
||||
private final Reagent reagent;
|
||||
private final int amount;
|
||||
private final int color;
|
||||
|
||||
public CachedReagentInfo(ReagentStack reagent) {
|
||||
this.reagent = reagent.reagent;
|
||||
this.amount = reagent.amount;
|
||||
this.color = reagent.reagent.getColourRed() << 16 | reagent.reagent.getColourGreen() << 8
|
||||
| reagent.reagent.getColourBlue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public PositionedStack getResult() {
|
||||
return new PositionedStack(ReagentRegistry.getItemForReagent(reagent), 32, 6);
|
||||
}
|
||||
|
||||
public Reagent getReagent() {
|
||||
return reagent;
|
||||
}
|
||||
|
||||
public int getAmount() {
|
||||
return amount;
|
||||
}
|
||||
|
||||
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 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);
|
||||
}
|
||||
|
||||
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 cycleTick = cycleticks % totalCycle;
|
||||
|
||||
int fillWidth;
|
||||
if (cycleTick < fillTime) {
|
||||
fillWidth = cycleTick * arrowWidth / fillTime;
|
||||
} else {
|
||||
fillWidth = arrowWidth;
|
||||
}
|
||||
|
||||
TextureManager texManager = mc.getTextureManager();
|
||||
texManager.bindTexture(ARROW_TEXTURE);
|
||||
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
|
||||
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);
|
||||
|
||||
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, 0, 0, 0);
|
||||
|
||||
tessellator.draw();
|
||||
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
}
|
||||
|
||||
@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;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCraftingRecipes(String outputId, Object... results) {
|
||||
if (outputId.equals("alchemicalwizardry.calcinator") && getClass() == NEICalcinatorHandler.class) {
|
||||
for (ReagentStack reagent : ReagentRegistry.itemToReagentMap.values()) {
|
||||
arecipes.add(new CachedReagentInfo(reagent));
|
||||
}
|
||||
} else {
|
||||
super.loadCraftingRecipes(outputId, results);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCraftingRecipes(ItemStack result) {
|
||||
checkReagents(result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadUsageRecipes(ItemStack ingredient) {
|
||||
checkReagents(ingredient);
|
||||
}
|
||||
|
||||
private void checkReagents(ItemStack result) {
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int recipiesPerPage() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawExtras(int recipe) {
|
||||
NEICalcinatorHandler.CachedReagentInfo reagentInfo = (CachedReagentInfo) this.arecipes.get(recipe);
|
||||
reagentInfo.onDraw(30, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getOverlayIdentifier() {
|
||||
return "alchemicalwizardry.calcinator";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadTransferRects() {
|
||||
transferRects.add(new RecipeTransferRect(new Rectangle(54, 23, 23, 16), "alchemicalwizardry.calcinator"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGuiTexture() {
|
||||
return new ResourceLocation("alchemicalwizardry", "gui/nei/calcinator.png").toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRecipeName() {
|
||||
return "Alchemic Calcinator";
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import java.util.ArrayList;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
|
||||
import codechicken.nei.ItemList;
|
||||
@@ -15,6 +16,10 @@ public class NEIConfig implements IConfigureNEI {
|
||||
private static ArrayList<Item> bloodOrbs = null;
|
||||
private static ArrayList<Item> byCapacity = null;
|
||||
|
||||
public static final ResourceLocation ARROW_TEXTURE = new ResourceLocation(
|
||||
"alchemicalwizardry",
|
||||
"gui/nei/arrow.png");
|
||||
|
||||
public static ArrayList<Item> getBloodOrbs() {
|
||||
if (bloodOrbs == null) {
|
||||
synchronized (NEIConfig.class) {
|
||||
@@ -72,6 +77,8 @@ public class NEIConfig implements IConfigureNEI {
|
||||
API.registerUsageHandler(new NEIBindingRitualHandler());
|
||||
API.registerRecipeHandler(new NEIMeteorRecipeHandler());
|
||||
API.registerUsageHandler(new NEIMeteorRecipeHandler());
|
||||
API.registerRecipeHandler(new NEICalcinatorHandler());
|
||||
API.registerUsageHandler(new NEICalcinatorHandler());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -244,6 +244,11 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int recipiesPerPage() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGuiTexture() {
|
||||
return new ResourceLocation("alchemicalwizardry", "gui/nei/meteor.png").toString();
|
||||
|
||||
@@ -4,7 +4,6 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
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.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
@@ -59,36 +58,28 @@ public class RitualStone extends Block implements IRitualStone {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int damageDropped(int metadata) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int idk, float what,
|
||||
float these, float are) {
|
||||
ItemStack playerItem = player.getCurrentEquippedItem();
|
||||
|
||||
if (playerItem == null) {
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float subX,
|
||||
float subY, float subZ) {
|
||||
ItemStack stack = player.getCurrentEquippedItem();
|
||||
if (stack == null || !(stack.getItem() instanceof ScribeTool scribe)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Item item = playerItem.getItem();
|
||||
int toolType = scribe.getType();
|
||||
|
||||
if (!(item instanceof ScribeTool)) {
|
||||
if (toolType == world.getBlockMetadata(x, y, z)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (playerItem.getMaxDamage() <= playerItem.getItemDamage() && !(playerItem.getMaxDamage() == 0)) {
|
||||
if (stack.getMaxDamage() != 0 && stack.getItemDamage() >= stack.getMaxDamage()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
ScribeTool scribeTool = (ScribeTool) item;
|
||||
|
||||
if (!player.capabilities.isCreativeMode) {
|
||||
playerItem.setItemDamage(playerItem.getItemDamage() + 1);
|
||||
stack.setItemDamage(stack.getItemDamage() + 1);
|
||||
}
|
||||
|
||||
world.setBlockMetadataWithNotify(x, y, z, scribeTool.getType(), 3);
|
||||
world.setBlockMetadataWithNotify(x, y, z, toolType, 3);
|
||||
world.markBlockForUpdate(x, y, z);
|
||||
return true;
|
||||
}
|
||||
@@ -96,31 +87,15 @@ public class RitualStone extends Block implements IRitualStone {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int metadata) {
|
||||
switch (metadata) {
|
||||
case 0:
|
||||
return blankIcon;
|
||||
|
||||
case 1:
|
||||
return waterStoneIcon;
|
||||
|
||||
case 2:
|
||||
return fireStoneIcon;
|
||||
|
||||
case 3:
|
||||
return earthStoneIcon;
|
||||
|
||||
case 4:
|
||||
return airStoneIcon;
|
||||
|
||||
case 5:
|
||||
return duskStoneIcon;
|
||||
|
||||
case 6:
|
||||
return dawnStoneIcon;
|
||||
|
||||
default:
|
||||
return blankIcon;
|
||||
}
|
||||
return switch (metadata) {
|
||||
case 1 -> waterStoneIcon;
|
||||
case 2 -> fireStoneIcon;
|
||||
case 3 -> earthStoneIcon;
|
||||
case 4 -> airStoneIcon;
|
||||
case 5 -> duskStoneIcon;
|
||||
case 6 -> dawnStoneIcon;
|
||||
default -> blankIcon;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
package WayofTime.alchemicalWizardry.common.items;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class AirScribeTool extends ScribeTool {
|
||||
|
||||
public AirScribeTool() {
|
||||
super(4);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:AirScribeTool");
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package WayofTime.alchemicalWizardry.common.items;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class DawnScribeTool extends ScribeTool {
|
||||
|
||||
public DawnScribeTool() {
|
||||
super(6);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:DawnScribeTool");
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package WayofTime.alchemicalWizardry.common.items;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class DuskScribeTool extends ScribeTool {
|
||||
|
||||
public DuskScribeTool() {
|
||||
super(5);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:DuskScribeTool");
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package WayofTime.alchemicalWizardry.common.items;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class EarthScribeTool extends ScribeTool {
|
||||
|
||||
public EarthScribeTool() {
|
||||
super(3);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:EarthScribeTool");
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package WayofTime.alchemicalWizardry.common.items;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class FireScribeTool extends ScribeTool {
|
||||
|
||||
public FireScribeTool() {
|
||||
super(2);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:FireScribeTool");
|
||||
}
|
||||
}
|
||||
@@ -2,44 +2,68 @@ package WayofTime.alchemicalWizardry.common.items;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||
import WayofTime.alchemicalWizardry.api.items.interfaces.IBindable;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class ScribeTool extends EnergyItems {
|
||||
|
||||
private int meta;
|
||||
private final int meta;
|
||||
private final String iconName;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon icon;
|
||||
|
||||
public ScribeTool(int inkType) {
|
||||
this(inkType, "unknown");
|
||||
}
|
||||
|
||||
public ScribeTool(int inkType, String iconName) {
|
||||
super();
|
||||
this.meta = inkType;
|
||||
this.iconName = iconName;
|
||||
setMaxStackSize(1);
|
||||
setCreativeTab(AlchemicalWizardry.tabBloodMagic);
|
||||
setMaxDamage(10);
|
||||
setEnergyUsed(10);
|
||||
this.meta = inkType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
||||
par3List.add(StatCollector.translateToLocal("tooltip.scribetool.desc"));
|
||||
addBindingInformation(par1ItemStack, par3List);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
|
||||
if (IBindable.checkAndSetItemOwner(par1ItemStack, par3EntityPlayer)) {
|
||||
if (par1ItemStack.getItemDamage() > 0) {
|
||||
par1ItemStack.setItemDamage(par1ItemStack.getItemDamage() - 1);
|
||||
}
|
||||
}
|
||||
return par1ItemStack;
|
||||
setCreativeTab(AlchemicalWizardry.tabBloodMagic);
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return this.meta;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List<String> list, boolean sneaking) {
|
||||
list.add(StatCollector.translateToLocal("tooltip.scribetool.desc"));
|
||||
addBindingInformation(stack, list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
|
||||
if (IBindable.checkAndSetItemOwner(stack, player) && stack.getItemDamage() > 0
|
||||
&& EnergyItems.syphonBatteries(stack, player, getEnergyUsed())) {
|
||||
stack.setItemDamage(stack.getItemDamage() - 1);
|
||||
}
|
||||
return stack;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister register) {
|
||||
this.icon = register.registerIcon("AlchemicalWizardry:" + iconName);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIconFromDamage(int damage) {
|
||||
return this.icon;
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package WayofTime.alchemicalWizardry.common.items;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
|
||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class WaterScribeTool extends ScribeTool {
|
||||
|
||||
public WaterScribeTool() {
|
||||
super(1);
|
||||
setCreativeTab(AlchemicalWizardry.tabBloodMagic);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:WaterScribeTool");
|
||||
}
|
||||
}
|
||||
+20
-52
@@ -32,8 +32,11 @@ public class OutputRoutingFocus extends RoutingFocus implements ILimitedRoutingF
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List,
|
||||
boolean par4) {
|
||||
super.addInformation(par1ItemStack, par2EntityPlayer, par3List, par4);
|
||||
if (!(par1ItemStack.getItem() instanceof OutputRoutingFocus focus)) return;
|
||||
par3List.addAll(focus.getLogic(par1ItemStack).getDescription());
|
||||
|
||||
if (!(par1ItemStack.getTagCompound() == null)) {
|
||||
int limit = this.getRoutingFocusLimit(par1ItemStack);
|
||||
@@ -55,49 +58,18 @@ public class OutputRoutingFocus extends RoutingFocus implements ILimitedRoutingF
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIconFromDamage(int damage) {
|
||||
switch (damage) {
|
||||
case 0:
|
||||
return this.itemIcon;
|
||||
case 1:
|
||||
return this.modItemIcon;
|
||||
case 2:
|
||||
return this.ignMetaIcon;
|
||||
case 3:
|
||||
return this.matchNBTIcon;
|
||||
case 4:
|
||||
return this.globalIcon;
|
||||
}
|
||||
return this.itemIcon;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
String addedString = "";
|
||||
|
||||
switch (itemStack.getItemDamage()) {
|
||||
case 0:
|
||||
addedString = "default";
|
||||
break;
|
||||
case 1:
|
||||
addedString = "modItem";
|
||||
break;
|
||||
case 2:
|
||||
addedString = "ignMeta";
|
||||
break;
|
||||
case 3:
|
||||
addedString = "matchNBT";
|
||||
break;
|
||||
case 4:
|
||||
addedString = "global";
|
||||
break;
|
||||
}
|
||||
|
||||
return super.getUnlocalizedName() + "." + addedString;
|
||||
return switch (damage) {
|
||||
case 1 -> this.modItemIcon;
|
||||
case 2 -> this.ignMetaIcon;
|
||||
case 3 -> this.matchNBTIcon;
|
||||
case 4 -> this.globalIcon;
|
||||
default -> this.itemIcon;
|
||||
};
|
||||
}
|
||||
|
||||
@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 < 5; ++meta) {
|
||||
list.add(new ItemStack(id, 1, meta));
|
||||
}
|
||||
@@ -106,18 +78,14 @@ public class OutputRoutingFocus extends RoutingFocus implements ILimitedRoutingF
|
||||
@Override
|
||||
public RoutingFocusLogic getLogic(ItemStack itemStack) {
|
||||
if (itemStack != null) {
|
||||
switch (itemStack.getItemDamage()) {
|
||||
case 0:
|
||||
return new RoutingFocusLogicLimitDefault(itemStack);
|
||||
case 1:
|
||||
return new RoutingFocusLogicLimitModItems(itemStack);
|
||||
case 2:
|
||||
return new RoutingFocusLogicLimitIgnMeta(itemStack);
|
||||
case 3:
|
||||
return new RoutingFocusLogicLimitMatchNBT(itemStack);
|
||||
case 4:
|
||||
return new RoutingFocusLogicLimitGlobal(itemStack);
|
||||
}
|
||||
return switch (itemStack.getItemDamage()) {
|
||||
case 0 -> new RoutingFocusLogicLimitDefault(itemStack);
|
||||
case 1 -> new RoutingFocusLogicLimitModItems(itemStack);
|
||||
case 2 -> new RoutingFocusLogicLimitIgnMeta(itemStack);
|
||||
case 3 -> new RoutingFocusLogicLimitMatchNBT(itemStack);
|
||||
case 4 -> new RoutingFocusLogicLimitGlobal(itemStack);
|
||||
default -> new RoutingFocusLogic();
|
||||
};
|
||||
}
|
||||
|
||||
return new RoutingFocusLogic();
|
||||
|
||||
@@ -74,7 +74,8 @@ public class RoutingFocus 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(this.getFocusDescription()));
|
||||
|
||||
if (!(par1ItemStack.getTagCompound() == null)) {
|
||||
@@ -89,7 +90,9 @@ public class RoutingFocus extends Item {
|
||||
+ itemTag.getInteger("zCoord"));
|
||||
par3List.add(
|
||||
StatCollector.translateToLocal("tooltip.alchemy.direction") + " "
|
||||
+ this.getSetDirection(par1ItemStack));
|
||||
+ StatCollector.translateToLocal(
|
||||
"message.ritual.side."
|
||||
+ this.getSetDirection(par1ItemStack).toString().toLowerCase()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,4 +171,17 @@ public class RoutingFocus extends Item {
|
||||
public RoutingFocusLogic getLogic(ItemStack itemStack) {
|
||||
return new RoutingFocusLogic();
|
||||
}
|
||||
|
||||
public String getName(ItemStack stack) {
|
||||
if (stack.hasTagCompound()) {
|
||||
NBTTagCompound tag = stack.getTagCompound();
|
||||
if (tag.hasKey("display", 10)) {
|
||||
NBTTagCompound display = tag.getCompoundTag("display");
|
||||
if (display.hasKey("Name", 8)) {
|
||||
return display.getString("Name");
|
||||
}
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
+113
-200
@@ -1,10 +1,7 @@
|
||||
package WayofTime.alchemicalWizardry.common.rituals;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@@ -20,226 +17,142 @@ import WayofTime.alchemicalWizardry.api.RoutingFocusPosAndFacing;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
||||
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||
import WayofTime.alchemicalWizardry.common.items.routing.InputRoutingFocus;
|
||||
import WayofTime.alchemicalWizardry.common.items.routing.OutputRoutingFocus;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
||||
|
||||
public class RitualEffectItemRouting extends RitualEffect {
|
||||
|
||||
Random rand = new Random();
|
||||
private static final Int3[] INPUT_BUFFER_LOCATIONS = { new Int3(1, 0, 0), new Int3(-1, 0, 0), new Int3(0, 0, 1),
|
||||
new Int3(0, 0, -1) };
|
||||
|
||||
private static final Int3[] OUTPUT_BUFFER_LOCATIONS = { new Int3(2, 0, 2), new Int3(-2, 0, 2), new Int3(2, 0, -2),
|
||||
new Int3(-2, 0, -2) };
|
||||
|
||||
@Override
|
||||
public void performEffect(IMasterRitualStone ritualStone) {
|
||||
String owner = ritualStone.getOwner();
|
||||
|
||||
int currentEssence = SoulNetworkHandler.getCurrentEssence(owner);
|
||||
World world = ritualStone.getWorld();
|
||||
int x = ritualStone.getXCoord();
|
||||
int y = ritualStone.getYCoord();
|
||||
int z = ritualStone.getZCoord();
|
||||
|
||||
if (world.getTotalWorldTime() % 20 != 0) {
|
||||
return;
|
||||
if (world.getTotalWorldTime() % 20 != 0) return;
|
||||
|
||||
List<IInventory> outputFocusChests = findBufferChests(world, x, y, z, OUTPUT_BUFFER_LOCATIONS);
|
||||
if (outputFocusChests.isEmpty()) return;
|
||||
|
||||
List<IInventory> inputFocusChests = findBufferChests(world, x, y, z, INPUT_BUFFER_LOCATIONS);
|
||||
if (inputFocusChests.isEmpty()) return;
|
||||
|
||||
for (IInventory outputFoci : outputFocusChests) {
|
||||
processOutputFoci(world, outputFoci, inputFocusChests);
|
||||
}
|
||||
}
|
||||
|
||||
Map<Int3, IInventory> tileMap = new HashMap();
|
||||
private void processOutputFoci(World world, IInventory outputFoci, List<IInventory> inputFocusChests) {
|
||||
RoutingFocusParadigm paradigm = new RoutingFocusParadigm();
|
||||
boolean lastItemWasFocus = true;
|
||||
|
||||
List<IInventory> outputList = new ArrayList();
|
||||
for (int i = 0; i < 4; i++) // Check output foci chests, return if none available
|
||||
{
|
||||
Int3 outputFocusChest = this.getOutputBufferChestLocation(i);
|
||||
TileEntity outputFocusInv = world.getTileEntity(
|
||||
x + outputFocusChest.xCoord,
|
||||
y + outputFocusChest.yCoord,
|
||||
z + outputFocusChest.zCoord);
|
||||
if (outputFocusInv instanceof IInventory) {
|
||||
outputList.add((IInventory) outputFocusInv);
|
||||
for (int i = 0; i < outputFoci.getSizeInventory(); i++) {
|
||||
ItemStack keyStack = outputFoci.getStackInSlot(i);
|
||||
if (keyStack == null) continue;
|
||||
|
||||
if (keyStack.getItem() instanceof OutputRoutingFocus outputFocus) {
|
||||
if (!lastItemWasFocus) paradigm.clear();
|
||||
paradigm.addRoutingFocusPosAndFacing(outputFocus.getPosAndFacing(keyStack));
|
||||
paradigm.addLogic(outputFocus.getLogic(keyStack));
|
||||
paradigm.addName(outputFocus.getName(keyStack));
|
||||
lastItemWasFocus = true;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
lastItemWasFocus = false;
|
||||
|
||||
if (outputList.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
for (RoutingFocusPosAndFacing posAndFacing : paradigm.locationList) {
|
||||
if (posAndFacing == null) continue;
|
||||
ForgeDirection inputDirection = posAndFacing.facing;
|
||||
TileEntity outputTarget = world.getTileEntity(
|
||||
posAndFacing.location.xCoord,
|
||||
posAndFacing.location.yCoord,
|
||||
posAndFacing.location.zCoord);
|
||||
|
||||
for (IInventory outputFocusInventory : outputList) {
|
||||
{
|
||||
OutputRoutingFocus outputFocus;;
|
||||
if (!(outputTarget instanceof IInventory outputInventory)) continue;
|
||||
|
||||
RoutingFocusParadigm parad = new RoutingFocusParadigm();
|
||||
|
||||
TileEntity outputChest = null; // Destination
|
||||
ForgeDirection inputDirection;
|
||||
|
||||
{
|
||||
IInventory outputChestInventory = null;
|
||||
|
||||
boolean lastItemWasFocus = true;
|
||||
|
||||
for (int j = 0; j < outputFocusInventory.getSizeInventory(); j++) {
|
||||
ItemStack keyStack = outputFocusInventory.getStackInSlot(j);
|
||||
if (keyStack == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (keyStack.getItem() instanceof OutputRoutingFocus) {
|
||||
if (!lastItemWasFocus) {
|
||||
parad.clear();
|
||||
}
|
||||
|
||||
outputFocus = (OutputRoutingFocus) keyStack.getItem();
|
||||
|
||||
parad.addRoutingFocusPosAndFacing(outputFocus.getPosAndFacing(keyStack));
|
||||
parad.addLogic(outputFocus.getLogic(keyStack));
|
||||
lastItemWasFocus = true;
|
||||
continue;
|
||||
} else {
|
||||
lastItemWasFocus = false;
|
||||
}
|
||||
|
||||
for (RoutingFocusPosAndFacing posAndFacing : parad.locationList) {
|
||||
if (posAndFacing == null) {
|
||||
continue;
|
||||
}
|
||||
inputDirection = posAndFacing.facing;
|
||||
if (outputChest == null || !posAndFacing.location
|
||||
.equals(new Int3(outputChest.xCoord, outputChest.yCoord, outputChest.zCoord))) {
|
||||
outputChest = world.getTileEntity(
|
||||
posAndFacing.location.xCoord,
|
||||
posAndFacing.location.yCoord,
|
||||
posAndFacing.location.zCoord);
|
||||
if (outputChest instanceof IInventory) {
|
||||
outputChestInventory = (IInventory) outputChest;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
Int3 inputFocusChest = this.getInputBufferChestLocation(i);
|
||||
TileEntity inputFocusInv = world.getTileEntity(
|
||||
x + inputFocusChest.xCoord,
|
||||
y + inputFocusChest.yCoord,
|
||||
z + inputFocusChest.zCoord);
|
||||
if (inputFocusInv instanceof IInventory) {
|
||||
for (int ji = 0; ji < ((IInventory) inputFocusInv).getSizeInventory(); ji++) // Iterate
|
||||
// through
|
||||
// foci
|
||||
// inventory
|
||||
{
|
||||
ItemStack inputFocusStack = ((IInventory) inputFocusInv).getStackInSlot(ji);
|
||||
if (inputFocusStack != null
|
||||
&& inputFocusStack.getItem() instanceof InputRoutingFocus) {
|
||||
InputRoutingFocus inputFocus = (InputRoutingFocus) inputFocusStack
|
||||
.getItem();
|
||||
TileEntity inputChest = world.getTileEntity(
|
||||
inputFocus.xCoord(inputFocusStack),
|
||||
inputFocus.yCoord(inputFocusStack),
|
||||
inputFocus.zCoord(inputFocusStack));
|
||||
if (inputChest instanceof IInventory) {
|
||||
IInventory inputChestInventory = (IInventory) inputChest;
|
||||
ForgeDirection syphonDirection = inputFocus
|
||||
.getSetDirection(inputFocusStack);
|
||||
boolean[] canSyphonList = new boolean[inputChestInventory
|
||||
.getSizeInventory()];
|
||||
if (inputChest instanceof ISidedInventory) {
|
||||
int[] validSlots = ((ISidedInventory) inputChest)
|
||||
.getAccessibleSlotsFromSide(syphonDirection.ordinal());
|
||||
for (int in : validSlots) {
|
||||
canSyphonList[in] = true;
|
||||
}
|
||||
} else {
|
||||
for (int ni = 0; ni
|
||||
< inputChestInventory.getSizeInventory(); ni++) {
|
||||
canSyphonList[ni] = true;
|
||||
}
|
||||
}
|
||||
|
||||
for (int ni = 0; ni < inputChestInventory.getSizeInventory(); ni++) {
|
||||
if (canSyphonList[ni]) {
|
||||
ItemStack syphonedStack = inputChestInventory
|
||||
.getStackInSlot(ni); // Has a syphoned item linked, next
|
||||
// need to find a
|
||||
// destination
|
||||
if (syphonedStack == null
|
||||
|| (inputChestInventory instanceof ISidedInventory
|
||||
&& !((ISidedInventory) inputChestInventory)
|
||||
.canExtractItem(
|
||||
ni,
|
||||
syphonedStack,
|
||||
syphonDirection.ordinal()))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
int size = syphonedStack.stackSize;
|
||||
|
||||
if (parad.doesItemMatch(keyStack, syphonedStack)) {
|
||||
ItemStack newStack = null;
|
||||
if (parad.maximumAmount <= 0) {
|
||||
newStack = SpellHelper.insertStackIntoInventory(
|
||||
syphonedStack,
|
||||
outputChestInventory,
|
||||
inputDirection);
|
||||
} else {
|
||||
newStack = SpellHelper.insertStackIntoInventory(
|
||||
syphonedStack,
|
||||
outputChestInventory,
|
||||
inputDirection,
|
||||
parad.maximumAmount);
|
||||
}
|
||||
if (size == newStack.stackSize) {
|
||||
continue;
|
||||
}
|
||||
|
||||
int numberSyphoned = size - newStack.stackSize;
|
||||
|
||||
if (newStack != null && newStack.stackSize <= 0) {
|
||||
size = newStack.stackSize;
|
||||
newStack = null;
|
||||
}
|
||||
inputChestInventory.setInventorySlotContents(ni, newStack);
|
||||
// break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for (IInventory inputFoci : inputFocusChests) {
|
||||
processInputFoci(world, inputFoci, keyStack, paradigm, outputInventory, inputDirection);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Int3 getInputBufferChestLocation(int number) {
|
||||
switch (number) {
|
||||
case 0:
|
||||
return new Int3(1, 0, 0);
|
||||
case 1:
|
||||
return new Int3(-1, 0, 0);
|
||||
case 2:
|
||||
return new Int3(0, 0, 1);
|
||||
case 3:
|
||||
return new Int3(0, 0, -1);
|
||||
private void processInputFoci(World world, IInventory inputFoci, ItemStack keyStack, RoutingFocusParadigm paradigm,
|
||||
IInventory outputInventory, ForgeDirection inputDirection) {
|
||||
for (int i = 0; i < inputFoci.getSizeInventory(); i++) {
|
||||
ItemStack inputFocusStack = inputFoci.getStackInSlot(i);
|
||||
if (inputFocusStack == null || !(inputFocusStack.getItem() instanceof InputRoutingFocus inputFocus))
|
||||
continue;
|
||||
if (!paradigm.doesNameMatch(inputFocus.getName(inputFocusStack))) continue;
|
||||
|
||||
TileEntity inputTarget = world.getTileEntity(
|
||||
inputFocus.xCoord(inputFocusStack),
|
||||
inputFocus.yCoord(inputFocusStack),
|
||||
inputFocus.zCoord(inputFocusStack));
|
||||
|
||||
if (!(inputTarget instanceof IInventory inputChest)) continue;
|
||||
|
||||
boolean[] slotList = checkSlots(inputChest, inputFocus.getSetDirection(inputFocusStack));
|
||||
|
||||
for (int j = 0; j < inputChest.getSizeInventory(); j++) {
|
||||
if (!slotList[j]) continue;
|
||||
ItemStack syphonedStack = inputChest.getStackInSlot(j);
|
||||
if (!canExtractItem(inputChest, j, syphonedStack, inputFocus.getSetDirection(inputFocusStack)))
|
||||
continue;
|
||||
|
||||
if (paradigm.doesItemMatch(keyStack, syphonedStack)) {
|
||||
ItemStack newStack = insertStackWithLimit(
|
||||
syphonedStack,
|
||||
outputInventory,
|
||||
inputDirection,
|
||||
paradigm.maximumAmount);
|
||||
inputChest.setInventorySlotContents(
|
||||
j,
|
||||
(newStack != null && newStack.stackSize > 0) ? newStack : null);
|
||||
}
|
||||
}
|
||||
}
|
||||
return new Int3(0, 0, 0);
|
||||
}
|
||||
|
||||
public Int3 getOutputBufferChestLocation(int number) {
|
||||
switch (number) {
|
||||
case 0:
|
||||
return new Int3(2, 0, 2);
|
||||
case 1:
|
||||
return new Int3(-2, 0, 2);
|
||||
case 2:
|
||||
return new Int3(2, 0, -2);
|
||||
case 3:
|
||||
return new Int3(-2, 0, -2);
|
||||
private boolean[] checkSlots(IInventory inventory, ForgeDirection direction) {
|
||||
boolean[] result = new boolean[inventory.getSizeInventory()];
|
||||
if (inventory instanceof ISidedInventory sidedInv) {
|
||||
int[] validSlots = sidedInv.getAccessibleSlotsFromSide(direction.ordinal());
|
||||
for (int slot : validSlots) result[slot] = true;
|
||||
} else {
|
||||
for (int i = 0; i < inventory.getSizeInventory(); i++) result[i] = true;
|
||||
}
|
||||
return new Int3(0, 0, 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
private boolean canExtractItem(IInventory inventory, int slot, ItemStack stack, ForgeDirection direction) {
|
||||
return stack != null && (!(inventory instanceof ISidedInventory)
|
||||
|| ((ISidedInventory) inventory).canExtractItem(slot, stack, direction.ordinal()));
|
||||
}
|
||||
|
||||
private ItemStack insertStackWithLimit(ItemStack stack, IInventory inventory, ForgeDirection direction,
|
||||
int maxAmount) {
|
||||
return maxAmount <= 0 ? SpellHelper.insertStackIntoInventory(stack, inventory, direction)
|
||||
: SpellHelper.insertStackIntoInventory(stack, inventory, direction, maxAmount);
|
||||
}
|
||||
|
||||
private List<IInventory> findBufferChests(World world, int x, int y, int z, Int3[] locations) {
|
||||
List<IInventory> chestList = new ArrayList<>();
|
||||
for (Int3 chestLocation : locations) {
|
||||
TileEntity tileEntity = world
|
||||
.getTileEntity(x + chestLocation.xCoord, y + chestLocation.yCoord, z + chestLocation.zCoord);
|
||||
if (tileEntity instanceof IInventory inv) {
|
||||
chestList.add(inv);
|
||||
}
|
||||
}
|
||||
return chestList;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -249,14 +162,14 @@ public class RitualEffectItemRouting extends RitualEffect {
|
||||
|
||||
@Override
|
||||
public List<RitualComponent> getRitualComponentList() {
|
||||
ArrayList<RitualComponent> omegaRitual = new ArrayList();
|
||||
ArrayList<RitualComponent> itemRoutingRitual = new ArrayList<>();
|
||||
|
||||
this.addCornerRunes(omegaRitual, 1, 0, RitualComponent.BLANK);
|
||||
this.addOffsetRunes(omegaRitual, 2, 1, 0, RitualComponent.FIRE);
|
||||
this.addParallelRunes(omegaRitual, 4, 0, RitualComponent.WATER);
|
||||
this.addParallelRunes(omegaRitual, 5, 0, RitualComponent.EARTH);
|
||||
this.addCornerRunes(omegaRitual, 4, 0, RitualComponent.WATER);
|
||||
this.addCornerRunes(itemRoutingRitual, 1, 0, RitualComponent.BLANK);
|
||||
this.addOffsetRunes(itemRoutingRitual, 2, 1, 0, RitualComponent.FIRE);
|
||||
this.addParallelRunes(itemRoutingRitual, 4, 0, RitualComponent.WATER);
|
||||
this.addParallelRunes(itemRoutingRitual, 5, 0, RitualComponent.EARTH);
|
||||
this.addCornerRunes(itemRoutingRitual, 4, 0, RitualComponent.WATER);
|
||||
|
||||
return omegaRitual;
|
||||
return itemRoutingRitual;
|
||||
}
|
||||
}
|
||||
+13
-1
@@ -1,6 +1,11 @@
|
||||
package WayofTime.alchemicalWizardry.common.routing;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.RoutingFocusLogic;
|
||||
|
||||
@@ -8,6 +13,13 @@ public class RoutingFocusLogicIgnMeta extends RoutingFocusLogic {
|
||||
|
||||
@Override
|
||||
public boolean getDefaultMatch(ItemStack keyStack, ItemStack checkedStack) {
|
||||
return (keyStack != null ? checkedStack != null && keyStack.getItem() == checkedStack.getItem() : false);
|
||||
return (keyStack != null && checkedStack != null && keyStack.getItem() == checkedStack.getItem());
|
||||
}
|
||||
|
||||
public List<String> getDescription() {
|
||||
return new ArrayList<>(
|
||||
Collections.singletonList(
|
||||
StatCollector.translateToLocal("tooltip.routingFocus.logic") + " "
|
||||
+ StatCollector.translateToLocal("item.outputRoutingFocus.ignMeta.logic")));
|
||||
}
|
||||
}
|
||||
-2
@@ -11,8 +11,6 @@ public class RoutingFocusLogicLimitDefault extends RoutingFocusLogicLimit {
|
||||
public RoutingFocusLogicLimitDefault(ItemStack stack) {
|
||||
if (stack != null && stack.getItem() instanceof ILimitedRoutingFocus) {
|
||||
limit = ((ILimitedRoutingFocus) stack.getItem()).getRoutingFocusLimit(stack);
|
||||
} else {
|
||||
limit = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+12
-2
@@ -1,6 +1,11 @@
|
||||
package WayofTime.alchemicalWizardry.common.routing;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.items.routing.ILimitedRoutingFocus;
|
||||
|
||||
@@ -11,8 +16,6 @@ public class RoutingFocusLogicLimitGlobal extends RoutingFocusLogicLimit {
|
||||
public RoutingFocusLogicLimitGlobal(ItemStack stack) {
|
||||
if (stack != null && stack.getItem() instanceof ILimitedRoutingFocus) {
|
||||
limit = ((ILimitedRoutingFocus) stack.getItem()).getRoutingFocusLimit(stack);
|
||||
} else {
|
||||
limit = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,4 +28,11 @@ public class RoutingFocusLogicLimitGlobal extends RoutingFocusLogicLimit {
|
||||
public boolean getDefaultMatch(ItemStack keyStack, ItemStack checkedStack) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public List<String> getDescription() {
|
||||
return new ArrayList<>(
|
||||
Collections.singletonList(
|
||||
StatCollector.translateToLocal("tooltip.routingFocus.logic") + " "
|
||||
+ StatCollector.translateToLocal("item.outputRoutingFocus.global.logic")));
|
||||
}
|
||||
}
|
||||
-2
@@ -12,8 +12,6 @@ public class RoutingFocusLogicLimitIgnMeta extends RoutingFocusLogicIgnMeta impl
|
||||
public RoutingFocusLogicLimitIgnMeta(ItemStack stack) {
|
||||
if (stack != null && stack.getItem() instanceof ILimitedRoutingFocus) {
|
||||
limit = ((ILimitedRoutingFocus) stack.getItem()).getRoutingFocusLimit(stack);
|
||||
} else {
|
||||
limit = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-2
@@ -12,8 +12,6 @@ public class RoutingFocusLogicLimitMatchNBT extends RoutingFocusLogicMatchNBT im
|
||||
public RoutingFocusLogicLimitMatchNBT(ItemStack stack) {
|
||||
if (stack != null && stack.getItem() instanceof ILimitedRoutingFocus) {
|
||||
limit = ((ILimitedRoutingFocus) stack.getItem()).getRoutingFocusLimit(stack);
|
||||
} else {
|
||||
limit = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-2
@@ -12,8 +12,6 @@ public class RoutingFocusLogicLimitModItems extends RoutingFocusLogicModItems im
|
||||
public RoutingFocusLogicLimitModItems(ItemStack stack) {
|
||||
if (stack != null && stack.getItem() instanceof ILimitedRoutingFocus) {
|
||||
limit = ((ILimitedRoutingFocus) stack.getItem()).getRoutingFocusLimit(stack);
|
||||
} else {
|
||||
limit = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+17
-4
@@ -1,20 +1,33 @@
|
||||
package WayofTime.alchemicalWizardry.common.routing;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.RoutingFocusLogic;
|
||||
|
||||
public class RoutingFocusLogicMatchNBT extends RoutingFocusLogic {
|
||||
|
||||
public boolean getDefaultMatch(ItemStack keyStack, ItemStack checkedStack) {
|
||||
return (keyStack != null ? checkedStack != null && keyStack.getItem() == checkedStack.getItem()
|
||||
&& (keyStack.getItem().getHasSubtypes() ? keyStack.getItemDamage() == checkedStack.getItemDamage()
|
||||
: true)
|
||||
&& keyStack.areItemStackTagsEqual(keyStack, checkedStack) : false);
|
||||
return (keyStack != null && keyStack.getItem() != null
|
||||
&& checkedStack != null
|
||||
&& keyStack.getItem() == checkedStack.getItem()
|
||||
&& (!keyStack.getItem().getHasSubtypes() || keyStack.getItemDamage() == checkedStack.getItemDamage())
|
||||
&& ItemStack.areItemStackTagsEqual(keyStack, checkedStack));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesItemMatch(boolean previous, ItemStack keyStack, ItemStack checkedStack) {
|
||||
return previous && this.getDefaultMatch(keyStack, checkedStack);
|
||||
}
|
||||
|
||||
public List<String> getDescription() {
|
||||
return new ArrayList<>(
|
||||
Collections.singletonList(
|
||||
StatCollector.translateToLocal("tooltip.routingFocus.logic") + " "
|
||||
+ StatCollector.translateToLocal("item.outputRoutingFocus.matchNBT.logic")));
|
||||
}
|
||||
}
|
||||
+13
-1
@@ -1,7 +1,12 @@
|
||||
package WayofTime.alchemicalWizardry.common.routing;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.RoutingFocusLogic;
|
||||
import cpw.mods.fml.common.registry.GameData;
|
||||
@@ -23,11 +28,18 @@ public class RoutingFocusLogicModItems extends RoutingFocusLogic {
|
||||
String str = GameData.getItemRegistry().getNameForObject(itm);
|
||||
if (!str.isEmpty()) {
|
||||
String[] strs = str.split(":");
|
||||
if (strs != null && strs.length >= 1) {
|
||||
if (strs.length >= 1) {
|
||||
return strs[0];
|
||||
}
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
public List<String> getDescription() {
|
||||
return new ArrayList<>(
|
||||
Collections.singletonList(
|
||||
StatCollector.translateToLocal("tooltip.routingFocus.logic") + " "
|
||||
+ StatCollector.translateToLocal("item.outputRoutingFocus.modItem.logic")));
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 292 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
@@ -230,11 +230,11 @@ item.itemMailCatalogue.name=Mail Order Catalogue
|
||||
item.inputRoutingFocus.name=Input Routing Focus
|
||||
item.bloodMagicBaseItem.EnderShard.name=Ender Shard
|
||||
item.outputRoutingFocus.name=Output Routing Focus
|
||||
item.outputRoutingFocus.default.name=Default Output Routing Focus
|
||||
item.outputRoutingFocus.modItem.name=Output Routing Focus (ModItem)
|
||||
item.outputRoutingFocus.ignMeta.name=Output Routing Focus (Ignore Meta)
|
||||
item.outputRoutingFocus.matchNBT.name=Output Routing Focus (MatchNBT)
|
||||
item.outputRoutingFocus.global.name=Output Routing Focus (Global)
|
||||
item.outputRoutingFocus.default.logic=Match Item & Meta
|
||||
item.outputRoutingFocus.modItem.logic=Match Mod
|
||||
item.outputRoutingFocus.ignMeta.logic=Match Item, Ignore Meta
|
||||
item.outputRoutingFocus.matchNBT.logic=Match Item, Meta, & NBT
|
||||
item.outputRoutingFocus.global.logic=Move Everything
|
||||
item.dawnScribeTool.name=Elemental Inscription Tool: Dawn
|
||||
item.boundHelmetEarth.name=Earth Omega Helmet
|
||||
item.boundPlateEarth.name=Earth Omega Plate
|
||||
@@ -533,6 +533,7 @@ tooltip.telepositionfocus.desc=An Enderpearl imbued with blood
|
||||
tooltip.voidsigil.desc=Better than a Swiffer!
|
||||
tooltip.watersigil.desc=Infinite water, anyone?
|
||||
tooltip.routingFocus.limit=Limit:
|
||||
tooltip.routingFocus.logic=Logic:
|
||||
tooltip.routingFocus.desc=A focus used to route items
|
||||
tooltip.alchemy.usedinincense=Purifying incense used in a crucible
|
||||
|
||||
@@ -566,6 +567,8 @@ message.masterstone.ritualresistyou=The ritual appears to actively resist you!
|
||||
message.masterstone.somethingstoppedyou=Something stopped you in your tracks...
|
||||
message.masterstone.youfeelapull=You feel a pull, but you are too weak to push any further.
|
||||
message.ritual.currentritual=Current Ritual:
|
||||
message.ritual.side.up=UP
|
||||
message.ritual.side.down=DOWN
|
||||
message.ritual.side.east=EAST
|
||||
message.ritual.side.north=NORTH
|
||||
message.ritual.side.south=SOUTH
|
||||
|
||||
@@ -212,11 +212,7 @@ item.transcendentBloodOrb.name=Трансцендентальный кровав
|
||||
item.itemMailCatalogue.name=Mail Order Catalogue
|
||||
item.inputRoutingFocus.name=Фокус направления входа
|
||||
item.bloodMagicBaseItem.EnderShard.name=Осколок Края
|
||||
item.outputRoutingFocus.default.name=Обычный фокус направления выхода
|
||||
item.outputRoutingFocus.modItem.name=Фокус направления выхода (ModItem)
|
||||
item.outputRoutingFocus.ignMeta.name=Фокус направления выхода (Ignore Meta)
|
||||
item.outputRoutingFocus.matchNBT.name=Фокус направления выхода (MatchNBT)
|
||||
item.outputRoutingFocus.global.name=Фокус направления выхода (Global)
|
||||
item.outputRoutingFocus.name=фокус направления выхода
|
||||
item.dawnScribeTool.name=Elemental Inscription Tool: Dawn
|
||||
item.boundHelmetEarth.name=Земляной омега шлем
|
||||
item.boundPlateEarth.name=Земляная омега кираса
|
||||
@@ -444,6 +440,8 @@ message.masterstone.ritualresistyou=Ритуал, кажется, защищае
|
||||
message.masterstone.somethingstoppedyou=Что-то останавливает Вас...
|
||||
message.masterstone.youfeelapull=Вы чувствуете втягивание, но Вы слишком слабы, чтобы толкать дальше.
|
||||
message.ritual.currentritual=Текущий ритуал:
|
||||
message.ritual.side.up=ВВЕРХ
|
||||
message.ritual.side.down=ВНИЗ
|
||||
message.ritual.side.east=ВОСТОК
|
||||
message.ritual.side.north=СЕВЕР
|
||||
message.ritual.side.south=ЮГ
|
||||
|
||||
@@ -218,11 +218,11 @@ item.transcendentBloodOrb.name=卓越气血宝珠
|
||||
item.itemMailCatalogue.name=邮购目录
|
||||
item.inputRoutingFocus.name=输入路由核心
|
||||
item.bloodMagicBaseItem.EnderShard.name=末影碎片
|
||||
item.outputRoutingFocus.default.name=输出路由核心(默认)
|
||||
item.outputRoutingFocus.modItem.name=输出路由核心(模组物品)
|
||||
item.outputRoutingFocus.ignMeta.name=输出路由核心(数据值忽视)
|
||||
item.outputRoutingFocus.matchNBT.name=输出路由核心(NBT匹配)
|
||||
item.outputRoutingFocus.global.name=输出路由核心(Global)
|
||||
item.outputRoutingFocus.name=输出路由核心
|
||||
item.outputRoutingFocus.default.logic=默认
|
||||
item.outputRoutingFocus.modItem.logic=模组物品
|
||||
item.outputRoutingFocus.ignMeta.logic=数据值忽视
|
||||
item.outputRoutingFocus.matchNBT.logic=NBT匹配
|
||||
item.dawnScribeTool.name=元素铭文:破晓
|
||||
item.boundHelmetEarth.name=土`欧米伽头盔
|
||||
item.boundPlateEarth.name=土`欧米伽胸甲
|
||||
@@ -539,6 +539,8 @@ message.masterstone.ritualresistyou=仪式似乎在积极的抵抗你!
|
||||
message.masterstone.somethingstoppedyou=有什么东西使你的路径堵塞...
|
||||
message.masterstone.youfeelapull=你感到一股拉力,但没有足够的能量促进其发生.
|
||||
message.ritual.currentritual=目前仪式:
|
||||
message.ritual.side.up=上
|
||||
message.ritual.side.down=下
|
||||
message.ritual.side.east=东
|
||||
message.ritual.side.north=北
|
||||
message.ritual.side.south=南
|
||||
|
||||
@@ -213,11 +213,12 @@ item.transcendentBloodOrb.name=卓越氣血寶珠
|
||||
item.itemMailCatalogue.name=Mail Order Catalogue
|
||||
item.inputRoutingFocus.name=Input Routing Focus
|
||||
item.bloodMagicBaseItem.EnderShard.name=Ender Shard
|
||||
item.outputRoutingFocus.default.name=Default Output Routing Focus
|
||||
item.outputRoutingFocus.modItem.name=Output Routing Focus (ModItem)
|
||||
item.outputRoutingFocus.ignMeta.name=Output Routing Focus (Ignore Meta)
|
||||
item.outputRoutingFocus.matchNBT.name=Output Routing Focus (MatchNBT)
|
||||
item.outputRoutingFocus.global.name=Output Routing Focus (Global)
|
||||
item.outputRoutingFocus.name=Default Output Routing Focus
|
||||
item.outputRoutingFocus.default.logic=Match Item & Meta
|
||||
item.outputRoutingFocus.modItem.logic=Match Mod
|
||||
item.outputRoutingFocus.ignMeta.logic=Match Item, Ignore Meta
|
||||
item.outputRoutingFocus.matchNBT.logic=Match Item, Meta, & NBT
|
||||
item.outputRoutingFocus.global.logic=Move Everything
|
||||
item.dawnScribeTool.name=Elemental Inscription Tool: Dawn
|
||||
item.boundHelmetEarth.name=Earth Omega Helmet
|
||||
item.boundPlateEarth.name=Earth Omega Plate
|
||||
@@ -452,6 +453,8 @@ message.masterstone.ritualresistyou=The ritual appears to actively resist you!
|
||||
message.masterstone.somethingstoppedyou=Something stopped you in your tracks...
|
||||
message.masterstone.youfeelapull=You feel a pull, but you are too weak to push any further.
|
||||
message.ritual.currentritual=Current Ritual:
|
||||
message.ritual.side.up=上
|
||||
message.ritual.side.down=下
|
||||
message.ritual.side.east=東
|
||||
message.ritual.side.north=北
|
||||
message.ritual.side.south=南
|
||||
|
||||
Reference in new issue
Block a user