Compare commits

..
Author SHA1 Message Date
Niclas KlugmannandMaya d3f9b102d6 Move Awakened Kami Armor to GT Hazard API (#49)
Co-authored-by: Maya <[email protected]>
2025-04-08 21:22:27 +00:00
RubilaxXxx 0f74be83ac cleanse the mod of its ae2 dep. (#51) 2025-04-08 21:17:25 +00:00
Maya a61d4b6d9f update 2025-03-20 09:53:56 -05:00
GleaseandMaya e4d716addb try to fix gaia server hang (#48)
Co-authored-by: Maya <[email protected]>
2025-03-20 14:53:47 +00:00
GleaseandMaya 393eec213c make more resilient checks against existing blocks (#47)
Co-authored-by: Maya <[email protected]>
2025-03-20 14:46:59 +00:00
Glease 40ce1b4c61 fix celestial gateway button render (#46) 2025-03-20 09:42:30 -05:00
Maya 292be28f00 update 2025-03-11 09:37:29 -05:00
Glease 3809971825 close container if parent item is gone (#45) 2025-03-11 09:37:18 -05:00
Martin Robertz db796ae830 update 2025-01-24 19:44:45 +01:00
koolkrafter5 d92266f5e3 Essentia Funnel Bugfix (#44) 2025-01-24 01:04:40 -06:00
Martin Robertz 304fed71dd update 2025-01-03 22:09:04 +01:00
glowredman bd2506a479 Add Localizations (#43) 2025-01-02 17:53:24 +00:00
Martin Robertz 62a9677326 update 2024-12-22 01:20:18 +01:00
HelixPHD b259785bbc Fixed crashes upon harvesting of Praecantatio Infused Seeds (#42) 2024-12-21 16:34:01 +00:00
Dream Master d4191557af update 2024-10-13 21:04:51 +02:00
47 changed files with 176 additions and 993 deletions

No files matched your search

+1
View File
@@ -30,3 +30,4 @@ src/main/resources/mixins.*([!.]).json
*.bat
*.DS_Store
!gradlew.bat
layout.json
+11 -12
View File
@@ -1,23 +1,22 @@
// Add your dependencies here
dependencies {
api('com.github.GTNewHorizons:Baubles:1.0.4:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-402-GTNH:api')
api('com.github.GTNewHorizons:Baubles-Expanded:2.1.6-GTNH:dev')
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-576-GTNH:api')
compileOnly('com.github.GTNewHorizons:Botania:1.11.1-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:Botania:1.12.6-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderCore:0.4.6:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderIO:2.8.0:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderStorage:1.6.0:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:waila:1.8.0:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:TinkersConstruct:1.12.1-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.4.8:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:CodeChickenLib:1.2.1:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:OpenComputers:1.10.11-GTNH:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderIO:2.9.6:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderStorage:1.7.2:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:waila:1.8.4:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:TinkersConstruct:1.13.16-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.6.2:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:CodeChickenCore:1.4.1:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:OpenComputers:1.11.12-GTNH:api') {transitive=false}
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.51.227:dev") {transitive=false}
compileOnly('curse.maven:computercraft-67504:2269339')
compileOnly('curse.maven:cofh-lib-220333:2388748')
compileOnly('curse.maven:cofh-core-69162:2388751')
compileOnly('net.industrial-craft:industrialcraft-2:2.2.828-experimental:api') {transitive=false}
}
+13 -2
View File
@@ -14,7 +14,7 @@ modId = ThaumicTinkerer
modGroup = thaumic.tinkerer
# Whether to use modGroup as the maven publishing group.
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
# When false, com.github.GTNewHorizons is used.
useModGroupForPublishing = false
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
@@ -85,6 +85,11 @@ accessTransformersFile = ThaumicTinkerer_at.cfg
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
usesMixins = true
# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
# Mixin classes will have access to "main" classes, but not the other way around.
separateMixinSourceSet =
# Adds some debug arguments like verbose output and class export.
usesMixinDebug = true
@@ -117,9 +122,15 @@ minimizeShadowedDependencies = true
# If disabled, won't rename the shadowed classes.
relocateShadowedDependencies = true
# Adds the GTNH maven, CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
includeWellKnownRepositories = true
# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated
# list of strings, with the acceptable keys being(case does not matter):
# cursemaven
# modrinth
excludeWellKnownRepositories =
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
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.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Vendored
+4 -2
View File
@@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
##############################################################################
#
@@ -84,7 +86,7 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
@@ -203,7 +205,7 @@ fi
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
Vendored
+2
View File
@@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.23'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.38'
}
@@ -1,36 +0,0 @@
package thaumic.tinkerer.api;
import net.minecraft.item.ItemStack;
import thaumcraft.api.aspects.Aspect;
public class VisweaverRecipe {
private final int centivisCost;
private final Aspect centivisType;
private final ItemStack input;
private final ItemStack output;
VisweaverRecipe(int centivisCost, Aspect centivisType, ItemStack input, ItemStack output) {
this.centivisCost = centivisCost;
this.centivisType = centivisType;
this.input = input;
this.output = output;
}
public int getCentivisCost() {
return centivisCost;
}
public Aspect getCentivisType() {
return centivisType;
}
public ItemStack getInput() {
return input;
}
public ItemStack getOutput() {
return output;
}
}
@@ -1,27 +0,0 @@
package thaumic.tinkerer.api;
import net.minecraft.item.ItemStack;
import it.unimi.dsi.fastutil.objects.Object2ObjectOpenCustomHashMap;
import thaumcraft.api.aspects.Aspect;
import thaumic.tinkerer.common.core.helper.ItemHashStrategy;
public class VisweaverRecipeMap {
/*
* Hashmap using a hashing strategy suited to comparing items
*/
private static final Object2ObjectOpenCustomHashMap<ItemStack, VisweaverRecipe> recipeMap = new Object2ObjectOpenCustomHashMap<>(
new ItemHashStrategy());
private VisweaverRecipeMap() {}
public static VisweaverRecipe lookup(ItemStack input) {
return recipeMap.get(input);
}
public static void putRecipe(int centivisCost, Aspect centivisType, ItemStack input, ItemStack output) {
VisweaverRecipe recipe = new VisweaverRecipe(centivisCost, centivisType, input, output);
recipeMap.put(input, recipe);
}
}
@@ -40,7 +40,6 @@ import thaumic.tinkerer.client.lib.LibRenderIDs;
import thaumic.tinkerer.client.render.block.RenderInfusedCrops;
import thaumic.tinkerer.client.render.block.RenderMagnet;
import thaumic.tinkerer.client.render.block.RenderRepairer;
import thaumic.tinkerer.client.render.block.RenderVisweaver;
import thaumic.tinkerer.client.render.block.kami.RenderWarpGate;
import thaumic.tinkerer.client.render.item.RenderGenericSeeds;
import thaumic.tinkerer.client.render.item.RenderMobDisplay;
@@ -50,14 +49,12 @@ import thaumic.tinkerer.client.render.tile.RenderTileEnchanter;
import thaumic.tinkerer.client.render.tile.RenderTileFunnel;
import thaumic.tinkerer.client.render.tile.RenderTileMagnet;
import thaumic.tinkerer.client.render.tile.RenderTileRepairer;
import thaumic.tinkerer.client.render.tile.RenderTileVisweaver;
import thaumic.tinkerer.client.render.tile.kami.RenderTileWarpGate;
import thaumic.tinkerer.common.ThaumicTinkerer;
import thaumic.tinkerer.common.block.tile.TileEnchanter;
import thaumic.tinkerer.common.block.tile.TileFunnel;
import thaumic.tinkerer.common.block.tile.TileMagnet;
import thaumic.tinkerer.common.block.tile.TileRepairer;
import thaumic.tinkerer.common.block.tile.TileVisweaver;
import thaumic.tinkerer.common.block.tile.kami.TileWarpGate;
import thaumic.tinkerer.common.block.tile.tablet.TileAnimationTablet;
import thaumic.tinkerer.common.compat.FumeTool;
@@ -117,7 +114,6 @@ public class TTClientProxy extends TTCommonProxy {
ClientRegistry.bindTileEntitySpecialRenderer(TileEnchanter.class, new RenderTileEnchanter());
ClientRegistry.bindTileEntitySpecialRenderer(TileFunnel.class, new RenderTileFunnel());
ClientRegistry.bindTileEntitySpecialRenderer(TileRepairer.class, new RenderTileRepairer());
ClientRegistry.bindTileEntitySpecialRenderer(TileVisweaver.class, new RenderTileVisweaver());
LibRenderIDs.idGrain = RenderingRegistry.getNextAvailableRenderId();
RenderingRegistry.registerBlockHandler(LibRenderIDs.idGrain, new RenderInfusedCrops());
@@ -131,10 +127,8 @@ public class TTClientProxy extends TTCommonProxy {
LibRenderIDs.idMagnet = RenderingRegistry.getNextAvailableRenderId();
LibRenderIDs.idRepairer = RenderingRegistry.getNextAvailableRenderId();
LibRenderIDs.idFire = RenderingRegistry.getNextAvailableRenderId();
LibRenderIDs.idVisweaver = RenderingRegistry.getNextAvailableRenderId();
RenderingRegistry.registerBlockHandler(new RenderMagnet());
RenderingRegistry.registerBlockHandler(new RenderRepairer());
RenderingRegistry.registerBlockHandler(new RenderVisweaver());
MinecraftForgeClient.registerItemRenderer(
ThaumicTinkerer.registry.getFirstItemFromClass(ItemMobDisplay.class),
@@ -1,78 +0,0 @@
package thaumic.tinkerer.client.gui;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
import thaumic.tinkerer.client.core.helper.ClientHelper;
import thaumic.tinkerer.client.lib.LibResources;
import thaumic.tinkerer.common.block.tile.TileVisweaver;
import thaumic.tinkerer.common.block.tile.container.ContainerVisweaver;
public class GUIVisweaver extends GuiContainer {
private static final ResourceLocation gui = new ResourceLocation(LibResources.GUI_VISWEAVER);
public TileVisweaver visweaver;
public List<String> tooltip = new ArrayList<>();
int x, y;
ItemStack lastTickStack;
ItemStack currentStack;
public GUIVisweaver(TileVisweaver visweaver, InventoryPlayer inv) {
super(new ContainerVisweaver(visweaver, inv));
this.visweaver = visweaver;
lastTickStack = visweaver.getStackInSlot(0);
currentStack = visweaver.getStackInSlot(0);
}
@Override
public void initGui() {
super.initGui();
x = (width - xSize) / 2;
y = (height - ySize) / 2;
}
@Override
public void updateScreen() {
currentStack = visweaver.getStackInSlot(0);
lastTickStack = currentStack;
}
@Override
protected void drawGuiContainerBackgroundLayer(float f, int i, int j) {
GL11.glColor4f(1F, 1F, 1F, 1F);
mc.renderEngine.bindTexture(gui);
drawTexturedModalRect(x, y, 0, 0, xSize, ySize);
GL11.glEnable(GL11.GL_BLEND);
if (visweaver.isWorking()) {
int pixels = (int) (67D * ((double) visweaver.getInternalVis() / (double) visweaver.getRequiredVis()));
// Draw aspect color to fill
Color color = new Color(visweaver.getCvType().getColor());
GL11.glColor3ub((byte) color.getRed(), (byte) color.getGreen(), (byte) color.getBlue());
drawTexturedModalRect(x + 56, y + 35, 185, 10, pixels, 8);
}
// Draw aspect "container" over progressbar
GL11.glColor3f(1F, 1F, 1F);
drawTexturedModalRect(x + 49, y + 34, 178, 0, 78, 10);
GL11.glDisable(GL11.GL_BLEND);
}
@Override
protected void drawGuiContainerForegroundLayer(int par1, int par2) {
if (!tooltip.isEmpty()) ClientHelper.renderTooltip(par1 - x, par2 - y, tooltip);
tooltip.clear();
}
}
@@ -30,10 +30,8 @@ public class GuiButtonWG extends GuiButton {
@Override
public void drawButton(Minecraft par1Minecraft, int par2, int par3) {
if (enabled) {
par1Minecraft.renderEngine.bindTexture(gui);
int y = !enabled ? 13 : 0;
drawTexturedModalRect(xPosition, yPosition, 176, y, width, height);
}
par1Minecraft.renderEngine.bindTexture(gui);
int y = !enabled ? 13 : 0;
drawTexturedModalRect(xPosition, yPosition, 176, y, width, height);
}
}
@@ -15,7 +15,6 @@ public final class LibRenderIDs {
public static int idMagnet = -1;
public static int idRepairer = -1;
public static int idVisweaver = -1;
public static int idWarpGate = -1;
@@ -32,7 +32,6 @@ public final class LibResources {
public static final String GUI_ICHOR_POUCH = PREFIX_GUI + "ichorPouch.png";
public static final String GUI_WARP_GATE = PREFIX_GUI + "warpGate.png";
public static final String GUI_REMOTE_PLACER = PREFIX_GUI + "remotePlacer.png";
public static final String GUI_VISWEAVER = PREFIX_GUI + "visweaver.png";
public static final String MISC_R_ENCHANTING = PREFIX_MISC + "r_enchanting.png";
public static final String MISC_AT_CENTER = PREFIX_MISC + "atCenter.png";
@@ -55,7 +54,6 @@ public final class LibResources {
public static final String MODEL_ARMOR_ICHOR_2 = PREFIX_MODEL + "ichor2.png";
public static final String MODEL_ARMOR_ICHOR_GEM_1 = PREFIX_MODEL + "ichorGem1.png";
public static final String MODEL_ARMOR_ICHOR_GEM_2 = PREFIX_MODEL + "ichorGem2.png";
public static final String MODEL_VISWEAVER = PREFIX_MODEL + "visweaver.png";
public static final String ENCHANT_PROTECTION = PREFIX_ENCHANTS + "protection.png";
public static final String ENCHANT_FIRE_PROTECTION = PREFIX_ENCHANTS + "fireProtection.png";
@@ -1,134 +0,0 @@
package thaumic.tinkerer.client.model;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import thaumcraft.api.aspects.Aspect;
public class ModelVisweaver extends ModelBase {
public ModelRenderer base;
public ModelRenderer top;
public ModelRenderer pillar1;
public ModelRenderer pillar2;
public ModelRenderer pillar3;
public ModelRenderer pillar4;
public ModelRenderer orbBase;
public ModelRenderer orbIgnis;
public ModelRenderer orbAqua;
public ModelRenderer orbAer;
public ModelRenderer orbTerra;
public ModelRenderer orbOrdo;
public ModelRenderer orbPerditio;
public ModelRenderer orbCarrier;
public ModelVisweaver() {
this.textureWidth = 64;
this.textureHeight = 36;
this.pillar1 = new ModelRenderer(this, 0, 0);
this.pillar1.setRotationPoint(-7.0F, 14.0F, 5.0F);
this.pillar1.addBox(0.0F, 0.0F, 0.0F, 2, 8, 2, 0.0F);
this.pillar2 = new ModelRenderer(this, 0, 0);
this.pillar2.setRotationPoint(5.0F, 14.0F, 5.0F);
this.pillar2.addBox(0.0F, 0.0F, 0.0F, 2, 8, 2, 0.0F);
this.pillar3 = new ModelRenderer(this, 0, 0);
this.pillar3.setRotationPoint(5.0F, 14.0F, -7.0F);
this.pillar3.addBox(0.0F, 0.0F, 0.0F, 2, 8, 2, 0.0F);
this.pillar4 = new ModelRenderer(this, 0, 0);
this.pillar4.setRotationPoint(-7.0F, 14.0F, -7.0F);
this.pillar4.addBox(0.0F, 0.0F, 0.0F, 2, 8, 2, 0.0F);
this.top = new ModelRenderer(this, 0, 0);
this.top.setRotationPoint(-8.0F, 12.0F, -8.0F);
this.top.addBox(0.0F, 0.0F, 0.0F, 16, 2, 16, 0.0F);
this.base = new ModelRenderer(this, 0, 18);
this.base.setRotationPoint(-8.0F, 22.0F, -8.0F);
this.base.addBox(0.0F, 0.0F, 0.0F, 16, 2, 16, 0.0F);
this.orbBase = new ModelRenderer(this, 48, 0);
this.orbBase.setRotationPoint(0, 8, 0);
this.orbBase.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2, 0.0F);
this.orbIgnis = new ModelRenderer(this, 56, 4);
this.orbIgnis.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2, 0.0F);
this.orbIgnis.setRotationPoint(0, 8, 0);
this.orbAqua = new ModelRenderer(this, 56, 12);
this.orbAqua.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2, 0.0F);
this.orbAqua.setRotationPoint(0, 8, 0);
this.orbAer = new ModelRenderer(this, 56, 8);
this.orbAer.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2, 0.0F);
this.orbAer.setRotationPoint(0, 8, 0);
this.orbTerra = new ModelRenderer(this, 48, 8);
this.orbTerra.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2, 0.0F);
this.orbTerra.setRotationPoint(0, 8, 0);
this.orbOrdo = new ModelRenderer(this, 48, 12);
this.orbOrdo.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2, 0.0F);
this.orbOrdo.setRotationPoint(0, 8, 0);
this.orbPerditio = new ModelRenderer(this, 48, 4);
this.orbPerditio.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2, 0.0F);
this.orbPerditio.setRotationPoint(0, 8, 0);
this.orbCarrier = new ModelRenderer(this);
this.orbCarrier.addChild(this.orbBase);
this.orbCarrier.addChild(this.orbIgnis);
this.orbCarrier.addChild(this.orbAqua);
this.orbCarrier.addChild(this.orbAer);
this.orbCarrier.addChild(this.orbTerra);
this.orbCarrier.addChild(this.orbOrdo);
this.orbCarrier.addChild(this.orbPerditio);
}
public void render(boolean isWorking, int tickCounter, Aspect cvType) {
final float scale = 1F / 16F;
float xyRotate = (float) tickCounter / 20F;
float zRotate = (float) tickCounter / 100F;
orbCarrier.rotationPointX = (float) Math.sin((float) tickCounter / 10.0F) * 2.0F;
float orbitRotation = ((float) tickCounter / 40F) % (2F * (float) Math.PI);
setRotateAngle(orbCarrier, 0F, orbitRotation, 0F);
ModelRenderer toRender = getToRender(isWorking, cvType);
setRotateAngle(toRender, xyRotate, xyRotate, zRotate);
toRender.render(scale);
this.pillar3.render(scale);
this.top.render(scale);
this.pillar4.render(scale);
this.base.render(scale);
this.pillar1.render(scale);
this.pillar2.render(scale);
}
private ModelRenderer getToRender(boolean isWorking, Aspect cvType) {
ModelRenderer toRender = orbBase;
if (isWorking) {
if (cvType == Aspect.AIR) {
toRender = orbAer;
} else if (cvType == Aspect.FIRE) {
toRender = orbIgnis;
} else if (cvType == Aspect.ORDER) {
toRender = orbOrdo;
} else if (cvType == Aspect.ENTROPY) {
toRender = orbPerditio;
} else if (cvType == Aspect.WATER) {
toRender = orbAqua;
} else if (cvType == Aspect.EARTH) {
toRender = orbTerra;
}
}
return toRender;
}
public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {
modelRenderer.rotateAngleX = x;
modelRenderer.rotateAngleY = y;
modelRenderer.rotateAngleZ = z;
}
}
@@ -1,39 +0,0 @@
package thaumic.tinkerer.client.render.block;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
import net.minecraft.world.IBlockAccess;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
import thaumic.tinkerer.client.lib.LibRenderIDs;
import thaumic.tinkerer.common.block.tile.TileVisweaver;
public class RenderVisweaver implements ISimpleBlockRenderingHandler {
@Override
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
GL11.glPushMatrix();
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
TileEntityRendererDispatcher.instance.renderTileEntityAt(new TileVisweaver(), 0.0D, 0.0D, 0.0D, 0.0F);
GL11.glPopMatrix();
}
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
RenderBlocks renderer) {
return false;
}
@Override
public boolean shouldRender3DInInventory(int modelId) {
return true;
}
@Override
public int getRenderId() {
return LibRenderIDs.idVisweaver;
}
}
@@ -11,6 +11,8 @@
*/
package thaumic.tinkerer.client.render.tile;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
@@ -20,6 +22,7 @@ import org.lwjgl.opengl.GL11;
import thaumcraft.client.renderers.block.BlockJarRenderer;
import thaumcraft.client.renderers.tile.ItemJarFilledRenderer;
import thaumcraft.common.config.ConfigBlocks;
import thaumic.tinkerer.common.block.tile.TileFunnel;
public class RenderTileFunnel extends TileEntitySpecialRenderer {
@@ -34,12 +37,12 @@ public class RenderTileFunnel extends TileEntitySpecialRenderer {
if (stack != null) {
GL11.glPushMatrix();
GL11.glTranslated(d0 + 0.5, d1 + 0.365, d2 + 0.5);
// if(Block.getBlockFromItem(stack.getItem())== ConfigBlocks.blockJar) {
// GL11.glTranslatef(0F, 0.25F, 0F);
// jarRenderer.renderInventoryBlock(ConfigBlocks.blockJar, 0, 0, new RenderBlocks());
// }
// else
jarRenderer1.renderItem(IItemRenderer.ItemRenderType.ENTITY, stack, (Object[]) null);
if (Block.getBlockFromItem(stack.getItem()) == ConfigBlocks.blockJar) {
GL11.glTranslatef(0F, 0.25F, 0F);
jarRenderer.renderInventoryBlock(ConfigBlocks.blockJar, stack.getItemDamage(), 0, new RenderBlocks());
} else {
jarRenderer1.renderItem(IItemRenderer.ItemRenderType.ENTITY, stack, (Object[]) null);
}
GL11.glPopMatrix();
}
}
@@ -1,44 +0,0 @@
package thaumic.tinkerer.client.render.tile;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
import thaumic.tinkerer.client.core.helper.ClientHelper;
import thaumic.tinkerer.client.lib.LibResources;
import thaumic.tinkerer.client.model.ModelVisweaver;
import thaumic.tinkerer.common.block.tile.TileVisweaver;
public class RenderTileVisweaver extends TileEntitySpecialRenderer {
private static final ResourceLocation modelTex = new ResourceLocation(LibResources.MODEL_VISWEAVER);
ModelVisweaver model = new ModelVisweaver();
@Override
public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
TileVisweaver visweaver = (TileVisweaver) tileentity;
GL11.glPushMatrix();
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
GL11.glColor4f(1F, 1F, 1F, 1F);
GL11.glTranslatef((float) x, (float) y, (float) z);
ClientHelper.minecraft().renderEngine.bindTexture(modelTex);
GL11.glTranslatef(0.5F, 1.5F, 0.5F);
GL11.glScalef(1F, -1F, -1F);
model.render(visweaver.isWorking(), visweaver.getTickCounter(), visweaver.getCvType());
GL11.glRotatef(90F, 1F, 0F, 0F);
GL11.glTranslatef(0F, 0F, -0.6F);
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
GL11.glPopMatrix();
}
}
@@ -1,150 +0,0 @@
package thaumic.tinkerer.common.block;
import static thaumic.tinkerer.common.lib.LibBlockNames.VISWEAVER;
import java.util.ArrayList;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.research.ResearchPage;
import thaumcraft.common.config.ConfigBlocks;
import thaumcraft.common.config.ConfigItems;
import thaumic.tinkerer.api.VisweaverRecipeMap;
import thaumic.tinkerer.client.lib.LibRenderIDs;
import thaumic.tinkerer.common.ThaumicTinkerer;
import thaumic.tinkerer.common.block.tile.TileVisweaver;
import thaumic.tinkerer.common.item.ItemSpellCloth;
import thaumic.tinkerer.common.lib.LibGuiIDs;
import thaumic.tinkerer.common.lib.LibResearch;
import thaumic.tinkerer.common.registry.ThaumicTinkererInfusionRecipe;
import thaumic.tinkerer.common.registry.ThaumicTinkererRecipe;
import thaumic.tinkerer.common.research.IRegisterableResearch;
import thaumic.tinkerer.common.research.ResearchHelper;
import thaumic.tinkerer.common.research.TTResearchItem;
public class BlockVisweaver extends BlockModContainer {
IIcon iconBottom;
IIcon iconTop;
IIcon iconSides;
public BlockVisweaver() {
super(Material.wood);
setHardness(5F);
setResistance(10F);
VisweaverRecipeMap.putRecipe(25, Aspect.FIRE, new ItemStack(Items.bed), new ItemStack(Items.spider_eye));
VisweaverRecipeMap.putRecipe(50, Aspect.EARTH, new ItemStack(Items.brick), new ItemStack(Items.netherbrick));
}
@Override
public Class<? extends TileEntity> getTileEntity() {
return TileVisweaver.class;
}
@Override
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer,
int par6, float par7, float par8, float par9) {
if (!par1World.isRemote) {
TileEntity tile = par1World.getTileEntity(par2, par3, par4);
if (tile != null) {
par1World.markBlockForUpdate(par2, par3, par4);
par5EntityPlayer
.openGui(ThaumicTinkerer.instance, LibGuiIDs.GUI_ID_VISWEAVER, par1World, par2, par3, par4);
}
}
return true;
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return Blocks.planks.getIcon(0, 1);
}
@Override
public TileEntity createNewTileEntity(World world, int var2) {
return new TileVisweaver();
}
@Override
public ArrayList<Object> getSpecialParameters() {
return null;
}
@Override
public String getBlockName() {
return VISWEAVER;
}
// Only register as part of the GTNH modpack
@Override
public boolean shouldRegister() {
// return Loader.isModLoaded("dreamcraft");
return true;
}
@Override
public boolean shouldDisplayInTab() {
return true;
}
@Override
public int getRenderType() {
return LibRenderIDs.idVisweaver;
}
@Override
public boolean isOpaqueCube() {
return false;
}
@Override
public boolean renderAsNormalBlock() {
return false;
}
@Override
public IRegisterableResearch getResearchItem() {
return (IRegisterableResearch) new TTResearchItem(
LibResearch.KEY_VISWEAVER,
new AspectList().add(Aspect.FIRE, 1).add(Aspect.WATER, 1).add(Aspect.EARTH, 1).add(Aspect.AIR, 1)
.add(Aspect.ORDER, 1).add(Aspect.ENTROPY, 1),
-4,
0,
2,
new ItemStack(this)).setParents(LibResearch.KEY_SPELL_CLOTH)
.setPages(new ResearchPage("0"), ResearchHelper.infusionPage(LibResearch.KEY_VISWEAVER));
}
@Override
public ThaumicTinkererRecipe getRecipeItem() {
return new ThaumicTinkererInfusionRecipe(
LibResearch.KEY_VISWEAVER,
new ItemStack(this),
15,
new AspectList().add(Aspect.MAGIC, 50).add(Aspect.ENERGY, 20).add(Aspect.ELDRITCH, 20)
.add(Aspect.VOID, 20).add(Aspect.MIND, 10),
new ItemStack(Items.bed),
new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 1),
new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 1),
new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 1),
new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 1),
new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 1),
new ItemStack(ConfigItems.itemResource, 1, 2),
new ItemStack(ConfigItems.itemResource, 1, 2),
new ItemStack(ThaumicTinkerer.registry.getFirstItemFromClass(ItemSpellCloth.class)));
}
}
@@ -130,17 +130,16 @@ public class BlockBedrockPortal extends BlockMod {
(EntityPlayerMP) entity,
ConfigHandler.bedrockDimensionID,
new TeleporterBedrock((WorldServer) par1World));
if (entity.worldObj.getBlock(par2, 250, par4) == Blocks.bedrock) {
entity.worldObj.setBlock(par2, 250, par4, Blocks.air);
if (entity.worldObj.isAirBlock(par2, 249, par4)) {
entity.worldObj.setBlock(par2, 249, par4, Blocks.stone);
}
if (entity.worldObj.getBlock(par2, 251, par4) == Blocks.bedrock) {
entity.worldObj.setBlock(par2, 251, par4, Blocks.air);
}
if (entity.worldObj.getBlock(par2, 252, par4) == Blocks.bedrock) {
entity.worldObj.setBlock(par2, 252, par4, Blocks.air);
}
if (entity.worldObj.getBlock(par2, 253, par4) == Blocks.bedrock) {
entity.worldObj.setBlock(par2, 253, par4, Blocks.air);
for (int i = 250; i < 254; i++) {
Block block = entity.worldObj.getBlock(par2, i, par4);
// something seems to be turning our bedrock to plain stone
// let's also check that
if (block == Blocks.stone || block == Blocks.bedrock) {
entity.worldObj.setBlockToAir(par2, i, par4);
}
}
if (entity.worldObj.getBlock(par2, 254, par4) == Blocks.bedrock) {
entity.worldObj.setBlock(par2, 254, par4, this);
@@ -37,7 +37,8 @@ import thaumcraft.common.lib.crafting.ThaumcraftCraftingManager;
import thaumic.tinkerer.common.lib.LibBlockNames;
@Optional.InterfaceList({ @Optional.Interface(iface = "li.cil.oc.api.network.SimpleComponent", modid = "OpenComputers"),
@Optional.Interface(iface = "dan200.computercraft.api.peripheral.IPeripheral", modid = "ComputerCraft") })
@Optional.Interface(iface = "dan200.computercraft.api.peripheral.IPeripheral", modid = "ComputerCraft"),
@Optional.Interface(iface = "appeng.api.movable.IMovableTile", modid = "appliedenergistics2") })
public class TileAspectAnalyzer extends TileEntity implements IInventory, SimpleComponent, IPeripheral, IMovableTile {
ItemStack[] inventorySlots = new ItemStack[1];
@@ -230,11 +231,13 @@ public class TileAspectAnalyzer extends TileEntity implements IInventory, Simple
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public boolean prepareToMove() {
return true;
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public void doneMoving() {}
@Override
@@ -18,7 +18,9 @@ import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
import appeng.api.movable.IMovableTile;
import cpw.mods.fml.common.Optional;
@Optional.Interface(iface = "appeng.api.movable.IMovableTile", modid = "appliedenergistics2")
public class TileCamo extends TileEntity implements IMovableTile {
private static final String TAG_CAMO = "camo";
@@ -73,10 +75,12 @@ public class TileCamo extends TileEntity implements IMovableTile {
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public boolean prepareToMove() {
return true;
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public void doneMoving() {}
}
@@ -30,6 +30,7 @@ import org.apache.commons.lang3.ArrayUtils;
import appeng.api.movable.IMovableTile;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cpw.mods.fml.relauncher.Side;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
@@ -41,6 +42,7 @@ import thaumic.tinkerer.common.enchantment.core.EnchantmentManager;
import thaumic.tinkerer.common.lib.LibBlockNames;
import thaumic.tinkerer.common.lib.LibFeatures;
@Optional.Interface(iface = "appeng.api.movable.IMovableTile", modid = "appliedenergistics2")
public class TileEnchanter extends TileEntity implements ISidedInventory, IMovableTile {
private static final String TAG_ENCHANTS = "enchantsIntArray";
@@ -494,10 +496,12 @@ public class TileEnchanter extends TileEntity implements ISidedInventory, IMovab
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public boolean prepareToMove() {
return true;
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public void doneMoving() {}
}
@@ -8,7 +8,7 @@ import net.minecraftforge.common.util.ForgeDirection;
import appeng.api.AEApi;
import appeng.api.IAppEngApi;
import appeng.api.movable.IMovableTile;
import cpw.mods.fml.common.Loader;
import thaumic.tinkerer.common.ThaumicTinkerer;
import thaumic.tinkerer.common.block.mobilizer.BlockMobilizer;
@@ -117,16 +117,13 @@ public class TileEntityMobilizer extends TileEntity {
if (!worldObj.isRemote) {
TileEntity passenger = worldObj.getTileEntity(xCoord, yCoord + 1, zCoord);
IAppEngApi api = AEApi.instance();
// Prevent the passenger from popping off. Not sent to clients.
worldObj.setBlock(targetX, yCoord, targetZ, Block.getBlockFromName("stone"), 0, 0);
// Move non-TE blocks
Block passengerId = worldObj.getBlock(xCoord, yCoord + 1, zCoord);
if (worldObj.isAirBlock(xCoord, yCoord + 1, zCoord)
|| passengerId.canPlaceBlockAt(worldObj, targetX, yCoord + 1, targetZ)) {
if (passenger == null) {
if (passengerId != Block.getBlockFromName("bedrock")
&& passengerId != Block.getBlockFromName("")) {
@@ -143,7 +140,8 @@ public class TileEntityMobilizer extends TileEntity {
}
}
// If AE is installed, use its handler
} else if (api != null) {
} else if (Loader.isModLoaded("appliedenergistics2")) {
IAppEngApi api = AEApi.instance();
if (api.registries().movable().askToMove(passenger)) {
worldObj.setBlock(
targetX,
@@ -159,34 +157,29 @@ public class TileEntityMobilizer extends TileEntity {
api.registries().movable().doneMoving(passenger);
passenger.validate();
}
// Handler IMovableTiles and vanilla TEs without AE
} else if (passenger instanceof IMovableTile
|| passenger.getClass().getName().startsWith("net.minecraft.tileentity")) {
boolean imovable = passenger instanceof IMovableTile;
if (imovable) ((IMovableTile) passenger).prepareToMove();
worldObj.setBlock(
targetX,
yCoord + 1,
targetZ,
worldObj.getBlock(xCoord, yCoord + 1, zCoord),
worldObj.getBlockMetadata(xCoord, yCoord + 1, zCoord),
3);
passenger.invalidate();
worldObj.setBlockToAir(xCoord, yCoord + 1, zCoord);
} else if (passenger.getClass().getName().startsWith("net.minecraft.tileentity")) {
worldObj.setBlock(
targetX,
yCoord + 1,
targetZ,
worldObj.getBlock(xCoord, yCoord + 1, zCoord),
worldObj.getBlockMetadata(xCoord, yCoord + 1, zCoord),
3);
passenger.invalidate();
worldObj.setBlockToAir(xCoord, yCoord + 1, zCoord);
// IMovableHandler default code
Chunk c = worldObj.getChunkFromBlockCoords(targetX, targetZ);
// IMovableHandler default code
Chunk c = worldObj.getChunkFromBlockCoords(targetX, targetZ);
c.func_150812_a(targetX & 0xF, yCoord + 1, targetZ & 0xF, passenger);
c.func_150812_a(targetX & 0xF, yCoord + 1, targetZ & 0xF, passenger);
if (c.isChunkLoaded) {
worldObj.addTileEntity(passenger);
worldObj.markBlockForUpdate(targetX, yCoord + 1, targetZ);
}
if (imovable) ((IMovableTile) passenger).doneMoving();
passenger.validate();
}
if (c.isChunkLoaded) {
worldObj.addTileEntity(passenger);
worldObj.markBlockForUpdate(targetX, yCoord + 1, targetZ);
}
passenger.validate();
}
}
// Move self
this.invalidate();
@@ -5,8 +5,10 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import appeng.api.movable.IMovableTile;
import cpw.mods.fml.common.Optional;
import thaumic.tinkerer.common.ThaumicTinkerer;
@Optional.Interface(iface = "appeng.api.movable.IMovableTile", modid = "appliedenergistics2")
public class TileEntityRelay extends TileEntity implements IMovableTile {
public boolean hasPartner;
@@ -137,10 +139,12 @@ public class TileEntityRelay extends TileEntity implements IMovableTile {
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public boolean prepareToMove() {
return true;
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public void doneMoving() {}
}
@@ -26,15 +26,18 @@ import net.minecraftforge.common.util.Constants;
import net.minecraftforge.common.util.ForgeDirection;
import appeng.api.movable.IMovableTile;
import cpw.mods.fml.common.Optional;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.aspects.IAspectContainer;
import thaumcraft.api.aspects.IEssentiaContainerItem;
import thaumcraft.common.blocks.ItemJarFilled;
import thaumcraft.common.config.ConfigBlocks;
import thaumcraft.common.tiles.TileJarFillable;
import thaumcraft.common.tiles.TileJarFillableVoid;
import thaumic.tinkerer.common.lib.LibBlockNames;
@Optional.Interface(iface = "appeng.api.movable.IMovableTile", modid = "appliedenergistics2")
public class TileFunnel extends TileEntity implements ISidedInventory, IAspectContainer, IMovableTile {
ItemStack[] inventorySlots = new ItemStack[1];
@@ -51,7 +54,7 @@ public class TileFunnel extends TileEntity implements ISidedInventory, IAspectCo
Aspect aspect = aspectList.getAspects()[0];
TileEntity tile = worldObj.getTileEntity(xCoord, yCoord - 1, zCoord);
if (tile != null && tile instanceof TileEntityHopper) {
if (tile instanceof TileEntityHopper) {
TileEntity tile1 = getHopperFacing(
tile.xCoord,
tile.yCoord,
@@ -69,6 +72,18 @@ public class TileFunnel extends TileEntity implements ISidedInventory, IAspectCo
jar1.addToContainer(aspect, 1);
item.setAspects(jar, aspectList.remove(aspect, 1));
}
// "AspectFilter" is used for the jar label
if (aspectList.getAmount(aspectList.getAspects()[0]) == 0
&& !jar.stackTagCompound.hasKey("AspectFilter")) {
String itemName = jar.getUnlocalizedName();
if (itemName.equals("item.BlockJarFilledItem")) {
setInventorySlotContents(0, new ItemStack(ConfigBlocks.blockJar));
} else if (itemName.equals("item.BlockJarFilledItem.void")) {
setInventorySlotContents(0, new ItemStack(ConfigBlocks.blockJar));
getStackInSlot(0).setItemDamage(3);
}
this.markDirty();
}
}
}
}
@@ -277,10 +292,12 @@ public class TileFunnel extends TileEntity implements ISidedInventory, IAspectCo
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public boolean prepareToMove() {
return true;
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public void doneMoving() {}
}
@@ -34,7 +34,8 @@ import thaumic.tinkerer.common.ThaumicTinkerer;
import thaumic.tinkerer.common.core.helper.MiscHelper;
@Optional.InterfaceList({ @Optional.Interface(iface = "li.cil.oc.api.network.SimpleComponent", modid = "OpenComputers"),
@Optional.Interface(iface = "dan200.computercraft.api.peripheral.IPeripheral", modid = "ComputerCraft") })
@Optional.Interface(iface = "dan200.computercraft.api.peripheral.IPeripheral", modid = "ComputerCraft"),
@Optional.Interface(iface = "appeng.api.movable.IMovableTile", modid = "appliedenergistics2") })
public class TileMagnet extends TileEntity implements IPeripheral, IMovableTile, SimpleComponent {
@Override
@@ -146,11 +147,13 @@ public class TileMagnet extends TileEntity implements IPeripheral, IMovableTile,
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public boolean prepareToMove() {
return true;
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public void doneMoving() {}
@Callback(doc = "function():boolean -- Returns Whether magnet is pushing or pulling")
@@ -34,6 +34,7 @@ import li.cil.oc.api.machine.Context;
import thaumic.tinkerer.common.item.ItemSoulMould;
import thaumic.tinkerer.common.lib.LibBlockNames;
@Optional.Interface(iface = "appeng.api.movable.IMovableTile", modid = "appliedenergistics2")
public class TileMobMagnet extends TileMagnet implements IInventory, IMovableTile {
private static final String TAG_ADULT = "adultCheck";
@@ -230,10 +231,12 @@ public class TileMobMagnet extends TileMagnet implements IInventory, IMovableTil
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public boolean prepareToMove() {
return true;
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public void doneMoving() {}
}
@@ -27,6 +27,7 @@ import net.minecraftforge.common.util.ForgeDirection;
import appeng.api.movable.IMovableTile;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Optional;
import thaumcraft.api.ThaumcraftApiHelper;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
@@ -38,7 +39,7 @@ import thaumic.tinkerer.common.core.handler.ConfigHandler;
import thaumic.tinkerer.common.lib.LibBlockNames;
/* import thaumic.tinkerer.common.compat.TinkersConstructCompat; */
@Optional.Interface(iface = "appeng.api.movable.IMovableTile", modid = "appliedenergistics2")
public class TileRepairer extends TileEntity
implements ISidedInventory, IAspectContainer, IEssentiaTransport, IMovableTile {
@@ -376,10 +377,12 @@ public class TileRepairer extends TileEntity
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public boolean prepareToMove() {
return true;
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public void doneMoving() {}
}
@@ -1,276 +0,0 @@
package thaumic.tinkerer.common.block.tile;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.Constants;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.visnet.VisNetHandler;
import thaumic.tinkerer.api.VisweaverRecipe;
import thaumic.tinkerer.api.VisweaverRecipeMap;
import thaumic.tinkerer.common.lib.LibBlockNames;
public class TileVisweaver extends TileEntity implements IInventory {
private static final String TAG_INTERNAL_VIS = "internalVis";
private static final String TAG_REQUIRED_VIS = "requiredVis";
private static final String TAG_WORKING = "working";
private static final String TAG_ASPECT = "cvType";
private static final String TAG_INPUT = "currentInput";
private static final String TAG_OUTPUT = "currentOutput";
private int tickCounter;
private int internalVis = 0;
private boolean working = false;
private ItemStack currentOutput;
private ItemStack currentInput;
private Aspect cvType;
private int requiredVis;
ItemStack[] inventorySlots = new ItemStack[2];
@Override
public void updateEntity() {
tickCounter++;
if (worldObj.isRemote) return;
if (working) {
ItemStack currentStack = getStackInSlot(0);
if (currentStack == null || currentInput == null || !currentStack.isItemEqual(currentInput)) {
flushRecipe();
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
}
if (tickCounter % 20 != 0) return;
if (!working) {
recipeCheck();
} else {
internalVis += VisNetHandler.drainVis(this.worldObj, this.xCoord, this.yCoord, this.zCoord, cvType, 500);
progressRecipe();
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
}
private void progressRecipe() {
if (internalVis >= requiredVis) {
internalVis -= requiredVis;
finishRecipe();
}
}
private void flushRecipe() {
internalVis = 0;
requiredVis = 0;
currentOutput = null;
currentInput = null;
cvType = null;
working = false;
}
private void recipeCheck() {
VisweaverRecipe recipe = VisweaverRecipeMap.lookup(getStackInSlot(0));
if (recipe != null) {
ItemStack output = recipe.getOutput();
if (canAddToSlot(output, 1) <= 0) return;
cvType = recipe.getCentivisType();
requiredVis = recipe.getCentivisCost();
currentOutput = output;
currentInput = recipe.getInput();
working = true;
}
}
private void finishRecipe() {
decrStackSize(0, 1);
addToSlot(currentOutput, 1);
ItemStack input = getStackInSlot(0);
if (input != null && currentInput.isItemEqual(input) && canAddToSlot(currentOutput, 1) > 0) {
progressRecipe();
} else {
flushRecipe();
recipeCheck();
}
}
@Override
public int getSizeInventory() {
return inventorySlots.length;
}
@Override
public ItemStack getStackInSlot(int slotIn) {
return inventorySlots[slotIn];
}
@Override
public ItemStack decrStackSize(int i, int j) {
if (inventorySlots[i] != null) {
ItemStack stackAt;
if (inventorySlots[i].stackSize <= j) {
stackAt = inventorySlots[i];
inventorySlots[i] = null;
} else {
stackAt = inventorySlots[i].splitStack(j);
if (inventorySlots[i].stackSize == 0) inventorySlots[i] = null;
}
return stackAt;
}
return null;
}
/**
* Returns the amount of items from the input stack that can be stacked into this slot
*/
public int canAddToSlot(ItemStack input, int slot) {
ItemStack currentStack = getStackInSlot(slot);
if (currentStack == null) return Math.min(64, input.stackSize);
if (!currentStack.isItemEqual(input)) return 0;
return Math.min(input.stackSize, 64 - currentStack.stackSize);
}
public void addToSlot(ItemStack stack, int slot) {
int movable = canAddToSlot(stack, slot);
if (movable == 0) return;
ItemStack currentStack = getStackInSlot(slot);
ItemStack newStack = stack.copy();
if (currentStack == null) {
newStack.stackSize = movable;
setInventorySlotContents(slot, newStack);
} else {
currentStack.stackSize += movable;
}
}
@Override
public ItemStack getStackInSlotOnClosing(int i) {
return getStackInSlot(i);
}
@Override
public void setInventorySlotContents(int i, ItemStack stack) {
inventorySlots[i] = stack;
}
@Override
public String getInventoryName() {
return LibBlockNames.VISWEAVER;
}
@Override
public boolean hasCustomInventoryName() {
return false;
}
@Override
public int getInventoryStackLimit() {
return 64;
}
@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer) {
return worldObj.getTileEntity(xCoord, yCoord, zCoord) == this
&& entityplayer.getDistanceSq(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D) <= 64;
}
@Override
public void openInventory() {}
@Override
public void closeInventory() {}
@Override
public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) {
super.onDataPacket(net, pkt);
readFromNBT(pkt.func_148857_g());
}
@Override
public void readFromNBT(NBTTagCompound par1NBTTagCompound) {
super.readFromNBT(par1NBTTagCompound);
working = par1NBTTagCompound.getBoolean(TAG_WORKING);
internalVis = par1NBTTagCompound.getInteger(TAG_INTERNAL_VIS);
requiredVis = par1NBTTagCompound.getInteger(TAG_REQUIRED_VIS);
cvType = Aspect.getAspect(par1NBTTagCompound.getString(TAG_ASPECT));
currentInput = ItemStack.loadItemStackFromNBT(par1NBTTagCompound.getCompoundTag(TAG_INPUT));
currentOutput = ItemStack.loadItemStackFromNBT(par1NBTTagCompound.getCompoundTag(TAG_OUTPUT));
NBTTagList var2 = par1NBTTagCompound.getTagList("Items", Constants.NBT.TAG_COMPOUND);
inventorySlots = new ItemStack[getSizeInventory()];
for (int var3 = 0; var3 < var2.tagCount(); ++var3) {
NBTTagCompound var4 = var2.getCompoundTagAt(var3);
byte var5 = var4.getByte("Slot");
if (var5 >= 0 && var5 < inventorySlots.length) inventorySlots[var5] = ItemStack.loadItemStackFromNBT(var4);
}
}
@Override
public void writeToNBT(NBTTagCompound par1NBTTagCompound) {
super.writeToNBT(par1NBTTagCompound);
NBTTagCompound input = new NBTTagCompound();
NBTTagCompound output = new NBTTagCompound();
par1NBTTagCompound.setBoolean(TAG_WORKING, working);
par1NBTTagCompound.setInteger(TAG_INTERNAL_VIS, internalVis);
par1NBTTagCompound.setInteger(TAG_REQUIRED_VIS, requiredVis);
if (working) {
par1NBTTagCompound.setString(TAG_ASPECT, cvType.getTag());
par1NBTTagCompound.setTag(TAG_INPUT, currentInput.writeToNBT(input));
par1NBTTagCompound.setTag(TAG_OUTPUT, currentOutput.writeToNBT(output));
}
NBTTagList var2 = new NBTTagList();
for (int var3 = 0; var3 < inventorySlots.length; ++var3) {
if (inventorySlots[var3] != null) {
NBTTagCompound var4 = new NBTTagCompound();
var4.setByte("Slot", (byte) var3);
inventorySlots[var3].writeToNBT(var4);
var2.appendTag(var4);
}
}
par1NBTTagCompound.setTag("Items", var2);
}
@Override
public S35PacketUpdateTileEntity getDescriptionPacket() {
NBTTagCompound nbttagcompound = new NBTTagCompound();
writeToNBT(nbttagcompound);
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, -999, nbttagcompound);
}
@Override
public boolean isItemValidForSlot(int index, ItemStack stack) {
return index == 0;
}
public boolean isWorking() {
return working;
}
public int getTickCounter() {
return tickCounter;
}
public Aspect getCvType() {
return cvType;
}
public int getInternalVis() {
return internalVis;
}
public int getRequiredVis() {
return requiredVis;
}
}
@@ -1,74 +0,0 @@
package thaumic.tinkerer.common.block.tile.container;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import thaumic.tinkerer.common.block.tile.TileVisweaver;
public class ContainerVisweaver extends ContainerPlayerInv {
TileVisweaver visweaver;
public ContainerVisweaver(TileVisweaver visweaver, InventoryPlayer playerInv) {
super(playerInv);
this.visweaver = visweaver;
addSlotToContainer(new Slot(visweaver, 0, 20, 30));
addSlotToContainer(new SlotVisweaverOutput(visweaver, 1, 140, 30));
initPlayerInv();
}
@Override
public ItemStack transferStackInSlot(EntityPlayer player, int index) {
ItemStack itemstack = null;
Slot slot = (Slot) this.inventorySlots.get(index);
if (slot != null && slot.getHasStack()) {
ItemStack stackInSlot = slot.getStack();
itemstack = stackInSlot.copy();
if (index == 0 || index == 1) {
if (!this.mergeItemStack(stackInSlot, 2, 38, true)) {
return null;
}
slot.onSlotChange(stackInSlot, itemstack);
} else {
if (!this.mergeItemStack(stackInSlot, 0, 1, false)) {
return null;
}
}
if (stackInSlot.stackSize == 0) {
slot.putStack(null);
} else {
slot.onSlotChanged();
}
if (stackInSlot.stackSize == itemstack.stackSize) {
return null;
}
slot.onPickupFromSlot(player, stackInSlot);
}
return itemstack;
}
@Override
public boolean canInteractWith(EntityPlayer player) {
return visweaver.isUseableByPlayer(player);
}
public static class SlotVisweaverOutput extends Slot {
public SlotVisweaverOutput(IInventory p_i1824_1_, int p_i1824_2_, int p_i1824_3_, int p_i1824_4_) {
super(p_i1824_1_, p_i1824_2_, p_i1824_3_, p_i1824_4_);
}
@Override
public boolean isItemValid(ItemStack stack) {
return false;
}
}
}
@@ -45,6 +45,17 @@ public class ContainerIchorPouch extends ContainerPlayerInv {
} catch (Exception ignored) {}
}
@Override
public void detectAndSendChanges() {
if (!player.worldObj.isRemote) {
if (player.getCurrentEquippedItem() != pouch) {
player.closeScreen();
return;
}
}
super.detectAndSendChanges();
}
@Override
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int slot) {
if (slot == blockSlot) return null;
@@ -55,7 +55,8 @@ import thaumic.tinkerer.common.block.BlockAnimationTablet;
import thaumic.tinkerer.common.lib.LibBlockNames;
@Optional.InterfaceList({ @Optional.Interface(iface = "li.cil.oc.api.network.SimpleComponent", modid = "OpenComputers"),
@Optional.Interface(iface = "dan200.computercraft.api.peripheral.IPeripheral", modid = "ComputerCraft") })
@Optional.Interface(iface = "dan200.computercraft.api.peripheral.IPeripheral", modid = "ComputerCraft"),
@Optional.Interface(iface = "appeng.api.movable.IMovableTile", modid = "appliedenergistics2") })
public class TileAnimationTablet extends TileEntity implements IInventory, IMovableTile, IPeripheral, SimpleComponent {
private static final String TAG_LEFT_CLICK = "leftClick";
@@ -633,12 +634,14 @@ public class TileAnimationTablet extends TileEntity implements IInventory, IMova
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public boolean prepareToMove() {
stopBreaking();
return true;
}
@Override
@Optional.Method(modid = "appliedenergistics2")
public void doneMoving() {}
@Override
@@ -257,35 +257,35 @@ public class TileTransvectorInterface extends TileTransvector
}
@Override
@Optional.Method(modid = "CoFHLib")
@Optional.Method(modid = "CoFHCore")
public int receiveEnergy(ForgeDirection from, int maxReceive, boolean simulate) {
TileEntity tile = getTile();
return tile instanceof IEnergyHandler ? ((IEnergyHandler) tile).receiveEnergy(from, maxReceive, simulate) : 0;
}
@Override
@Optional.Method(modid = "CoFHLib")
@Optional.Method(modid = "CoFHCore")
public int extractEnergy(ForgeDirection from, int maxExtract, boolean simulate) {
TileEntity tile = getTile();
return tile instanceof IEnergyHandler ? ((IEnergyHandler) tile).extractEnergy(from, maxExtract, simulate) : 0;
}
@Override
@Optional.Method(modid = "CoFHLib")
@Optional.Method(modid = "CoFHCore")
public int getEnergyStored(ForgeDirection from) {
TileEntity tile = getTile();
return tile instanceof IEnergyHandler ? ((IEnergyHandler) tile).getEnergyStored(from) : 0;
}
@Override
@Optional.Method(modid = "CoFHLib")
@Optional.Method(modid = "CoFHCore")
public int getMaxEnergyStored(ForgeDirection from) {
TileEntity tile = getTile();
return tile instanceof IEnergyHandler ? ((IEnergyHandler) tile).getMaxEnergyStored(from) : 0;
}
@Override
@Optional.Method(modid = "CoFHLib")
@Optional.Method(modid = "CoFHCore")
public boolean canConnectEnergy(ForgeDirection from) {
TileEntity tile = getTile();
return tile instanceof IEnergyHandler ? ((IEnergyHandler) tile).canConnectEnergy(from) : false;
@@ -208,7 +208,13 @@ public class AspectCropLootManager {
addAspectLoot(Aspect.ENERGY, new ItemStack(ConfigItems.itemResource, 12));
addAspectLoot(Aspect.MAGIC, "materialAspectShard");
addAspectLoot(Aspect.MAGIC, new ItemStack(ConfigItems.itemShard, 1, 0));
addAspectLoot(Aspect.MAGIC, new ItemStack(ConfigItems.itemShard, 1, 1));
addAspectLoot(Aspect.MAGIC, new ItemStack(ConfigItems.itemShard, 1, 2));
addAspectLoot(Aspect.MAGIC, new ItemStack(ConfigItems.itemShard, 1, 3));
addAspectLoot(Aspect.MAGIC, new ItemStack(ConfigItems.itemShard, 1, 4));
addAspectLoot(Aspect.MAGIC, new ItemStack(ConfigItems.itemShard, 1, 5));
addAspectLoot(Aspect.MAGIC, new ItemStack(ConfigItems.itemShard, 1, 6));
addAspectLoot(Aspect.HEAL, new ItemStack(Items.golden_apple));
@@ -1,26 +0,0 @@
package thaumic.tinkerer.common.core.helper;
import java.util.Objects;
import javax.annotation.Nullable;
import net.minecraft.item.ItemStack;
import it.unimi.dsi.fastutil.Hash;
/*
* Simple hashing strategy that can properly compare items
*/
public class ItemHashStrategy implements Hash.Strategy<ItemStack> {
@Override
public int hashCode(@Nullable ItemStack key) {
return key == null ? 0 : Objects.hash(key.getItem(), key.getItemDamage());
}
@Override
public boolean equals(@Nullable ItemStack key, @Nullable ItemStack value) {
if (key == null || value == null) return false;
return key.isItemEqual(value);
}
}
@@ -43,6 +43,7 @@ import thaumic.tinkerer.common.research.IRegisterableResearch;
import thaumic.tinkerer.common.research.ResearchHelper;
import thaumic.tinkerer.common.research.TTResearchItem;
import vazkii.botania.api.internal.IManaBurst;
import vazkii.botania.common.entity.EntityMagicMissile;
public class ItemFocusDeflect extends ItemModFocus {
@@ -87,6 +88,15 @@ public class ItemFocusDeflect extends ItemModFocus {
e.posX += motionVec.x;
e.posY += motionVec.y;
e.posZ += motionVec.z;
checkBotaniaMagicMissile(e);
}
}
private static void checkBotaniaMagicMissile(Entity e) {
if (!Loader.isModLoaded("Botania")) return;
if (e instanceof EntityMagicMissile) {
((EntityMagicMissile) e).setTarget(null);
}
}
@@ -22,14 +22,18 @@ import net.minecraft.world.World;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent;
import cpw.mods.fml.common.Optional;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import gregtech.api.hazards.Hazard;
import gregtech.api.hazards.IHazardProtector;
import thaumcraft.api.aspects.Aspect;
import thaumic.tinkerer.client.core.handler.kami.ToolModeHUDHandler;
import thaumic.tinkerer.client.lib.LibResources;
import thaumic.tinkerer.common.registry.ThaumicTinkererRecipe;
import thaumic.tinkerer.common.research.IRegisterableResearch;
public abstract class ItemIchorclothArmorAdv extends ItemIchorclothArmor {
@Optional.InterfaceList({ @Optional.Interface(iface = "gregtech.api.hazards.IHazardProtector", modid = "gregtech") })
public abstract class ItemIchorclothArmorAdv extends ItemIchorclothArmor implements IHazardProtector {
public ItemIchorclothArmorAdv(int par2) {
super(par2);
@@ -108,4 +112,11 @@ public abstract class ItemIchorclothArmorAdv extends ItemIchorclothArmor {
public ThaumicTinkererRecipe getRecipeItem() {
return null;
}
/// GT5 Hazmat protection
@Optional.Method(modid = "gregtech")
@Override
public boolean protectsAgainst(ItemStack itemStack, Hazard hazard) {
return true;
}
}
@@ -37,5 +37,4 @@ public final class LibBlockIDs {
public static int idSpawner = 2633;
public static int idPortal = 2816;
public static int idGolemConnector = 2817;
public static int idVisweaver = 2818;
}
@@ -68,6 +68,4 @@ public final class LibBlockNames {
public static final String INFUSED_GRAIN_BLOCK = INFUSED_GRAIN_BASE + "Block";
public static final String FORCEFIELD = "forcefield";
public static final String VISWEAVER = "visweaver";
}
@@ -22,5 +22,4 @@ public final class LibGuiIDs {
public static final int GUI_ID_ICHOR_POUCH = 50;
public static final int GUI_ID_WARP_GATE = 51;
public static final int GUI_ID_WARP_GATE_DESTINATIONS = 52;
public static final int GUI_ID_VISWEAVER = 53;
}
@@ -41,7 +41,6 @@ public final class LibResearch {
public static final String KEY_ENCHANT_DESINTEGRATE = "TTENCH_DESINTEGRATE";
public static final String KEY_ENCHANT_QUICK_DRAW = "TTENCH_QUICK_DRAW";
public static final String KEY_ENCHANT_VAMPIRISM = "TTENCH_VAMPIRISM";
public static final String KEY_VISWEAVER = "VISWEAVER";
public static final String KEY_ENCHANT_DISPERSED_STRIKE = "TTENCH_DISPERSED";
public static final String KEY_ENCHANT_FINAL_STRIKE = "TTENCH_FINAL";
@@ -16,7 +16,6 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.IGuiHandler;
import thaumic.tinkerer.client.gui.GUIVisweaver;
import thaumic.tinkerer.client.gui.GuiAnimationTablet;
import thaumic.tinkerer.client.gui.GuiAspectAnalyzer;
import thaumic.tinkerer.client.gui.GuiEnchanting;
@@ -29,13 +28,11 @@ import thaumic.tinkerer.common.block.tile.TileAspectAnalyzer;
import thaumic.tinkerer.common.block.tile.TileEnchanter;
import thaumic.tinkerer.common.block.tile.TileMobMagnet;
import thaumic.tinkerer.common.block.tile.TileRPlacer;
import thaumic.tinkerer.common.block.tile.TileVisweaver;
import thaumic.tinkerer.common.block.tile.container.ContainerAnimationTablet;
import thaumic.tinkerer.common.block.tile.container.ContainerAspectAnalyzer;
import thaumic.tinkerer.common.block.tile.container.ContainerEnchanter;
import thaumic.tinkerer.common.block.tile.container.ContainerMobMagnet;
import thaumic.tinkerer.common.block.tile.container.ContainerRemotePlacer;
import thaumic.tinkerer.common.block.tile.container.ContainerVisweaver;
import thaumic.tinkerer.common.block.tile.container.kami.ContainerIchorPouch;
import thaumic.tinkerer.common.block.tile.container.kami.ContainerWarpGate;
import thaumic.tinkerer.common.block.tile.kami.TileWarpGate;
@@ -61,9 +58,6 @@ public class GuiHandler implements IGuiHandler {
case LibGuiIDs.GUI_ID_ASPECT_ANALYZER:
return new ContainerAspectAnalyzer((TileAspectAnalyzer) tile, player.inventory);
case LibGuiIDs.GUI_ID_VISWEAVER:
return new ContainerVisweaver((TileVisweaver) tile, player.inventory);
case LibGuiIDs.GUI_ID_ICHOR_POUCH:
if (!isDimensionAllowed(player)) return null;
return new ContainerIchorPouch(player);
@@ -92,9 +86,6 @@ public class GuiHandler implements IGuiHandler {
case LibGuiIDs.GUI_ID_ASPECT_ANALYZER:
return new GuiAspectAnalyzer((TileAspectAnalyzer) tile, player.inventory);
case LibGuiIDs.GUI_ID_VISWEAVER:
return new GUIVisweaver((TileVisweaver) tile, player.inventory);
case LibGuiIDs.GUI_ID_ICHOR_POUCH:
if (!isDimensionAllowed(player)) return null;
return new GuiIchorPouch(new ContainerIchorPouch(player));
@@ -101,6 +101,7 @@ item.mobAspect.name=Soul Aspect
item.mobAspect.condensed.name=Condensed Soul Aspect
item.mobAspect.infused.name=Infused Soul Aspect
item.infusedSeeds.name=Infused Seeds
item.infusedPotion.name=Potion
item.infusedPotion.Aer.name=Potion of Aer
item.infusedPotion.Ignis.name=Potion of Ignis
item.infusedPotion.Terra.name=Potion of Terra
@@ -152,7 +153,12 @@ tile.travelSlab.name=Paving Slab of Travel
tile.travelSlabFull.name=Paving Slab of Travel
tile.travelStairs.name=Paving Stair of Travel
tile.wardSlab.name=Paving Slab of Warding
tile.wardSlabFull.name=Paving Slab of Warding
tile.infusedFarmland.name=Infused Farmland
tile.gaseousLight.name=Gaseous Light
tile.gaseousShadow.name=Gaseous Shadow
tile.infusedGrainBlock.name=Imbued Grain
tile.nitorGas.name=Nitor Gas
# Fire
tile.fireWater.name=Aqua Imbued Fire
@@ -180,7 +186,6 @@ tile.Levitational Locomotive.name=Levitational Locomotive
tile.Levitational Locomotive Relay.name=Levitational Locomotive Relay
tile.golemConnector.name=Golem Connector
tile.remotePlacer.name=Remote Placer
tile.visweaver.name=Visweaver
# KAMI BLOCK NAMES
tile.warpGate.name=Celestial Gateway
@@ -624,11 +629,6 @@ ttresearch.page.INFUSED_POTIONS.3=There are two ways to give crops primal tenden
ttresearch.page.INFUSED_POTIONS.4=Crops will also drain tendencies from nearby crops. A crop will drain points from an adjacent crop with an equal or greater number of points.
ttresearch.page.INFUSED_POTIONS.5=Some plants will create special grain, which can be made into potions. <BR> Earth infused potions summons barriers between mobs that attack you. <BR> Fire infused potions trap your enemies in a sphere of fire. <BR> Air infused potions send your enemies up in the air. <BR> Water infused potions chill surrounding lava.
# -- VISWEAVER
ttresearch.name.VISWEAVER=Visweaver
ttresearch.lore.VISWEAVER=Transmutation through vis
ttresearch.page.VISWEAVER.0=Some objects in this world can be altered to different states purely by nudging the balance of primal essentia, it seems. You've designed a device to do just that by infusing large amounts of centivis into items.
# -- WAILA
ttwaila.nothing=Nothing
ttwaila.currentTool=Current Tool: %s
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB