diff --git a/MODSRC/dan200/computer/api/ComputerCraftAPI.java b/MODSRC/dan200/computer/api/ComputerCraftAPI.java
index 9278dd0f..f0403079 100644
--- a/MODSRC/dan200/computer/api/ComputerCraftAPI.java
+++ b/MODSRC/dan200/computer/api/ComputerCraftAPI.java
@@ -6,6 +6,7 @@
package dan200.computer.api;
import java.lang.reflect.Method;
+
import net.minecraft.world.World;
/**
@@ -13,8 +14,8 @@ import net.minecraft.world.World;
* Members in this class must be called after mod_ComputerCraft has been initialised,
* but may be called before it is fully loaded.
*/
-public class ComputerCraftAPI
-{
+public class ComputerCraftAPI
+{
/**
* Creates a numbered directory in a subfolder of the save directory for a given world, and returns that number.
* Use in conjuction with createSaveDirMount() to create a unique place for your peripherals or media items to store files.
@@ -37,7 +38,7 @@ public class ComputerCraftAPI
}
return -1;
}
-
+
/**
* Creates a file system mount that maps to a subfolder of the save directory for a given world, and returns it.
* Use in conjuction with IComputerAccess.mount() or IComputerAccess.mountWritable() to mount a folder from the
@@ -67,7 +68,7 @@ public class ComputerCraftAPI
}
return null;
}
-
+
/**
* Creates a file system mount to a resource folder, and returns it.
* Use in conjuction with IComputerAccess.mount() or IComputerAccess.mountWritable() to mount a resource folder onto a computers file system.
@@ -94,7 +95,7 @@ public class ComputerCraftAPI
}
return null;
}
-
+
/**
* Registers a peripheral handler for a TileEntity that you do not have access to. Only
* use this if you want to expose IPeripheral on a TileEntity from another mod. For your own
@@ -118,7 +119,7 @@ public class ComputerCraftAPI
// The functions below here are private, and are used to interface with the non-API ComputerCraft classes.
// Reflection is used here so you can develop your mod in MCP without decompiling ComputerCraft and including
// it in your solution.
-
+
private static void findCC()
{
if( !ccSearched ) {
@@ -133,8 +134,8 @@ public class ComputerCraftAPI
computerCraft_createResourceMount = findCCMethod( "createResourceMount", new Class[] {
Class.class, String.class, String.class
} );
- computerCraft_registerExternalPeripheral = findCCMethod( "registerExternalPeripheral", new Class[] {
- Class.class, IPeripheralHandler.class
+ computerCraft_registerExternalPeripheral = findCCMethod( "registerExternalPeripheral", new Class[] {
+ Class.class, IPeripheralHandler.class
} );
} catch( Exception e ) {
net.minecraft.server.MinecraftServer.getServer().logInfo( "ComputerCraftAPI: ComputerCraft not found." );
@@ -152,9 +153,9 @@ public class ComputerCraftAPI
net.minecraft.server.MinecraftServer.getServer().logInfo( "ComputerCraftAPI: ComputerCraft method " + name + " not found." );
return null;
}
- }
-
- private static boolean ccSearched = false;
+ }
+
+ private static boolean ccSearched = false;
private static Class computerCraft = null;
private static Method computerCraft_createUniqueNumberedSaveDir = null;
private static Method computerCraft_createSaveDirMount = null;
diff --git a/MODSRC/dan200/computer/api/IComputerAccess.java b/MODSRC/dan200/computer/api/IComputerAccess.java
index 72784a0a..2eac5d0b 100644
--- a/MODSRC/dan200/computer/api/IComputerAccess.java
+++ b/MODSRC/dan200/computer/api/IComputerAccess.java
@@ -6,6 +6,8 @@
package dan200.computer.api;
+import net.minecraft.world.World;
+
/**
* The interface passed to peripherals by computers or turtles, providing methods
* that they can call. This should not be implemented by your classes. Do not interact
@@ -25,7 +27,7 @@ public interface IComputerAccess
* @see IMount
*/
public String mount( String desiredLocation, IMount mount );
-
+
/**
* Mount a mount onto the computers' file system in a writable mode.
* @param desiredLoction The location on the computer's file system where you would like the mount to be mounted.
@@ -38,7 +40,7 @@ public interface IComputerAccess
* @see IMount
*/
public String mountWritable( String desiredLocation, IWritableMount mount );
-
+
/**
* Unmounts a directory previously mounted onto the computers file system by mount() or mountWritable().
* When a directory is unmounted, it will disappear from the computers file system, and the user will no longer be able to
@@ -51,14 +53,14 @@ public interface IComputerAccess
* @see #mountWritable(String, IWritableMount)
*/
public void unmount( String location );
-
+
/**
* Returns the numerical ID of this computer.
* This is the same number obtained by calling os.getComputerID() or running the "id" program from lua,
* and is guarunteed unique. This number will be positive.
* @return The identifier.
*/
- public int getID();
+ public int getID();
/**
* Causes an event to be raised on this computer, which the computer can respond to by calling
@@ -66,7 +68,7 @@ public interface IComputerAccess
* this peripheral.
* @param event A string identifying the type of event that has occurred, this will be
* returned as the first value from os.pullEvent(). It is recommended that you
- * you choose a name that is unique, and recognisable as originating from your
+ * you choose a name that is unique, and recognisable as originating from your
* peripheral. eg: If your peripheral type is "button", a suitable event would be
* "button_pressed".
* @param arguments In addition to a name, you may pass an array of extra arguments to the event, that will
diff --git a/MODSRC/dan200/computer/api/IHostedPeripheral.java b/MODSRC/dan200/computer/api/IHostedPeripheral.java
index 68cf3fd7..89902a65 100644
--- a/MODSRC/dan200/computer/api/IHostedPeripheral.java
+++ b/MODSRC/dan200/computer/api/IHostedPeripheral.java
@@ -5,7 +5,6 @@
*/
package dan200.computer.api;
-import dan200.computer.api.IPeripheral;
/**
* A subclass of IPeripheral specifically for peripherals
@@ -19,23 +18,23 @@ public interface IHostedPeripheral extends IPeripheral
{
/**
* A method called on each hosted peripheral once per tick, on the main thread
- * over the lifetime of the turtle or block. May be used to update the state
+ * over the lifetime of the turtle or block. May be used to update the state
* of the peripheral, and may interact with IComputerAccess or ITurtleAccess
* however it likes at this time.
*/
public void update();
-
+
/**
* A method called whenever data is read from the Turtle's NBTTag,
- * over the lifetime of the turtle. You should only use this for
+ * over the lifetime of the turtle. You should only use this for
* reading data you want to stay with the peripheral.
* @param nbttagcompound The peripheral's NBTTag
*/
public void readFromNBT( net.minecraft.nbt.NBTTagCompound nbttagcompound );
-
+
/**
* A method called whenever data is written to the Turtle's NBTTag,
- * over the lifetime of the turtle. You should only use this for
+ * over the lifetime of the turtle. You should only use this for
* writing data you want to stay with the peripheral.
* @param nbttagcompound The peripheral's NBTTag.
* @param ID The turtle's ID.
diff --git a/MODSRC/dan200/computer/api/ILuaContext.java b/MODSRC/dan200/computer/api/ILuaContext.java
index eb319390..2bda0260 100644
--- a/MODSRC/dan200/computer/api/ILuaContext.java
+++ b/MODSRC/dan200/computer/api/ILuaContext.java
@@ -23,7 +23,7 @@ public interface ILuaContext
* @throws InterruptedException If the user shuts down or reboots the computer while pullEvent() is waiting for an event, InterruptedException will be thrown. This exception must not be caught or intercepted, or the computer will leak memory and end up in a broken state.
*/
public Object[] pullEvent( String filter ) throws Exception, InterruptedException;
-
+
/**
* The same as pullEvent(), except "terminated" events are ignored. Only use this if you want to prevent program termination, which is not recommended. This method is exactly equivalent to os.pullEventRaw() in lua.
* @param filter A specific event to wait for, or null to wait for any event
@@ -33,7 +33,7 @@ public interface ILuaContext
*/
public Object[] pullEventRaw( String filter ) throws InterruptedException;
-
+
/**
* Yield the current coroutine with some arguments until it is resumed. This method is exactly equivalent to coroutine.yield() in lua. Use pullEvent() if you wish to wait for events.
* @param arguments An object array containing the arguments to pass to coroutine.yield()
diff --git a/MODSRC/dan200/computer/api/IMount.java b/MODSRC/dan200/computer/api/IMount.java
index 69ff3231..74f9bdeb 100644
--- a/MODSRC/dan200/computer/api/IMount.java
+++ b/MODSRC/dan200/computer/api/IMount.java
@@ -10,6 +10,8 @@ import java.io.IOException;
import java.io.InputStream;
import java.util.List;
+import net.minecraft.world.World;
+
/**
* Represents a read only part of a virtual filesystem that can be mounted onto a computer using IComputerAccess.mount().
* Ready made implementations of this interface can be created using ComputerCraftAPI.createSaveDirMount() or ComputerCraftAPI.createResourceMount(), or you're free to implement it yourselves!
@@ -47,11 +49,11 @@ public interface IMount
* @return the size of the file, in bytes
*/
public long getSize( String path ) throws IOException;
-
+
/**
* Opens a file with a given path, and returns an inputstream representing it's contents.
* @param path A file path in normalised format, relative to the mount location. ie: "programs/myprogram"
* @return a stream representing the contents of the file
*/
- public InputStream openForRead( String path ) throws IOException;
+ public InputStream openForRead( String path ) throws IOException;
}
diff --git a/MODSRC/dan200/computer/api/IPeripheral.java b/MODSRC/dan200/computer/api/IPeripheral.java
index 67243180..76d5a38f 100644
--- a/MODSRC/dan200/computer/api/IPeripheral.java
+++ b/MODSRC/dan200/computer/api/IPeripheral.java
@@ -19,16 +19,16 @@ public interface IPeripheral
* @return A string identifying the type of peripheral.
*/
public String getType();
-
+
/**
- * Should return an array of strings that identify the methods that this
+ * Should return an array of strings that identify the methods that this
* peripheral exposes to Lua. This will be called once before each attachment,
* and should not change when called multiple times.
* @return An array of strings representing method names.
* @see #callMethod
*/
public String[] getMethodNames();
-
+
/**
* This is called when a lua program on an attached computer calls peripheral.call() with
* one of the methods exposed by getMethodNames().
@@ -58,7 +58,7 @@ public interface IPeripheral
* @see #getMethodNames
*/
public Object[] callMethod( IComputerAccess computer, ILuaContext context, int method, Object[] arguments ) throws Exception;
-
+
/**
* Is called before the computer attempts to attach to the peripheral, and should return whether to allow
* the attachment. Use this to restrict the number of computers that can attach, or to limit attachments to
diff --git a/MODSRC/dan200/computer/api/IPeripheralHandler.java b/MODSRC/dan200/computer/api/IPeripheralHandler.java
index 062f15e3..363ae2ea 100644
--- a/MODSRC/dan200/computer/api/IPeripheralHandler.java
+++ b/MODSRC/dan200/computer/api/IPeripheralHandler.java
@@ -11,7 +11,7 @@ import net.minecraft.tileentity.TileEntity;
/**
* TODO: Document me
*/
-public interface IPeripheralHandler
+public interface IPeripheralHandler
{
public IHostedPeripheral getPeripheral( TileEntity tile );
}
diff --git a/MODSRC/dan200/computer/api/IWritableMount.java b/MODSRC/dan200/computer/api/IWritableMount.java
index 090ecf52..05d3c01d 100644
--- a/MODSRC/dan200/computer/api/IWritableMount.java
+++ b/MODSRC/dan200/computer/api/IWritableMount.java
@@ -9,6 +9,8 @@ package dan200.computer.api;
import java.io.IOException;
import java.io.OutputStream;
+import net.minecraft.world.World;
+
/**
* Represents a part of a virtual filesystem that can be mounted onto a computer using IComputerAccess.mount() or IComputerAccess.mountWritable(), that can also be written to.
* Ready made implementations of this interface can be created using ComputerCraftAPI.createSaveDirMount(), or you're free to implement it yourselves!
diff --git a/MODSRC/vazkii/tinkerer/client/core/handler/ClientTickHandler.java b/MODSRC/vazkii/tinkerer/client/core/handler/ClientTickHandler.java
index b1b8bf20..3164a3d2 100644
--- a/MODSRC/vazkii/tinkerer/client/core/handler/ClientTickHandler.java
+++ b/MODSRC/vazkii/tinkerer/client/core/handler/ClientTickHandler.java
@@ -19,7 +19,6 @@ import java.util.EnumSet;
import net.minecraft.client.Minecraft;
import thaumcraft.api.research.ResearchItem;
import thaumcraft.client.gui.GuiResearchRecipe;
-import thaumcraft.common.config.Config;
import vazkii.tinkerer.client.core.handler.kami.ToolModeHUDHandler;
import vazkii.tinkerer.client.core.helper.ClientHelper;
import vazkii.tinkerer.client.gui.GuiResearchPeripheral;
@@ -47,7 +46,7 @@ public class ClientTickHandler implements ITickHandler {
if(research.key.equals(LibResearch.KEY_PERIPHERALS))
mc.displayGuiScreen(new GuiResearchPeripheral(research));
}
-
+
if(ConfigHandler.enableEasymodeResearch)
EasymodeResearchHandler.onPlayerTick(mc.thePlayer);
diff --git a/MODSRC/vazkii/tinkerer/client/core/handler/kami/PlacementMirrorPredictionRenderer.java b/MODSRC/vazkii/tinkerer/client/core/handler/kami/PlacementMirrorPredictionRenderer.java
index f77a335d..df445b04 100644
--- a/MODSRC/vazkii/tinkerer/client/core/handler/kami/PlacementMirrorPredictionRenderer.java
+++ b/MODSRC/vazkii/tinkerer/client/core/handler/kami/PlacementMirrorPredictionRenderer.java
@@ -20,9 +20,9 @@ import vazkii.tinkerer.common.item.ModItems;
import vazkii.tinkerer.common.item.kami.ItemPlacementMirror;
public final class PlacementMirrorPredictionRenderer {
-
+
RenderBlocks blockRender = new RenderBlocks();
-
+
@ForgeSubscribe
public void onWorldRenderLast(RenderWorldLastEvent event) {
World world = Minecraft.getMinecraft().theWorld;
@@ -33,13 +33,13 @@ public final class PlacementMirrorPredictionRenderer {
renderPlayerLook(player, currentStack);
}
}
-
+
private void renderPlayerLook(EntityPlayer player, ItemStack stack) {
ChunkCoordinates[] coords = ItemPlacementMirror.getBlocksToPlace(stack, player);
if(ItemPlacementMirror.hasBlocks(stack, player, coords)) {
ItemStack block = new ItemStack(ItemPlacementMirror.getBlockID(stack), 1, ItemPlacementMirror.getBlockMeta(stack));
ChunkCoordinates lastCoords = new ChunkCoordinates(0, 0, 0);
-
+
GL11.glPushMatrix();
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
@@ -51,7 +51,7 @@ public final class PlacementMirrorPredictionRenderer {
GL11.glPopMatrix();
}
}
-
+
private void renderBlockAt(ItemStack block, ChunkCoordinates pos, ChunkCoordinates last) {
GL11.glPushMatrix();
GL11.glTranslated(pos.posX + 0.5 - RenderManager.renderPosX, pos.posY + 0.5 - RenderManager.renderPosY, pos.posZ + 0.5 - RenderManager.renderPosZ);
@@ -63,5 +63,5 @@ public final class PlacementMirrorPredictionRenderer {
GL11.glPopMatrix();
}
-
+
}
diff --git a/MODSRC/vazkii/tinkerer/client/core/proxy/TTClientProxy.java b/MODSRC/vazkii/tinkerer/client/core/proxy/TTClientProxy.java
index 413e812a..6f5264b9 100644
--- a/MODSRC/vazkii/tinkerer/client/core/proxy/TTClientProxy.java
+++ b/MODSRC/vazkii/tinkerer/client/core/proxy/TTClientProxy.java
@@ -90,7 +90,7 @@ public class TTClientProxy extends TTCommonProxy {
ClientRegistry.bindTileEntitySpecialRenderer(TileEnchanter.class, new RenderTileEnchanter());
ClientRegistry.bindTileEntitySpecialRenderer(TileFunnel.class, new RenderTileFunnel());
ClientRegistry.bindTileEntitySpecialRenderer(TileRepairer.class, new RenderTileRepairer());
-
+
if(ConfigHandler.enableKami) {
ClientRegistry.bindTileEntitySpecialRenderer(TileWarpGate.class, new RenderTileWarpGate());
}
@@ -102,16 +102,16 @@ public class TTClientProxy extends TTCommonProxy {
RenderingRegistry.registerBlockHandler(new RenderMagnet());
RenderingRegistry.registerBlockHandler(new RenderRepairer());
-
+
if(ConfigHandler.enableKami) {
MinecraftForgeClient.registerItemRenderer(ModItems.placementMirror.itemID, new RenderPlacementMirror());
-
+
LibRenderIDs.idWarpGate = RenderingRegistry.getNextAvailableRenderId();
-
+
RenderingRegistry.registerBlockHandler(new RenderWarpGate());
}
}
-
+
@Override
public void shadowSparkle(World world, float x, float y, float z, int size) {
ItemFocusShadowbeam.Particle particle = new ItemFocusShadowbeam.Particle(world, x, y, z, 1.5F, 0, size);
diff --git a/MODSRC/vazkii/tinkerer/client/gui/button/kami/GuiButtonWG.java b/MODSRC/vazkii/tinkerer/client/gui/button/kami/GuiButtonWG.java
index 4a6a5917..ea05b2d2 100644
--- a/MODSRC/vazkii/tinkerer/client/gui/button/kami/GuiButtonWG.java
+++ b/MODSRC/vazkii/tinkerer/client/gui/button/kami/GuiButtonWG.java
@@ -1,15 +1,15 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 5:58:46 PM (GMT)]
*/
package vazkii.tinkerer.client.gui.button.kami;
diff --git a/MODSRC/vazkii/tinkerer/client/gui/kami/GuiWarpGate.java b/MODSRC/vazkii/tinkerer/client/gui/kami/GuiWarpGate.java
index 0656a04f..104cb838 100644
--- a/MODSRC/vazkii/tinkerer/client/gui/kami/GuiWarpGate.java
+++ b/MODSRC/vazkii/tinkerer/client/gui/kami/GuiWarpGate.java
@@ -1,15 +1,15 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 5:43:53 PM (GMT)]
*/
package vazkii.tinkerer.client.gui.kami;
@@ -27,7 +27,6 @@ import vazkii.tinkerer.client.lib.LibResources;
import vazkii.tinkerer.common.block.tile.container.kami.ContainerWarpGate;
import vazkii.tinkerer.common.block.tile.kami.TileWarpGate;
import vazkii.tinkerer.common.network.PacketManager;
-import vazkii.tinkerer.common.network.packet.PacketMobMagnetButton;
import vazkii.tinkerer.common.network.packet.kami.PacketWarpGateButton;
import cpw.mods.fml.common.network.PacketDispatcher;
@@ -37,12 +36,12 @@ public class GuiWarpGate extends GuiContainer {
TileWarpGate warpGate;
int x, y;
-
+
public GuiWarpGate(TileWarpGate warpGate, InventoryPlayer inv) {
super(new ContainerWarpGate(warpGate, inv));
this.warpGate = warpGate;
}
-
+
@Override
protected void actionPerformed(GuiButton par1GuiButton) {
((GuiButtonWG) par1GuiButton).enabled = !((GuiButtonWG) par1GuiButton).enabled;
@@ -50,13 +49,13 @@ public class GuiWarpGate extends GuiContainer {
PacketDispatcher.sendPacketToServer(PacketManager.buildPacket(new PacketWarpGateButton(warpGate)));
}
-
+
@Override
public void initGui() {
super.initGui();
x = (width - xSize) / 2;
y = (height - ySize) / 2;
-
+
buttonList.clear();
buttonList.add(new GuiButtonWG(0, x + 5, y + 5, warpGate.locked));
}
diff --git a/MODSRC/vazkii/tinkerer/client/gui/kami/GuiWarpGateDestinations.java b/MODSRC/vazkii/tinkerer/client/gui/kami/GuiWarpGateDestinations.java
index b83218b1..3a405985 100644
--- a/MODSRC/vazkii/tinkerer/client/gui/kami/GuiWarpGateDestinations.java
+++ b/MODSRC/vazkii/tinkerer/client/gui/kami/GuiWarpGateDestinations.java
@@ -1,22 +1,20 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 6:08:23 PM (GMT)]
*/
package vazkii.tinkerer.client.gui.kami;
import java.awt.Color;
-import java.math.BigDecimal;
-import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.List;
@@ -33,21 +31,20 @@ import net.minecraft.util.StatCollector;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.GL11;
-import cpw.mods.fml.common.network.PacketDispatcher;
import thaumcraft.client.codechicken.core.vec.Vector3;
import vazkii.tinkerer.client.core.helper.ClientHelper;
import vazkii.tinkerer.common.block.tile.kami.TileWarpGate;
-import vazkii.tinkerer.common.core.helper.MiscHelper;
import vazkii.tinkerer.common.item.ModItems;
import vazkii.tinkerer.common.item.kami.ItemSkyPearl;
import vazkii.tinkerer.common.network.PacketManager;
import vazkii.tinkerer.common.network.packet.kami.PacketWarpGateTeleport;
+import cpw.mods.fml.common.network.PacketDispatcher;
public class GuiWarpGateDestinations extends GuiScreen {
private static ResourceLocation enderField = new ResourceLocation("textures/entity/end_portal.png");
TileWarpGate warpGate;
- RenderItem render = new RenderItem();
+ RenderItem render = new RenderItem();
int lastMouseX, lastMouseY;
int x, y;
@@ -72,8 +69,8 @@ public class GuiWarpGateDestinations extends GuiScreen {
ScaledResolution res = new ScaledResolution(mc.gameSettings, mc.displayWidth, mc.displayHeight);
int i = res.getScaledWidth();
int j = res.getScaledHeight();
- int mx = Mouse.getX() * i / this.mc.displayWidth;
- int my = j - Mouse.getY() * j / this.mc.displayHeight - 1;
+ int mx = Mouse.getX() * i / mc.displayWidth;
+ int my = j - Mouse.getY() * j / mc.displayHeight - 1;
if(Mouse.isButtonDown(0)) {
int deltaX = mx - lastMouseX;
@@ -130,7 +127,7 @@ public class GuiWarpGateDestinations extends GuiScreen {
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- GL11.glColor4f(1F, 1F, 1F, (float) ((Math.sin((double) ticks / 10D) + 1F) / 4F + 0.25F));
+ GL11.glColor4f(1F, 1F, 1F, (float) ((Math.sin(ticks / 10D) + 1F) / 4F + 0.25F));
GL11.glLineWidth(2F);
GL11.glDisable(GL11.GL_TEXTURE_2D);
for(Object[] coords_ : coords) {
@@ -146,7 +143,7 @@ public class GuiWarpGateDestinations extends GuiScreen {
GL11.glDisable(GL11.GL_BLEND);
GL11.glColor4f(1F, 1F, 1F, 1F);
- drawPearlAt(0, null, (Integer) gateX, (Integer) gateY, par1, par2);
+ drawPearlAt(0, null, gateX, gateY, par1, par2);
for(Object[] coords_ : coords)
drawPearlAt((Integer) coords_[3], (ItemStack) coords_[2], (Integer) coords_[0], (Integer) coords_[1], par1, par2);
@@ -192,16 +189,16 @@ public class GuiWarpGateDestinations extends GuiScreen {
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_FOG);
Tessellator tessellator = Tessellator.instance;
- this.mc.getTextureManager().bindTexture(enderField);
+ mc.getTextureManager().bindTexture(enderField);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
float f = 256.0F;
tessellator.startDrawingQuads();
- float hue = (float) (Math.sin((double) ticks / 150D) + 1F / 2F);
+ float hue = (float) (Math.sin(ticks / 150D) + 1F / 2F);
tessellator.setColorOpaque_I(Color.HSBtoRGB(hue, 0.5F, 0.4F));
- tessellator.addVertexWithUV(0.0D, (double)this.height, 0.0D, 0.0D, (double)((float)this.height / f + (float)par1));
- tessellator.addVertexWithUV((double)this.width, (double)this.height, 0.0D, (double)((float)this.width / f), (double)((float)this.height / f + (float)par1));
- tessellator.addVertexWithUV((double)this.width, 0.0D, 0.0D, (double)((float)this.width / f), (double)par1);
- tessellator.addVertexWithUV(0.0D, 0.0D, 0.0D, 0.0D, (double)par1);
+ tessellator.addVertexWithUV(0.0D, height, 0.0D, 0.0D, height / f + par1);
+ tessellator.addVertexWithUV(width, height, 0.0D, width / f, height / f + par1);
+ tessellator.addVertexWithUV(width, 0.0D, 0.0D, width / f, par1);
+ tessellator.addVertexWithUV(0.0D, 0.0D, 0.0D, 0.0D, par1);
tessellator.draw();
}
diff --git a/MODSRC/vazkii/tinkerer/client/lib/LibRenderIDs.java b/MODSRC/vazkii/tinkerer/client/lib/LibRenderIDs.java
index 4a4f7166..1cecf5e8 100644
--- a/MODSRC/vazkii/tinkerer/client/lib/LibRenderIDs.java
+++ b/MODSRC/vazkii/tinkerer/client/lib/LibRenderIDs.java
@@ -18,7 +18,7 @@ public final class LibRenderIDs {
public static int idMagnet = -1;
public static int idRepairer = -1;
-
+
public static int idWarpGate = -1;
}
diff --git a/MODSRC/vazkii/tinkerer/client/model/kami/ModelSpinningCubes.java b/MODSRC/vazkii/tinkerer/client/model/kami/ModelSpinningCubes.java
index 5fe5dbb8..9b8862ad 100644
--- a/MODSRC/vazkii/tinkerer/client/model/kami/ModelSpinningCubes.java
+++ b/MODSRC/vazkii/tinkerer/client/model/kami/ModelSpinningCubes.java
@@ -1,26 +1,22 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 4:41:02 PM (GMT)]
*/
package vazkii.tinkerer.client.model.kami;
-import java.awt.Color;
-
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.OpenGlHelper;
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.entity.item.EntityXPOrb;
import org.lwjgl.opengl.GL11;
@@ -44,7 +40,7 @@ public class ModelSpinningCubes extends ModelBase {
public void renderSpinningCubes(int cubes, int repeat, int origRepeat) {
GL11.glDisable(GL11.GL_TEXTURE_2D);
-
+
final float modifier = 6F;
final float rotationModifier = 0.25F;
final float radiusBase = 0.7F;
@@ -52,7 +48,7 @@ public class ModelSpinningCubes extends ModelBase {
double ticks = ClientHelper.clientPlayer().ticksExisted - 0.75 * (origRepeat - repeat);
float offsetPerCube = 360 / cubes;
-
+
GL11.glPushMatrix();
GL11.glTranslatef(-0.025F, 0.85F, -0.025F);
for(int i = 0; i < cubes; i++) {
@@ -70,7 +66,7 @@ public class ModelSpinningCubes extends ModelBase {
float xRotate = (float) Math.sin(ticks * rotationModifier) / 2F;
float yRotate = (float) Math.max(0.6F, Math.sin(ticks * 0.1F) / 2F + 0.5F);
float zRotate = (float) Math.cos(ticks * rotationModifier) / 2F;
-
+
GL11.glRotatef(deg, xRotate, yRotate, zRotate);
if(repeat < origRepeat) {
GL11.glColor4f(1F, 1F, 1F, 0.2F);
@@ -81,19 +77,19 @@ public class ModelSpinningCubes extends ModelBase {
int light = 15728880;
int lightmapX = light % 65536;
int lightmapY = light / 65536;
-
+
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
spinningCube.render(1F / 16F);
-
+
if(repeat < origRepeat)
GL11.glDisable(GL11.GL_BLEND);
GL11.glPopMatrix();
}
GL11.glPopMatrix();
-
+
GL11.glEnable(GL11.GL_TEXTURE_2D);
-
+
if(repeat != 0)
renderSpinningCubes(cubes, repeat - 1, origRepeat);
}
diff --git a/MODSRC/vazkii/tinkerer/client/render/block/kami/RenderWarpGate.java b/MODSRC/vazkii/tinkerer/client/render/block/kami/RenderWarpGate.java
index 47ca04c2..784ea162 100644
--- a/MODSRC/vazkii/tinkerer/client/render/block/kami/RenderWarpGate.java
+++ b/MODSRC/vazkii/tinkerer/client/render/block/kami/RenderWarpGate.java
@@ -1,21 +1,20 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 4:03:03 PM (GMT)]
*/
package vazkii.tinkerer.client.render.block.kami;
import net.minecraft.block.Block;
-import net.minecraft.block.BlockWall;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.util.Icon;
@@ -24,10 +23,7 @@ import net.minecraft.world.IBlockAccess;
import org.lwjgl.opengl.GL11;
import thaumcraft.client.renderers.block.BlockRenderer;
-import thaumcraft.common.blocks.BlockCustomOre;
-import thaumcraft.common.config.ConfigBlocks;
import vazkii.tinkerer.client.lib.LibRenderIDs;
-import vazkii.tinkerer.common.block.ModBlocks;
import vazkii.tinkerer.common.block.kami.BlockWarpGate;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
@@ -40,7 +36,7 @@ public class RenderWarpGate extends BlockRenderer implements ISimpleBlockRenderi
Icon sideIcon = BlockWarpGate.icons[1];
drawFaces(renderer, block, sideIcon, topIcon, sideIcon, sideIcon, sideIcon, sideIcon, false);
GL11.glColor3f(1F, 1F, 1F);
-
+
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
Tessellator t = Tessellator.instance;
t.startDrawingQuads();
@@ -56,7 +52,7 @@ public class RenderWarpGate extends BlockRenderer implements ISimpleBlockRenderi
block.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
renderer.setRenderBoundsFromBlock(block);
renderer.renderStandardBlock(block, x, y, z);
-
+
Tessellator t = Tessellator.instance;
t.setColorOpaque_I(0xFFFFFF);
t.setBrightness(255);
@@ -65,7 +61,7 @@ public class RenderWarpGate extends BlockRenderer implements ISimpleBlockRenderi
renderer.clearOverrideBlockTexture();
block.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
renderer.renderStandardBlock(block, x, y, z);
-
+
return true;
}
diff --git a/MODSRC/vazkii/tinkerer/client/render/item/kami/RenderPlacementMirror.java b/MODSRC/vazkii/tinkerer/client/render/item/kami/RenderPlacementMirror.java
index 665f6b56..679af7d2 100644
--- a/MODSRC/vazkii/tinkerer/client/render/item/kami/RenderPlacementMirror.java
+++ b/MODSRC/vazkii/tinkerer/client/render/item/kami/RenderPlacementMirror.java
@@ -44,7 +44,7 @@ public class RenderPlacementMirror implements IItemRenderer {
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
}
-
+
float f = icon.getMinU();
float f1 = icon.getMaxU();
float f2 = icon.getMinV();
diff --git a/MODSRC/vazkii/tinkerer/client/render/tile/RenderTileMagnet.java b/MODSRC/vazkii/tinkerer/client/render/tile/RenderTileMagnet.java
index c457d99d..db6275ef 100644
--- a/MODSRC/vazkii/tinkerer/client/render/tile/RenderTileMagnet.java
+++ b/MODSRC/vazkii/tinkerer/client/render/tile/RenderTileMagnet.java
@@ -64,7 +64,7 @@ public class RenderTileMagnet extends TileEntitySpecialRenderer {
GL11.glRotatef(90F, 1F, 0F, 0F);
GL11.glTranslatef(0F, 0F, -0.6F);
Icon icon = ((ItemHoverHarness) ConfigItems.itemHoverHarness).iconLightningRing;
-
+
for(int i = 0; i < 3; i++) {
for(int j = 0; j < 2; j++) {
GL11.glScalef(1F, -1F, 1F);
diff --git a/MODSRC/vazkii/tinkerer/client/render/tile/kami/RenderTileWarpGate.java b/MODSRC/vazkii/tinkerer/client/render/tile/kami/RenderTileWarpGate.java
index f6a7237f..5bc24473 100644
--- a/MODSRC/vazkii/tinkerer/client/render/tile/kami/RenderTileWarpGate.java
+++ b/MODSRC/vazkii/tinkerer/client/render/tile/kami/RenderTileWarpGate.java
@@ -1,21 +1,20 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 4:44:15 PM (GMT)]
*/
package vazkii.tinkerer.client.render.tile.kami;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
-import net.minecraft.entity.item.EntityXPOrb;
import net.minecraft.tileentity.TileEntity;
import org.lwjgl.opengl.GL11;
@@ -25,7 +24,7 @@ import vazkii.tinkerer.client.model.kami.ModelSpinningCubes;
public class RenderTileWarpGate extends TileEntitySpecialRenderer {
ModelSpinningCubes cubes = new ModelSpinningCubes();
-
+
@Override
public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
GL11.glPushMatrix();
diff --git a/MODSRC/vazkii/tinkerer/common/block/BlockCamo.java b/MODSRC/vazkii/tinkerer/common/block/BlockCamo.java
index 73c93afa..18699aa1 100644
--- a/MODSRC/vazkii/tinkerer/common/block/BlockCamo.java
+++ b/MODSRC/vazkii/tinkerer/common/block/BlockCamo.java
@@ -34,7 +34,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public abstract class BlockCamo extends BlockModContainer {
static List validRenderTypes = Arrays.asList(0, 31, 39);
-
+
protected BlockCamo(int par1, Material par2Material) {
super(par1, par2Material);
}
@@ -55,7 +55,7 @@ public abstract class BlockCamo extends BlockModContainer {
return getIconFromSideAfterCheck(tile, meta, side);
}
-
+
public boolean isValidRenderType(int type) {
return validRenderTypes.contains(type);
}
@@ -72,7 +72,6 @@ public abstract class BlockCamo extends BlockModContainer {
currentStack = new ItemStack(0, 1, 0);
boolean doChange = true;
- int rendertype = 0;
Block block = null;
checkChange : {
if(currentStack.itemID != 0) {
@@ -95,16 +94,16 @@ public abstract class BlockCamo extends BlockModContainer {
case 1:
break;
case 2:
- metadata = (metadata & 12) | 2;
+ metadata = metadata & 12 | 2;
break;
case 3:
- metadata = (metadata & 12) | 0;
+ metadata = metadata & 12 | 0;
break;
case 4:
- metadata = (metadata & 12) | 1;
+ metadata = metadata & 12 | 1;
break;
case 5:
- metadata = (metadata & 12) | 3;
+ metadata = metadata & 12 | 3;
break;
}
}
diff --git a/MODSRC/vazkii/tinkerer/common/block/BlockPlatform.java b/MODSRC/vazkii/tinkerer/common/block/BlockPlatform.java
index 0deaf541..fb721897 100644
--- a/MODSRC/vazkii/tinkerer/common/block/BlockPlatform.java
+++ b/MODSRC/vazkii/tinkerer/common/block/BlockPlatform.java
@@ -38,7 +38,7 @@ public class BlockPlatform extends BlockCamo {
if(par7Entity != null && par7Entity.posY > par3 + (par7Entity instanceof EntityPlayer ? 2 : 0) && (!(par7Entity instanceof EntityPlayer) || !par7Entity.isSneaking()))
super.addCollisionBoxesToList(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
}
-
+
@Override
public boolean getBlocksMovement(IBlockAccess par1iBlockAccess, int par2, int par3, int par4) {
return false;
diff --git a/MODSRC/vazkii/tinkerer/common/block/ModBlocks.java b/MODSRC/vazkii/tinkerer/common/block/ModBlocks.java
index 523a8ccc..a59701b2 100644
--- a/MODSRC/vazkii/tinkerer/common/block/ModBlocks.java
+++ b/MODSRC/vazkii/tinkerer/common/block/ModBlocks.java
@@ -60,7 +60,7 @@ public final class ModBlocks {
public static Block repairer;
public static Block aspectAnalyzer;
public static Block platform;
-
+
public static Block warpGate;
public static void initBlocks() {
@@ -84,7 +84,7 @@ public final class ModBlocks {
if(ConfigHandler.enableKami) {
warpGate = new BlockWarpGate(LibBlockIDs.idWarpGate).setUnlocalizedName(LibBlockNames.WARP_GATE);
}
-
+
registerBlocks();
registerMultiparts();
}
@@ -105,7 +105,7 @@ public final class ModBlocks {
GameRegistry.registerBlock(repairer, LibBlockNames.REPAIRER);
GameRegistry.registerBlock(aspectAnalyzer, LibBlockNames.ASPECT_ANALYZER);
GameRegistry.registerBlock(platform, LibBlockNames.PLATFORM);
-
+
if(ConfigHandler.enableKami) {
GameRegistry.registerBlock(warpGate, ItemBlockWarpGate.class, LibBlockNames.WARP_GATE);
}
@@ -132,7 +132,7 @@ public final class ModBlocks {
GameRegistry.registerTileEntity(TileRepairer.class, LibBlockNames.REPAIRER);
GameRegistry.registerTileEntity(TileAspectAnalyzer.class, LibBlockNames.ASPECT_ANALYZER);
GameRegistry.registerTileEntity(TileCamo.class, LibBlockNames.CAMO);
-
+
if(ConfigHandler.enableKami) {
GameRegistry.registerTileEntity(TileWarpGate.class, LibBlockNames.WARP_GATE);
}
diff --git a/MODSRC/vazkii/tinkerer/common/block/kami/BlockWarpGate.java b/MODSRC/vazkii/tinkerer/common/block/kami/BlockWarpGate.java
index 6729b0d9..84da4667 100644
--- a/MODSRC/vazkii/tinkerer/common/block/kami/BlockWarpGate.java
+++ b/MODSRC/vazkii/tinkerer/common/block/kami/BlockWarpGate.java
@@ -1,15 +1,15 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 3:54:41 PM (GMT)]
*/
package vazkii.tinkerer.common.block.kami;
@@ -39,15 +39,15 @@ public class BlockWarpGate extends BlockModContainer {
public static Icon[] icons = new Icon[3];
Random random;
-
+
public BlockWarpGate(int par1) {
super(par1, Material.rock);
setHardness(5.0F);
setResistance(2000.0F);
-
+
random = new Random();
}
-
+
@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) {
@@ -60,7 +60,7 @@ public class BlockWarpGate extends BlockModContainer {
return true;
}
-
+
@Override
public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6) {
TileWarpGate warpGate = (TileWarpGate) par1World.getBlockTileEntity(par2, par3, par4);
@@ -103,28 +103,28 @@ public class BlockWarpGate extends BlockModContainer {
public TileEntity createNewTileEntity(World world) {
return new TileWarpGate();
}
-
+
@Override
public Icon getIcon(int par1, int par2) {
return icons[par1 == 1 ? 0 : 1];
}
-
+
@Override
public void registerIcons(IconRegister par1IconRegister) {
for(int i = 0; i < icons.length; i++)
icons[i] = IconHelper.forBlock(par1IconRegister, this, i);
}
-
+
@Override
public int getRenderType() {
return LibRenderIDs.idWarpGate;
}
-
+
@Override
public boolean isOpaqueCube() {
return false;
}
-
+
@Override
public boolean renderAsNormalBlock() {
return false;
diff --git a/MODSRC/vazkii/tinkerer/common/block/tile/container/kami/ContainerWarpGate.java b/MODSRC/vazkii/tinkerer/common/block/tile/container/kami/ContainerWarpGate.java
index fc17ad4c..1fbc9c0f 100644
--- a/MODSRC/vazkii/tinkerer/common/block/tile/container/kami/ContainerWarpGate.java
+++ b/MODSRC/vazkii/tinkerer/common/block/tile/container/kami/ContainerWarpGate.java
@@ -1,15 +1,15 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 5:45:28 PM (GMT)]
*/
package vazkii.tinkerer.common.block.tile.container.kami;
@@ -26,15 +26,15 @@ import vazkii.tinkerer.common.item.ModItems;
public class ContainerWarpGate extends ContainerPlayerInv {
TileWarpGate gate;
-
+
public ContainerWarpGate(TileWarpGate gate, InventoryPlayer playerInv) {
super(playerInv);
this.gate = gate;
-
+
for(int y = 0; y < 2; y++)
for(int x = 0; x < 5; x++)
addSlotToContainer(new SlotSkyPearl(gate, y * 5 + x, 30 + x * 25, 27 + y * 25));
-
+
initPlayerInv();
}
@@ -42,7 +42,7 @@ public class ContainerWarpGate extends ContainerPlayerInv {
public boolean canInteractWith(EntityPlayer entityplayer) {
return gate.isUseableByPlayer(entityplayer);
}
-
+
@Override
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2) {
ItemStack var3 = null;
diff --git a/MODSRC/vazkii/tinkerer/common/block/tile/container/slot/kami/SlotSkyPearl.java b/MODSRC/vazkii/tinkerer/common/block/tile/container/slot/kami/SlotSkyPearl.java
index 36c66d00..9ab50ac5 100644
--- a/MODSRC/vazkii/tinkerer/common/block/tile/container/slot/kami/SlotSkyPearl.java
+++ b/MODSRC/vazkii/tinkerer/common/block/tile/container/slot/kami/SlotSkyPearl.java
@@ -1,35 +1,35 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 5:51:20 PM (GMT)]
*/
package vazkii.tinkerer.common.block.tile.container.slot.kami;
-import vazkii.tinkerer.common.item.ModItems;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
+import vazkii.tinkerer.common.item.ModItems;
public class SlotSkyPearl extends Slot {
public SlotSkyPearl(IInventory par1iInventory, int par2, int par3, int par4) {
super(par1iInventory, par2, par3, par4);
}
-
+
@Override
public boolean isItemValid(ItemStack par1ItemStack) {
return par1ItemStack.itemID == ModItems.skyPearl.itemID;
}
-
+
@Override
public int getSlotStackLimit() {
return 1;
diff --git a/MODSRC/vazkii/tinkerer/common/block/tile/kami/TileWarpGate.java b/MODSRC/vazkii/tinkerer/common/block/tile/kami/TileWarpGate.java
index 45062a12..094273c8 100644
--- a/MODSRC/vazkii/tinkerer/common/block/tile/kami/TileWarpGate.java
+++ b/MODSRC/vazkii/tinkerer/common/block/tile/kami/TileWarpGate.java
@@ -1,15 +1,15 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 3:56:13 PM (GMT)]
*/
package vazkii.tinkerer.common.block.tile.kami;
@@ -37,7 +37,7 @@ import vazkii.tinkerer.common.lib.LibGuiIDs;
public class TileWarpGate extends TileEntity implements IInventory {
private static final String TAG_LOCKED = "locked";
-
+
public boolean locked = false;
boolean teleportedThisTick = false;
ItemStack[] inventorySlots = new ItemStack[10];
@@ -48,14 +48,14 @@ public class TileWarpGate extends TileEntity implements IInventory {
for(EntityPlayer player : players)
if(player.isSneaking())
player.openGui(ThaumicTinkerer.instance, LibGuiIDs.GUI_ID_WARP_GATE_DESTINATIONS, worldObj, xCoord, yCoord, zCoord);
-
+
teleportedThisTick = false;
}
-
+
public void teleportPlayer(EntityPlayer player, int index) {
if(teleportedThisTick)
return;
-
+
ItemStack stack = index < getSizeInventory() ? getStackInSlot(index) : null;
if(stack != null && ItemSkyPearl.isAttuned(stack)) {
int x = ItemSkyPearl.getX(stack);
@@ -66,7 +66,7 @@ public class TileWarpGate extends TileEntity implements IInventory {
teleportedThisTick = true;
}
}
-
+
public static boolean teleportPlayer(EntityPlayer player, ChunkCoordinates coords) {
int x = coords.posX;
int y = coords.posY;
@@ -80,23 +80,23 @@ public class TileWarpGate extends TileEntity implements IInventory {
for(int i = 0; i < 20; i++)
ThaumicTinkerer.tcProxy.sparkle((float)player.posX + player.worldObj.rand.nextFloat() - 0.5F, (float)player.posY + player.worldObj.rand.nextFloat(), (float)player.posZ + player.worldObj.rand.nextFloat() - 0.5F, 6);
-
+
if(player instanceof EntityPlayerMP)
((EntityPlayerMP) player).playerNetServerHandler.setPlayerLocation(x + 0.5, y + 1.6, z + 0.5, player.rotationYaw, player.rotationPitch);
-
+
for(int i = 0; i < 20; i++)
ThaumicTinkerer.tcProxy.sparkle((float)player.posX + player.worldObj.rand.nextFloat() - 0.5F, (float)player.posY + player.worldObj.rand.nextFloat(), (float)player.posZ + player.worldObj.rand.nextFloat() - 0.5F, 6);
-
+
player.worldObj.playSoundAtEntity(player, "thaumcraft:wand", 1F, 0.1F);
return true;
} else if(!player.worldObj.isRemote)
player.addChatMessage("ttmisc.noTeleport");
} else if(!player.worldObj.isRemote)
player.addChatMessage("ttmisc.noDest");
-
+
return false;
}
-
+
@Override
public void readFromNBT(NBTTagCompound par1NBTTagCompound) {
super.readFromNBT(par1NBTTagCompound);
@@ -113,7 +113,7 @@ public class TileWarpGate extends TileEntity implements IInventory {
public void readCustomNBT(NBTTagCompound par1NBTTagCompound) {
locked = par1NBTTagCompound.getBoolean(TAG_LOCKED);
-
+
NBTTagList var2 = par1NBTTagCompound.getTagList("Items");
inventorySlots = new ItemStack[getSizeInventory()];
for (int var3 = 0; var3 < var2.tagCount(); ++var3) {
@@ -126,7 +126,7 @@ public class TileWarpGate extends TileEntity implements IInventory {
public void writeCustomNBT(NBTTagCompound par1NBTTagCompound) {
par1NBTTagCompound.setBoolean(TAG_LOCKED, locked);
-
+
NBTTagList var2 = new NBTTagList();
for (int var3 = 0; var3 < inventorySlots.length; ++var3) {
if (inventorySlots[var3] != null) {
diff --git a/MODSRC/vazkii/tinkerer/common/core/handler/ConfigHandler.java b/MODSRC/vazkii/tinkerer/common/core/handler/ConfigHandler.java
index cf969f0d..dc079ba9 100644
--- a/MODSRC/vazkii/tinkerer/common/core/handler/ConfigHandler.java
+++ b/MODSRC/vazkii/tinkerer/common/core/handler/ConfigHandler.java
@@ -42,7 +42,7 @@ public final class ConfigHandler {
public static boolean useTootlipIndicators = true;
public static boolean enableSurvivalShareTome = true;
public static boolean enableEasymodeResearch = false;
-
+
public static boolean showPlacementMirrorBlocks = true;
public static int netherDimensionID = -1;
public static int endDimensionID = 1;
@@ -68,24 +68,24 @@ public final class ConfigHandler {
Property propEnableTooltips = config.get(Configuration.CATEGORY_GENERAL, "tooltipIndicators.enabled", true);
propEnableTooltips.comment = "Set to false to disable the [TT] tooltips in the thauminomicon.";
useTootlipIndicators = propEnableTooltips.getBoolean(true);
-
+
Property propEnableSurvivalShareTome = config.get(Configuration.CATEGORY_GENERAL, "shareTome.survival.enabled", true);
propEnableSurvivalShareTome.comment = "Set to false to disable the crafting recipe for the Tome of Research Sharing.";
enableSurvivalShareTome = propEnableSurvivalShareTome.getBoolean(true);
-
+
Property propEasymodeResearch = config.get(Configuration.CATEGORY_GENERAL, "research.easymode.enabled", false);
propEasymodeResearch.comment = "Set to true to enable Easy Research (getting research notes = instant discovery). For those who don't like research.";
enableEasymodeResearch = propEasymodeResearch.getBoolean(false);
-
+
if(enableKami) {
Property propShowPlacementMirrorBlocks = config.get(CATEGORY_KAMI_GENERAL, "placementMirror.blocks.show", true);
propShowPlacementMirrorBlocks.comment = "Set to false to remove the phantom blocks displayed by the Worldshaper's Seeing Glass.";
showPlacementMirrorBlocks = propShowPlacementMirrorBlocks.getBoolean(true);
-
+
Property propNetherID = config.get(CATEGORY_KAMI_GENERAL, "dimension.nether.id", -1);
propNetherID.comment = "The Dimension ID for the Nether, leave at -1 if you don't modify it with another mod/plugin.";
netherDimensionID = propNetherID.getInt(-1);
-
+
Property propEndID = config.get(CATEGORY_KAMI_GENERAL, "dimension.end.id", 1);
propEndID.comment = "The Dimension ID for the End, leave at 1 if you don't modify it with another mod/plugin.";
endDimensionID = propEndID.getInt(1);
@@ -109,7 +109,7 @@ public final class ConfigHandler {
LibBlockIDs.idPlatform = loadBlock(LibBlockNames.PLATFORM, LibBlockIDs.idPlatform);
LibBlockIDs.idWarpGate = loadBlock(LibBlockNames.WARP_GATE, LibBlockIDs.idWarpGate);
-
+
LibItemIDs.idDarkQuartz = loadItem(LibItemNames.DARK_QUARTZ, LibItemIDs.idDarkQuartz);
LibItemIDs.idConnector = loadItem(LibItemNames.CONNECTOR, LibItemIDs.idConnector);
LibItemIDs.idGaseousLight = loadItem(LibItemNames.GASEOUS_LIGHT, LibItemIDs.idGaseousLight);
@@ -131,7 +131,7 @@ public final class ConfigHandler {
LibItemIDs.idInfusedInkwell = loadItem(LibItemNames.INFUSED_INKWELL, LibItemIDs.idInfusedInkwell);
LibItemIDs.idFocusDeflect = loadItem(LibItemNames.FOCUS_DEFLECT, LibItemIDs.idFocusDeflect);
LibItemIDs.idShareBook = loadItem(LibItemNames.SHARE_BOOK, LibItemIDs.idShareBook);
-
+
LibItemIDs.idKamiResource = loadKamiItem(LibItemNames.KAMI_RESOURCE, LibItemIDs.idKamiResource);
LibItemIDs.idIchorHelm = loadKamiItem(LibItemNames.ICHOR_HELM, LibItemIDs.idIchorHelm);
LibItemIDs.idIchorChest = loadKamiItem(LibItemNames.ICHOR_CHEST, LibItemIDs.idIchorChest);
@@ -179,10 +179,6 @@ public final class ConfigHandler {
private static int loadBlock(String label, int defaultID) {
return config.getBlock("id_tile." + label, defaultID).getInt(defaultID);
}
-
- private static int loadKamiBlock(String label, int defaultID) {
- return config.getBlock(CATEGORY_KAMI_BLOCKS, "id_tile." + label, defaultID).getInt(defaultID);
- }
private static int loadEnchant(String label, int deafultID) {
return config.get(CATEGORY_ENCHANTMENTS, "id_enchant." + label, deafultID).getInt(deafultID);
diff --git a/MODSRC/vazkii/tinkerer/common/core/handler/EasymodeResearchHandler.java b/MODSRC/vazkii/tinkerer/common/core/handler/EasymodeResearchHandler.java
index 1efa9be0..4659bcd1 100644
--- a/MODSRC/vazkii/tinkerer/common/core/handler/EasymodeResearchHandler.java
+++ b/MODSRC/vazkii/tinkerer/common/core/handler/EasymodeResearchHandler.java
@@ -2,34 +2,29 @@
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 1:59:51 PM (GMT)]
*/
package vazkii.tinkerer.common.core.handler;
import java.util.EnumSet;
-import cpw.mods.fml.common.ITickHandler;
-import cpw.mods.fml.common.TickType;
-import cpw.mods.fml.common.network.PacketDispatcher;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
-import net.minecraft.server.MinecraftServer;
-import net.minecraftforge.event.ForgeSubscribe;
-import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent;
import thaumcraft.common.container.ContainerResearchTable;
import thaumcraft.common.items.ItemResearchNotes;
import thaumcraft.common.lib.research.ResearchManager;
import thaumcraft.common.lib.research.ResearchNoteData;
-import vazkii.tinkerer.common.network.PacketManager;
+import cpw.mods.fml.common.ITickHandler;
+import cpw.mods.fml.common.TickType;
public class EasymodeResearchHandler implements ITickHandler {
diff --git a/MODSRC/vazkii/tinkerer/common/core/handler/ModCreativeTab.java b/MODSRC/vazkii/tinkerer/common/core/handler/ModCreativeTab.java
index 2241f2fa..96398114 100644
--- a/MODSRC/vazkii/tinkerer/common/core/handler/ModCreativeTab.java
+++ b/MODSRC/vazkii/tinkerer/common/core/handler/ModCreativeTab.java
@@ -68,10 +68,10 @@ public class ModCreativeTab extends CreativeTabs {
addBlock(ModBlocks.magnet);
addItem(ModItems.soulMould);
addBlock(ModBlocks.animationTablet);
-
+
if(Loader.isModLoaded("ComputerCraft"))
addBlock(ModBlocks.aspectAnalyzer);
-
+
if(ConfigHandler.enableKami) {
addBlock(ModBlocks.warpGate);
}
diff --git a/MODSRC/vazkii/tinkerer/common/core/helper/ExperienceHelper.java b/MODSRC/vazkii/tinkerer/common/core/helper/ExperienceHelper.java
index cf5639de..a5e2edc0 100644
--- a/MODSRC/vazkii/tinkerer/common/core/helper/ExperienceHelper.java
+++ b/MODSRC/vazkii/tinkerer/common/core/helper/ExperienceHelper.java
@@ -6,9 +6,9 @@ import net.minecraft.entity.player.EntityPlayer;
public class ExperienceHelper {
public static int getPlayerXP(EntityPlayer player) {
- return (int)(getExperienceForLevel(player.experienceLevel) + (player.experience * player.xpBarCap()));
+ return (int)(getExperienceForLevel(player.experienceLevel) + player.experience * player.xpBarCap());
}
-
+
public static void drainPlayerXP(EntityPlayer player, int amount) {
addPlayerXP(player, -amount);
}
@@ -20,7 +20,7 @@ public class ExperienceHelper {
int expForLevel = getExperienceForLevel(player.experienceLevel);
player.experience = (float)(experience - expForLevel) / (float)player.xpBarCap();
}
-
+
public static int getExperienceForLevel(int level) {
if (level == 0) { return 0; }
if (level > 0 && level < 16) {
@@ -39,5 +39,5 @@ public class ExperienceHelper {
}
return i - 1;
}
-
+
}
diff --git a/MODSRC/vazkii/tinkerer/common/core/proxy/TTCommonProxy.java b/MODSRC/vazkii/tinkerer/common/core/proxy/TTCommonProxy.java
index 7d58dab0..fa2e7516 100644
--- a/MODSRC/vazkii/tinkerer/common/core/proxy/TTCommonProxy.java
+++ b/MODSRC/vazkii/tinkerer/common/core/proxy/TTCommonProxy.java
@@ -16,7 +16,6 @@ package vazkii.tinkerer.common.core.proxy;
import net.minecraft.world.World;
import net.minecraftforge.common.MinecraftForge;
-import thaumcraft.common.config.Config;
import thaumcraft.common.tiles.TileAlembic;
import thaumcraft.common.tiles.TileArcaneBore;
import thaumcraft.common.tiles.TileCentrifuge;
@@ -79,7 +78,7 @@ public class TTCommonProxy {
if(ConfigHandler.enableEasymodeResearch)
TickRegistry.registerTickHandler(new EasymodeResearchHandler(), Side.SERVER);
-
+
if(ConfigHandler.enableKami) {
MinecraftForge.EVENT_BUS.register(new DimensionalShardDropHandler());
MinecraftForge.EVENT_BUS.register(new SoulHeartHandler());
@@ -108,7 +107,7 @@ public class TTCommonProxy {
public boolean isClient() {
return false;
}
-
+
public void shadowSparkle(World world, float x, float y, float z, int size) {
// NO-OP
}
diff --git a/MODSRC/vazkii/tinkerer/common/item/ModItems.java b/MODSRC/vazkii/tinkerer/common/item/ModItems.java
index 25d80436..f827f2c1 100644
--- a/MODSRC/vazkii/tinkerer/common/item/ModItems.java
+++ b/MODSRC/vazkii/tinkerer/common/item/ModItems.java
@@ -135,7 +135,7 @@ public final class ModItems {
infusedInkwell = new ItemInfusedInkwell(LibItemIDs.idInfusedInkwell).setUnlocalizedName(LibItemNames.INFUSED_INKWELL);
focusDeflect = new ItemFocusDeflect(LibItemIDs.idFocusDeflect).setUnlocalizedName(LibItemNames.FOCUS_DEFLECT);
shareBook = new ItemShareBook(LibItemIDs.idShareBook).setUnlocalizedName(LibItemNames.SHARE_BOOK);
-
+
if(ConfigHandler.enableKami) {
toolMatIchor = EnumHelper.addToolMaterial("ICHOR", 4, -1, 10F, 5F, 25);
diff --git a/MODSRC/vazkii/tinkerer/common/item/foci/ItemModFocus.java b/MODSRC/vazkii/tinkerer/common/item/foci/ItemModFocus.java
index fcacaf7d..9f7091ff 100644
--- a/MODSRC/vazkii/tinkerer/common/item/foci/ItemModFocus.java
+++ b/MODSRC/vazkii/tinkerer/common/item/foci/ItemModFocus.java
@@ -75,7 +75,7 @@ public abstract class ItemModFocus extends ItemMod implements IWandFocus {
addVisCostTooltip(cost, stack, player, list, par4);
}
}
-
+
protected void addVisCostTooltip(AspectList cost, ItemStack stack, EntityPlayer player, List list, boolean par4) {
for(Aspect aspect : cost.getAspectsSorted()) {
float amount = cost.getAmount(aspect) / 100.0F;
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/ItemBlockTalisman.java b/MODSRC/vazkii/tinkerer/common/item/kami/ItemBlockTalisman.java
index 691cedc2..15dc1316 100644
--- a/MODSRC/vazkii/tinkerer/common/item/kami/ItemBlockTalisman.java
+++ b/MODSRC/vazkii/tinkerer/common/item/kami/ItemBlockTalisman.java
@@ -71,7 +71,7 @@ public class ItemBlockTalisman extends ItemMod {
if(!set) {
int bid = getBlockID(par1ItemStack);
int bmeta = getBlockMeta(par1ItemStack);
-
+
TileEntity tile = par3World.getBlockTileEntity(par4, par5, par6);
if(tile != null && tile instanceof IInventory) {
IInventory inv = (IInventory) tile;
@@ -107,7 +107,7 @@ public class ItemBlockTalisman extends ItemMod {
}
}
}
-
+
par2EntityPlayer.setCurrentItemOrArmor(0, par1ItemStack);
return set;
@@ -115,11 +115,11 @@ public class ItemBlockTalisman extends ItemMod {
@Override
public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5) {
- int id = getBlockID(par1ItemStack);
+ int id = getBlockID(par1ItemStack);
if(/*!par2World.isRemote && */par1ItemStack.getItemDamage() == 1 && id != 0 && par3Entity instanceof EntityPlayer) {
EntityPlayer player = (EntityPlayer) par3Entity;
int meta = getBlockMeta(par1ItemStack);
-
+
int highest = -1;
boolean hasFreeSlot = false;
int[] counts = new int[player.inventory.getSizeInventory() - player.inventory.armorInventory.length];
@@ -139,7 +139,7 @@ public class ItemBlockTalisman extends ItemMod {
else highest = counts[i] > counts[highest] && highest > 8 ? i : highest;
}
}
-
+
if(highest == -1) {
ItemStack heldItem = player.inventory.getItemStack();
if(hasFreeSlot && (heldItem == null || heldItem.itemID != id || heldItem.getItemDamage() != meta)) {
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/ItemBlockWarpGate.java b/MODSRC/vazkii/tinkerer/common/item/kami/ItemBlockWarpGate.java
index a54baa16..72082353 100644
--- a/MODSRC/vazkii/tinkerer/common/item/kami/ItemBlockWarpGate.java
+++ b/MODSRC/vazkii/tinkerer/common/item/kami/ItemBlockWarpGate.java
@@ -1,15 +1,15 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 4:39:07 PM (GMT)]
*/
package vazkii.tinkerer.common.item.kami;
@@ -24,7 +24,7 @@ public class ItemBlockWarpGate extends ItemBlock {
public ItemBlockWarpGate(int par1) {
super(par1);
}
-
+
@Override
public EnumRarity getRarity(ItemStack par1ItemStack) {
return TTClientProxy.kamiRarity;
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/ItemPlacementMirror.java b/MODSRC/vazkii/tinkerer/common/item/kami/ItemPlacementMirror.java
index 83d6ce91..3a12d16f 100644
--- a/MODSRC/vazkii/tinkerer/common/item/kami/ItemPlacementMirror.java
+++ b/MODSRC/vazkii/tinkerer/common/item/kami/ItemPlacementMirror.java
@@ -3,8 +3,6 @@ package vazkii.tinkerer.common.item.kami;
import java.util.ArrayList;
import java.util.List;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
@@ -24,33 +22,35 @@ import vazkii.tinkerer.common.core.helper.ItemNBTHelper;
import vazkii.tinkerer.common.item.ItemMod;
import vazkii.tinkerer.common.item.ModItems;
import vazkii.tinkerer.common.item.kami.tool.ToolHandler;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
public class ItemPlacementMirror extends ItemMod {
private static final String TAG_BLOCK_ID = "blockID";
private static final String TAG_BLOCK_META = "blockMeta";
private static final String TAG_SIZE = "size";
-
+
Icon[] icons = new Icon[2];
-
+
public ItemPlacementMirror(int par1) {
super(par1);
setMaxStackSize(1);
}
-
+
@Override
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) {
int id = par3World.getBlockId(par4, par5, par6);
int meta = par3World.getBlockMetadata(par4, par5, par6);
-
+
if(par2EntityPlayer.isSneaking()) {
if(Block.blocksList[id] != null && Block.blocksList[id].getRenderType() == 0)
setBlock(par1ItemStack, id, meta);
} else placeAllBlocks(par1ItemStack, par2EntityPlayer);
-
+
return true;
}
-
+
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
if(par3EntityPlayer.isSneaking()) {
@@ -60,27 +60,27 @@ public class ItemPlacementMirror extends ItemMod {
ToolModeHUDHandler.setTooltip(newSize + " x " + newSize);
par2World.playSoundAtEntity(par3EntityPlayer, "random.orb", 0.3F, 0.1F);
}
-
+
return par1ItemStack;
}
-
+
public void placeAllBlocks(ItemStack stack, EntityPlayer player) {
ChunkCoordinates[] blocksToPlace = getBlocksToPlace(stack, player);
if(!hasBlocks(stack, player, blocksToPlace))
return;
-
+
ItemStack stackToPlace = new ItemStack(getBlockID(stack), 1, getBlockMeta(stack));
for(ChunkCoordinates coords : blocksToPlace)
placeBlockAndConsume(player, stackToPlace, coords);
player.worldObj.playSoundAtEntity(player, "thaumcraft:wand", 1F, 1F);
}
-
+
private void placeBlockAndConsume(EntityPlayer player, ItemStack blockToPlace, ChunkCoordinates coords) {
player.worldObj.setBlock(coords.posX, coords.posY, coords.posZ, blockToPlace.itemID, blockToPlace.getItemDamage(), 1 | 2);
-
+
if(player.capabilities.isCreativeMode)
return;
-
+
List talismansToCheck = new ArrayList();
for(int i = 0; i < player.inventory.getSizeInventory(); i++) {
ItemStack stackInSlot = player.inventory.getStackInSlot(i);
@@ -88,32 +88,32 @@ public class ItemPlacementMirror extends ItemMod {
stackInSlot.stackSize--;
if(stackInSlot.stackSize == 0)
player.inventory.setInventorySlotContents(i, null);
-
+
return;
}
-
+
if(stackInSlot != null && stackInSlot.itemID == ModItems.blockTalisman.itemID)
talismansToCheck.add(stackInSlot);
}
-
+
for(ItemStack talisman : talismansToCheck) {
int id = ItemBlockTalisman.getBlockID(talisman);
int meta = ItemBlockTalisman.getBlockMeta(talisman);
-
+
if(id == blockToPlace.itemID && meta == blockToPlace.getItemDamage()) {
ItemBlockTalisman.remove(talisman, 1);
return;
}
}
}
-
+
public static boolean hasBlocks(ItemStack stack, EntityPlayer player, ChunkCoordinates[] blocks) {
if(player.capabilities.isCreativeMode)
return true;
-
+
int required = blocks.length;
int current = 0;
-
+
ItemStack reqStack = new ItemStack(getBlockID(stack), 1, getBlockMeta(stack));
List talismansToCheck = new ArrayList();
for(int i = 0; i < player.inventory.getSizeInventory(); i++) {
@@ -126,22 +126,22 @@ public class ItemPlacementMirror extends ItemMod {
if(stackInSlot != null && stackInSlot.itemID == ModItems.blockTalisman.itemID)
talismansToCheck.add(stackInSlot);
}
-
+
for(ItemStack talisman : talismansToCheck) {
int id = ItemBlockTalisman.getBlockID(talisman);
int meta = ItemBlockTalisman.getBlockMeta(talisman);
-
+
if(id == reqStack.itemID && meta == reqStack.getItemDamage()) {
current += ItemBlockTalisman.getBlockCount(talisman);
-
+
if(current >= required)
return true;
}
}
-
+
return false;
}
-
+
public static ChunkCoordinates[] getBlocksToPlace(ItemStack stack, EntityPlayer player) {
List coords = new ArrayList();
MovingObjectPosition pos = ToolHandler.raytraceFromEntity(player.worldObj, player, true, 5);
@@ -149,24 +149,24 @@ public class ItemPlacementMirror extends ItemMod {
int id = player.worldObj.getBlockId(pos.blockX, pos.blockY, pos.blockZ);
if(Block.blocksList[id] != null && Block.blocksList[id].isBlockReplaceable(player.worldObj, pos.blockX, pos.blockY, pos.blockZ))
pos.blockY--;
-
+
ForgeDirection dir = ForgeDirection.getOrientation(pos.sideHit);
int rotation = MathHelper.floor_double(player.rotationYaw * 4F / 360F + 0.5D) & 3;
int range = (getSize(stack) ^ 1) / 2;
-
+
boolean topOrBottom = dir == ForgeDirection.UP || dir == ForgeDirection.DOWN;
-
- int xOff = !(dir == ForgeDirection.WEST || dir == ForgeDirection.EAST) ? topOrBottom ? (player.rotationPitch > 75 || (rotation & 1) == 0 ? range : 0) : range : 0;
- int yOff = topOrBottom ? (player.rotationPitch > 75 ? 0 : range) : range;
- int zOff = !(dir == ForgeDirection.SOUTH || dir == ForgeDirection.NORTH) ? topOrBottom ? (player.rotationPitch > 75 || (rotation & 1) == 1 ? range : 0) : range : 0;
-
+
+ int xOff = !(dir == ForgeDirection.WEST || dir == ForgeDirection.EAST) ? topOrBottom ? player.rotationPitch > 75 || (rotation & 1) == 0 ? range : 0 : range : 0;
+ int yOff = topOrBottom ? player.rotationPitch > 75 ? 0 : range : range;
+ int zOff = !(dir == ForgeDirection.SOUTH || dir == ForgeDirection.NORTH) ? topOrBottom ? player.rotationPitch > 75 || (rotation & 1) == 1 ? range : 0 : range : 0;
+
for(int x = -xOff; x < xOff + 1; x++)
for(int y = 0; y < yOff * 2 + 1; y++) {
for(int z = -zOff; z < zOff + 1; z++) {
int xp = pos.blockX + x + dir.offsetX;
int yp = pos.blockY + y + dir.offsetY;
int zp = pos.blockZ + z + dir.offsetZ;
-
+
int id1 = player.worldObj.getBlockId(xp, yp, zp);
if(Block.blocksList[id1] == null || Block.blocksList[id1].isAirBlock(player.worldObj, xp, yp, zp) || Block.blocksList[id1].isBlockReplaceable(player.worldObj, xp, yp, zp))
coords.add(new ChunkCoordinates(xp, yp,zp));
@@ -174,15 +174,15 @@ public class ItemPlacementMirror extends ItemMod {
}
}
-
+
return coords.toArray(new ChunkCoordinates[0]);
}
-
+
private void setBlock(ItemStack stack, int id, int meta) {
ItemNBTHelper.setInt(stack, TAG_BLOCK_ID, id);
ItemNBTHelper.setInt(stack, TAG_BLOCK_META, meta);
}
-
+
private static void setSize(ItemStack stack, int size) {
ItemNBTHelper.setInt(stack, TAG_SIZE, size | 1);
}
@@ -190,7 +190,7 @@ public class ItemPlacementMirror extends ItemMod {
public static int getSize(ItemStack stack) {
return ItemNBTHelper.getInt(stack, TAG_SIZE, 3) | 1;
}
-
+
public static int getBlockID(ItemStack stack) {
return ItemNBTHelper.getInt(stack, TAG_BLOCK_ID, 0);
}
@@ -198,28 +198,28 @@ public class ItemPlacementMirror extends ItemMod {
public static int getBlockMeta(ItemStack stack) {
return ItemNBTHelper.getInt(stack, TAG_BLOCK_META, 0);
}
-
+
@Override
public void registerIcons(IconRegister par1IconRegister) {
icons[0] = IconHelper.forItem(par1IconRegister, this, 0);
icons[1] = IconHelper.forItem(par1IconRegister, this, 1);
}
-
+
@Override
public Icon getIconFromDamageForRenderPass(int par1, int par2) {
return icons[par2 & 1];
}
-
+
@Override
public boolean requiresMultipleRenderPasses() {
return true;
}
-
+
@Override
public EnumRarity getRarity(ItemStack par1ItemStack) {
return TTClientProxy.kamiRarity;
}
-
+
@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/ItemProtoclay.java b/MODSRC/vazkii/tinkerer/common/item/kami/ItemProtoclay.java
index f591697e..3286cc21 100644
--- a/MODSRC/vazkii/tinkerer/common/item/kami/ItemProtoclay.java
+++ b/MODSRC/vazkii/tinkerer/common/item/kami/ItemProtoclay.java
@@ -1,15 +1,15 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 9, 2014, 10:01:41 PM (GMT)]
*/
package vazkii.tinkerer.common.item.kami;
@@ -38,7 +38,7 @@ public class ItemProtoclay extends ItemMod {
public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5) {
if(!(par3Entity instanceof EntityPlayer))
return;
-
+
EntityPlayer player = (EntityPlayer) par3Entity;
ItemStack currentStack = player.getCurrentEquippedItem();
if(currentStack == null || !(currentStack.getItem() instanceof IAdvancedTool))
@@ -47,14 +47,14 @@ public class ItemProtoclay extends ItemMod {
if(tool.getType().equals("sword"))
return;
-
+
MovingObjectPosition pos = ToolHandler.raytraceFromEntity(par2World, par3Entity, true, 4.5F);
String typeToFind = "";
if(player.isSwingInProgress && pos != null) {
int id = par2World.getBlockId(pos.blockX, pos.blockY, pos.blockZ);
Block block = Block.blocksList[id];
-
+
if(block != null) {
Material mat = block.blockMaterial;
if(ToolHandler.isRightMaterial(mat, ToolHandler.materialsPick))
@@ -63,9 +63,9 @@ public class ItemProtoclay extends ItemMod {
typeToFind = "shovel";
else if(ToolHandler.isRightMaterial(mat, ToolHandler.materialsAxe))
typeToFind = "axe";
- }
+ }
}
-
+
if(tool.getType().equals(typeToFind) || typeToFind.isEmpty())
return;
@@ -81,7 +81,7 @@ public class ItemProtoclay extends ItemMod {
}
}
}
-
+
@Override
public EnumRarity getRarity(ItemStack par1ItemStack) {
return TTClientProxy.kamiRarity;
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/ItemSkyPearl.java b/MODSRC/vazkii/tinkerer/common/item/kami/ItemSkyPearl.java
index d22fa362..1441af21 100644
--- a/MODSRC/vazkii/tinkerer/common/item/kami/ItemSkyPearl.java
+++ b/MODSRC/vazkii/tinkerer/common/item/kami/ItemSkyPearl.java
@@ -1,15 +1,15 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 5:26:45 PM (GMT)]
*/
package vazkii.tinkerer.common.item.kami;
@@ -32,7 +32,7 @@ import vazkii.tinkerer.common.core.helper.MiscHelper;
import vazkii.tinkerer.common.item.ItemMod;
public class ItemSkyPearl extends ItemMod {
-
+
public static final String TAG_X = "x";
public static final String TAG_Y = "y";
public static final String TAG_Z = "z";
@@ -53,14 +53,14 @@ public class ItemSkyPearl extends ItemMod {
return true;
}
-
+
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
if(par3EntityPlayer.isSneaking() && isAttuned(par1ItemStack)) {
par2World.playSoundAtEntity(par3EntityPlayer, "random.orb", 0.3F, 0.1F);
ItemNBTHelper.setInt(par1ItemStack, TAG_Y, -1);
}
-
+
return par1ItemStack;
}
@@ -68,7 +68,7 @@ public class ItemSkyPearl extends ItemMod {
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
addInfo(par1ItemStack, par2EntityPlayer.dimension, Vector3.fromEntityCenter(par2EntityPlayer), par3List, false);
}
-
+
public static void addInfo(ItemStack stack, int dim, Vector3 pos, List list, boolean simpleMode) {
if(isAttuned(stack)) {
int x = getX(stack);
@@ -84,7 +84,7 @@ public class ItemSkyPearl extends ItemMod {
} else list.add(EnumChatFormatting.BLUE + StatCollector.translateToLocal("ttmisc.distance") + ": " + new BigDecimal(MiscHelper.pointDistanceSpace(x, simpleMode ? 0 : y, z, pos.x, simpleMode ? 0 : pos.y, pos.z)).setScale(2, RoundingMode.UP).toString() + "m");
}
}
-
+
@Override
public boolean hasEffect(ItemStack par1ItemStack) {
return isAttuned(par1ItemStack);
@@ -128,7 +128,7 @@ public class ItemSkyPearl extends ItemMod {
return ItemNBTHelper.getInt(stack, TAG_DIM, 0);
}
-
+
@Override
public EnumRarity getRarity(ItemStack par1ItemStack) {
return TTClientProxy.kamiRarity;
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemGemLegs.java b/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemGemLegs.java
index 05974b80..47a294fa 100644
--- a/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemGemLegs.java
+++ b/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemGemLegs.java
@@ -24,9 +24,6 @@ import net.minecraft.world.World;
import net.minecraftforge.event.EventPriority;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.event.entity.living.LivingHurtEvent;
-
-import org.lwjgl.util.vector.Vector2f;
-
import thaumcraft.client.codechicken.core.vec.Vector3;
import vazkii.tinkerer.client.core.handler.kami.ToolModeHUDHandler;
import vazkii.tinkerer.common.item.ItemBrightNitor;
@@ -45,15 +42,15 @@ public class ItemGemLegs extends ItemIchorclothArmorAdv {
int dmg = par1ItemStack.getItemDamage();
par1ItemStack.setItemDamage(~dmg & 1);
par2World.playSoundAtEntity(par3EntityPlayer, "random.orb", 0.3F, 0.1F);
-
+
ToolModeHUDHandler.setTooltip(StatCollector.translateToLocal("ttmisc.light" + par1ItemStack.getItemDamage()));
-
+
return par1ItemStack;
}
return super.onItemRightClick(par1ItemStack, par2World, par3EntityPlayer);
}
-
+
@Override
boolean ticks() {
return true;
@@ -64,7 +61,7 @@ public class ItemGemLegs extends ItemIchorclothArmorAdv {
ItemStack armor = player.getCurrentArmor(1);
if(armor.getItemDamage() == 1)
return;
-
+
ItemBrightNitor.meta = 1;
ModItems.brightNitor.onUpdate(null, player.worldObj, player, 0, false);
ItemBrightNitor.meta = 0;
@@ -96,7 +93,7 @@ public class ItemGemLegs extends ItemIchorclothArmorAdv {
}
}
}
-
+
@Override
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
if(stack.getItemDamage() == 1)
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemIchorclothArmor.java b/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemIchorclothArmor.java
index 0b83670c..28330d43 100644
--- a/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemIchorclothArmor.java
+++ b/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemIchorclothArmor.java
@@ -87,7 +87,7 @@ public class ItemIchorclothArmor extends ItemArmor implements IVisDiscounter, IS
}
@Override
- public void damageArmor(EntityLivingBase entity, ItemStack stack, DamageSource source, int damage, int slot) {
+ public void damageArmor(EntityLivingBase entity, ItemStack stack, DamageSource source, int damage, int slot) {
// NO-OP
}
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusRecall.java b/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusRecall.java
index 7d31327a..9500c8a2 100644
--- a/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusRecall.java
+++ b/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusRecall.java
@@ -1,15 +1,15 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 9:20:05 PM (GMT)]
*/
package vazkii.tinkerer.common.item.kami.foci;
@@ -18,7 +18,6 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ChunkCoordinates;
import net.minecraft.world.World;
-import scala.annotation.meta.param;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.common.items.wands.ItemWandCasting;
@@ -29,28 +28,28 @@ import vazkii.tinkerer.common.item.kami.ItemSkyPearl;
public class ItemFocusRecall extends ItemModFocus {
AspectList cost = new AspectList().add(Aspect.AIR, 4000).add(Aspect.EARTH, 4000).add(Aspect.ORDER, 4000);
-
+
public ItemFocusRecall(int par1) {
super(par1);
}
-
+
@Override
protected boolean hasDepth() {
return true;
}
-
+
@Override
public boolean isUseItem() {
return true;
}
-
+
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
ItemWandCasting wand = (ItemWandCasting) par1ItemStack.getItem();
return wand.consumeAllVis(par1ItemStack, par3EntityPlayer, cost, false) ? super.onItemRightClick(par1ItemStack, par2World, par3EntityPlayer) : par1ItemStack;
}
-
+
@Override
public void onUsingFocusTick(ItemStack paramItemStack, EntityPlayer paramEntityPlayer, int paramInt) {
ItemWandCasting wand = (ItemWandCasting) paramItemStack.getItem();
@@ -64,7 +63,7 @@ public class ItemFocusRecall extends ItemModFocus {
break;
}
}
-
+
if(stackToCount != null) {
int dim = ItemSkyPearl.getDim(stackToCount);
if(dim == paramEntityPlayer.dimension) {
@@ -76,7 +75,7 @@ public class ItemFocusRecall extends ItemModFocus {
wand.consumeAllVis(paramItemStack, paramEntityPlayer, getVisCost(), true);
}
}
-
+
paramEntityPlayer.clearItemInUse();
}
}
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusShadowbeam.java b/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusShadowbeam.java
index 30d12fb4..1bf43032 100644
--- a/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusShadowbeam.java
+++ b/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusShadowbeam.java
@@ -26,7 +26,7 @@ import cpw.mods.fml.common.registry.EntityRegistry;
public class ItemFocusShadowbeam extends ItemModFocus {
AspectList cost = new AspectList().add(Aspect.ORDER, 25).add(Aspect.ENTROPY, 25).add(Aspect.AIR, 15);
-
+
public ItemFocusShadowbeam(int par1) {
super(par1);
@@ -36,13 +36,13 @@ public class ItemFocusShadowbeam extends ItemModFocus {
@Override
public void onUsingFocusTick(ItemStack stack, EntityPlayer player, int count) {
ItemWandCasting wand = (ItemWandCasting) stack.getItem();
-
+
if(!player.worldObj.isRemote && wand.consumeAllVis(stack, player, getVisCost(), true)) {
int potency = EnchantmentHelper.getEnchantmentLevel(Config.enchPotency.effectId, wand.getFocusItem(stack));
-
+
if(player.worldObj.rand.nextInt(10) == 0)
player.worldObj.playSoundAtEntity(player, "thaumcraft:brain", 0.5F, 1F);
-
+
Beam beam = new Beam(player.worldObj, player, potency);
beam.updateUntilDead();
}
@@ -52,7 +52,7 @@ public class ItemFocusShadowbeam extends ItemModFocus {
public boolean isVisCostPerTick() {
return true;
}
-
+
@Override
protected boolean hasOrnament() {
return true;
@@ -67,12 +67,12 @@ public class ItemFocusShadowbeam extends ItemModFocus {
public AspectList getVisCost() {
return cost;
}
-
+
@Override
public EnumRarity getRarity(ItemStack par1ItemStack) {
return TTClientProxy.kamiRarity;
}
-
+
public static class Particle extends FXSparkle {
public Particle(World world, double d, double d1, double d2, float f, int type, int m) {
@@ -87,9 +87,9 @@ public class ItemFocusShadowbeam extends ItemModFocus {
setDead();
}
}
-
+
public static class Beam extends EntityThrowable {
-
+
int potency;
Vector3 movementVector;
final int maxTicks = 300;
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusXPDrain.java b/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusXPDrain.java
index 785d2aff..537595f4 100644
--- a/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusXPDrain.java
+++ b/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusXPDrain.java
@@ -1,7 +1,6 @@
package vazkii.tinkerer.common.item.kami.foci;
import java.awt.Color;
-import java.util.ArrayList;
import java.util.List;
import net.minecraft.enchantment.EnchantmentHelper;
@@ -23,49 +22,49 @@ public class ItemFocusXPDrain extends ItemModFocus {
AspectList cost = new AspectList();
private int lastGiven = 0;
-
+
public ItemFocusXPDrain(int par1) {
super(par1);
}
-
+
@Override
public boolean isVisCostPerTick() {
return true;
}
-
+
@Override
public void onUsingFocusTick(ItemStack paramItemStack, EntityPlayer paramEntityPlayer, int paramInt) {
if(paramEntityPlayer.worldObj.isRemote)
return;
-
+
ItemWandCasting wand = (ItemWandCasting) paramItemStack.getItem();
AspectList aspects = wand.getAllVis(paramItemStack);
-
+
Aspect aspectToAdd = null;
int takes = 0;
-
+
while(aspectToAdd == null) {
lastGiven = lastGiven == 5 ? 0 : lastGiven + 1;
Aspect aspect = Aspect.getPrimalAspects().get(lastGiven);
-
+
if(aspects.getAmount(aspect) < wand.getMaxVis(paramItemStack))
aspectToAdd = aspect;
-
+
++takes;
if(takes == 7)
return;
}
-
+
int xpUse = getXpUse(paramItemStack);
if(paramEntityPlayer.experienceTotal >= xpUse) {
ExperienceHelper.drainPlayerXP(paramEntityPlayer, xpUse);
wand.storeVis(paramItemStack, aspectToAdd, wand.getVis(paramItemStack, aspectToAdd) + 500);
}
}
-
-
+
+
@Override
public int getColorFromItemStack(ItemStack par1ItemStack, int par2) {
return getFocusColor();
@@ -74,13 +73,13 @@ public class ItemFocusXPDrain extends ItemModFocus {
@Override
public int getFocusColor() {
EntityPlayer player = ClientHelper.clientPlayer();
- return Color.HSBtoRGB((player.ticksExisted * 2 % 360) / 360F, 1F, 1F);
+ return Color.HSBtoRGB(player.ticksExisted * 2 % 360 / 360F, 1F, 1F);
}
-
+
int getXpUse(ItemStack stack) {
return 30 - EnchantmentHelper.getEnchantmentLevel(Config.enchFrugal.effectId, stack) * 3;
}
-
+
@Override
protected void addVisCostTooltip(AspectList cost, ItemStack stack, EntityPlayer player, List list, boolean par4) {
list.add(" " + EnumChatFormatting.GREEN + StatCollector.translateToLocal("ttmisc.experience") + EnumChatFormatting.WHITE + " x " + getXpUse(stack));
@@ -90,12 +89,12 @@ public class ItemFocusXPDrain extends ItemModFocus {
public AspectList getVisCost() {
return cost;
}
-
+
@Override
public EnumRarity getRarity(ItemStack par1ItemStack) {
return TTClientProxy.kamiRarity;
}
-
+
@Override
public boolean acceptsEnchant(int paramInt) {
return paramInt == Config.enchFrugal.effectId;
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/tool/ToolHandler.java b/MODSRC/vazkii/tinkerer/common/item/kami/tool/ToolHandler.java
index 1d592af6..ad484a1b 100644
--- a/MODSRC/vazkii/tinkerer/common/item/kami/tool/ToolHandler.java
+++ b/MODSRC/vazkii/tinkerer/common/item/kami/tool/ToolHandler.java
@@ -21,7 +21,6 @@ import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItem;
-import net.minecraft.entity.item.EntityXPOrb;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
diff --git a/MODSRC/vazkii/tinkerer/common/lib/LibResearch.java b/MODSRC/vazkii/tinkerer/common/lib/LibResearch.java
index a57a55aa..90ce050f 100644
--- a/MODSRC/vazkii/tinkerer/common/lib/LibResearch.java
+++ b/MODSRC/vazkii/tinkerer/common/lib/LibResearch.java
@@ -62,7 +62,7 @@ public final class LibResearch {
public static final String KEY_ASPECT_ANALYZER = "ASPECT_ANALYZER";
public static final String KEY_PLATFORM = "PLATFORM";
public static final String KEY_SHARE_TOME = "SHARE_TOME";
-
+
public static final String KEY_DIMENSION_SHARDS = "DIMENSION_SHARDS";
public static final String KEY_ICHOR = "ICHOR";
public static final String KEY_ICHOR_CLOTH = "ICHOR_CLOTH";
diff --git a/MODSRC/vazkii/tinkerer/common/network/GuiHandler.java b/MODSRC/vazkii/tinkerer/common/network/GuiHandler.java
index bf3a85e6..c58131c6 100644
--- a/MODSRC/vazkii/tinkerer/common/network/GuiHandler.java
+++ b/MODSRC/vazkii/tinkerer/common/network/GuiHandler.java
@@ -58,7 +58,7 @@ public class GuiHandler implements IGuiHandler {
case LibGuiIDs.GUI_ID_ICHOR_POUCH :
return new ContainerIchorPouch(player);
-
+
case LibGuiIDs.GUI_ID_WARP_GATE :
return new ContainerWarpGate((TileWarpGate) tile, player.inventory);
}
@@ -83,10 +83,10 @@ public class GuiHandler implements IGuiHandler {
case LibGuiIDs.GUI_ID_ICHOR_POUCH :
return new GuiIchorPouch(new ContainerIchorPouch(player));
-
+
case LibGuiIDs.GUI_ID_WARP_GATE :
return new GuiWarpGate((TileWarpGate) tile, player.inventory);
-
+
case LibGuiIDs.GUI_ID_WARP_GATE_DESTINATIONS :
return new GuiWarpGateDestinations((TileWarpGate) tile);
}
diff --git a/MODSRC/vazkii/tinkerer/common/network/packet/kami/PacketWarpGateButton.java b/MODSRC/vazkii/tinkerer/common/network/packet/kami/PacketWarpGateButton.java
index f8e1a755..8036a2db 100644
--- a/MODSRC/vazkii/tinkerer/common/network/packet/kami/PacketWarpGateButton.java
+++ b/MODSRC/vazkii/tinkerer/common/network/packet/kami/PacketWarpGateButton.java
@@ -1,15 +1,15 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 5:59:27 PM (GMT)]
*/
package vazkii.tinkerer.common.network.packet.kami;
@@ -21,7 +21,7 @@ public class PacketWarpGateButton extends PacketTile {
private static final long serialVersionUID = 1497188581985763661L;
boolean locked;
-
+
public PacketWarpGateButton(TileWarpGate tile) {
super(tile);
locked = tile.locked;
diff --git a/MODSRC/vazkii/tinkerer/common/network/packet/kami/PacketWarpGateTeleport.java b/MODSRC/vazkii/tinkerer/common/network/packet/kami/PacketWarpGateTeleport.java
index caa17c59..f9a84b7b 100644
--- a/MODSRC/vazkii/tinkerer/common/network/packet/kami/PacketWarpGateTeleport.java
+++ b/MODSRC/vazkii/tinkerer/common/network/packet/kami/PacketWarpGateTeleport.java
@@ -1,15 +1,15 @@
/**
* This class was created by . It's distributed as
* part of the ThaumicTinkerer Mod.
- *
+ *
* ThaumicTinkerer is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
- *
+ *
* ThaumicTinkerer is a Derivative Work on Thaumcraft 4.
* Thaumcraft 4 (c) Azanor 2012
* (http://www.minecraftforum.net/topic/1585216-)
- *
+ *
* File Created @ [Jan 10, 2014, 7:21:05 PM (GMT)]
*/
package vazkii.tinkerer.common.network.packet.kami;
@@ -20,8 +20,9 @@ import vazkii.tinkerer.common.network.packet.PacketTile;
public class PacketWarpGateTeleport extends PacketTile {
+ private static final long serialVersionUID = 2247241734524685744L;
int index;
-
+
public PacketWarpGateTeleport(TileWarpGate tile, int index) {
super(tile);
this.index = index;
diff --git a/MODSRC/vazkii/tinkerer/common/research/ModRecipes.java b/MODSRC/vazkii/tinkerer/common/research/ModRecipes.java
index 9d51d303..b3c7f860 100644
--- a/MODSRC/vazkii/tinkerer/common/research/ModRecipes.java
+++ b/MODSRC/vazkii/tinkerer/common/research/ModRecipes.java
@@ -78,7 +78,7 @@ public final class ModRecipes {
"QQQ", "QCQ", "QQQ",
'Q', new ItemStack(Item.dyePowder, 1, 0),
'C', new ItemStack(ModItems.infusedInkwell, 1, 32767));
-
+
if(ConfigHandler.enableSurvivalShareTome) {
registerResearchItem(LibResearch.KEY_SHARE_TOME, new ItemStack(ModItems.shareBook),
" S ", "PTP", " P ",
@@ -272,7 +272,7 @@ public final class ModRecipes {
new ItemStack(ModItems.kamiResource), new ItemStack(Item.expBottle), new ItemStack(Item.diamond), new ItemStack(ModItems.xpTalisman), new ItemStack(Block.enchantmentTable), new ItemStack(ModItems.kamiResource));
registerResearchItemI(LibResearch.KEY_PROTOCLAY, new ItemStack(ModItems.protoclay), 4, new AspectList().add(Aspect.MINE, 16).add(Aspect.TOOL, 16), new ItemStack(Item.clay),
new ItemStack(Block.dirt), new ItemStack(Block.stone), new ItemStack(Block.wood), new ItemStack(ModItems.kamiResource, 1, 7));
-
+
if(Config.allowMirrors) {
registerResearchItemI(LibResearch.KEY_WARP_GATE, new ItemStack(ModBlocks.warpGate), 8, new AspectList().add(Aspect.TRAVEL, 64).add(Aspect.ELDRITCH, 50).add(Aspect.FLIGHT, 50), new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 2),
new ItemStack(ModItems.kamiResource), new ItemStack(ModItems.kamiResource, 1, 7), new ItemStack(ModBlocks.dislocator), new ItemStack(ModItems.kamiResource, 1, 6), new ItemStack(Item.diamond), new ItemStack(Item.feather));
@@ -312,7 +312,7 @@ public final class ModRecipes {
private static void registerResearchItemI(String name, Object output, int instability, AspectList aspects, ItemStack input, ItemStack... stuff) {
registerResearchItemI(name, name, output, instability, aspects, input, stuff);
}
-
+
private static void registerResearchItemI(String name, String research, Object output, int instability, AspectList aspects, ItemStack input, ItemStack... stuff) {
InfusionRecipe recipe = ThaumcraftApi.addInfusionCraftingRecipe(research, output, instability, aspects, input, stuff);
ConfigResearch.recipes.put(name, recipe);
diff --git a/MODSRC/vazkii/tinkerer/common/research/ModResearch.java b/MODSRC/vazkii/tinkerer/common/research/ModResearch.java
index eea9a6f8..97ea7ad7 100644
--- a/MODSRC/vazkii/tinkerer/common/research/ModResearch.java
+++ b/MODSRC/vazkii/tinkerer/common/research/ModResearch.java
@@ -51,7 +51,7 @@ public final class ModResearch {
if(ConfigHandler.enableSurvivalShareTome)
research.setPages(new ResearchPage("0"), recipePage(LibResearch.KEY_SHARE_TOME));
else research.setPages(new ResearchPage("0"));
-
+
research = new TTResearchItem(LibResearch.KEY_INTERFACE, LibResearch.CATEGORY_ARTIFICE, new AspectList().add(Aspect.ENTROPY, 4).add(Aspect.ORDER, 4), 3, -3, 1, new ItemStack(ModBlocks.interfase)).setParents("ARCANESTONE").registerResearchItem();
research.setPages(new ResearchPage("0"), arcaneRecipePage(LibResearch.KEY_INTERFACE), new ResearchPage("1"), arcaneRecipePage(LibResearch.KEY_CONNECTOR), new ResearchPage("2"));
@@ -143,7 +143,7 @@ public final class ModResearch {
research = new TTResearchItem(LibResearch.KEY_PLATFORM, LibResearch.CATEGORY_ARTIFICE, new AspectList().add(Aspect.SENSES, 2).add(Aspect.TREE, 1).add(Aspect.MOTION, 1), -2, -1, 3, new ItemStack(ModBlocks.platform)).setConcealed().setParents("LEVITATOR").registerResearchItem();
research.setPages(new ResearchPage("0"), arcaneRecipePage(LibResearch.KEY_PLATFORM));
-
+
// Peripheral documentation research
if(Loader.isModLoaded("ComputerCraft")) {
research = new TTResearchItem(LibResearch.KEY_PERIPHERALS, LibResearch.CATEGORY_BASICS, new AspectList(), 0, 2, 0, new ItemStack(Item.redstone)).setAutoUnlock().setRound().registerResearchItem();
@@ -222,23 +222,23 @@ public final class ModResearch {
research = new KamiResearchItem(LibResearch.KEY_BLOCK_TALISMAN, LibResearch.CATEGORY_ARTIFICE, new AspectList().add(Aspect.VOID, 2).add(Aspect.DARKNESS, 1).add(Aspect.ELDRITCH, 1).add(Aspect.MAGIC, 1), 11, 14, 5, new ItemStack(ModItems.blockTalisman)).setHidden().setParents(LibResearch.KEY_ICHOR_PICK_GEM, LibResearch.KEY_ICHOR_SHOVEL_GEM).registerResearchItem();
research.setPages(new ResearchPage("0"), infusionPage(LibResearch.KEY_BLOCK_TALISMAN));
-
+
research = new KamiResearchItem(LibResearch.KEY_PLACEMENT_MIRROR, LibResearch.CATEGORY_ARTIFICE, new AspectList().add(Aspect.CRAFT, 2).add(Aspect.CRYSTAL, 1).add(Aspect.ELDRITCH, 1).add(Aspect.MIND, 1), 14, 13, 5, new ItemStack(ModItems.placementMirror)).setHidden().setParents(LibResearch.KEY_BLOCK_TALISMAN).registerResearchItem();
research.setPages(new ResearchPage("0"), infusionPage(LibResearch.KEY_PLACEMENT_MIRROR));
-
+
research = new KamiResearchItem(LibResearch.KEY_FOCUS_SHADOWBEAM, LibResearch.CATEGORY_ARTIFICE, new AspectList().add(Aspect.DARKNESS, 2).add(Aspect.MAGIC, 1).add(Aspect.ELDRITCH, 1).add(Aspect.TAINT, 1), 7, 0, 5, new ItemStack(ModItems.focusShadowbeam)).setHidden().setParents(LibResearch.KEY_ICHORCLOTH_ROD).registerResearchItem();
research.setPages(new ResearchPage("0"), infusionPage(LibResearch.KEY_FOCUS_SHADOWBEAM));
-
+
research = new KamiResearchItem(LibResearch.KEY_FOCUS_XP_DRAIN, LibResearch.CATEGORY_ARTIFICE, new AspectList().add(Aspect.MIND, 2).add(Aspect.MAGIC, 1).add(Aspect.AURA, 1).add(Aspect.MAN, 1), 9, 0, 5, new ItemStack(ModItems.focusXPDrain)).setHidden().setParents(LibResearch.KEY_ICHORCLOTH_ROD).registerResearchItem();
research.setPages(new ResearchPage("0"), infusionPage(LibResearch.KEY_FOCUS_XP_DRAIN));
-
+
research = new KamiResearchItem(LibResearch.KEY_PROTOCLAY, LibResearch.CATEGORY_ARTIFICE, new AspectList().add(Aspect.TOOL, 2).add(Aspect.MINE, 1).add(Aspect.MAN, 1).add(Aspect.MECHANISM, 1), 9, 14, 5, new ItemStack(ModItems.protoclay)).setHidden().setParents(LibResearch.KEY_ICHOR_PICK_GEM).setParentsHidden(LibResearch.KEY_ICHOR_SHOVEL_GEM).registerResearchItem();
research.setPages(new ResearchPage("0"), infusionPage(LibResearch.KEY_PROTOCLAY));
-
+
if(Config.allowMirrors) {
research = new KamiResearchItem(LibResearch.KEY_WARP_GATE, LibResearch.CATEGORY_ARTIFICE, new AspectList().add(Aspect.TRAVEL, 2).add(Aspect.ELDRITCH, 1).add(Aspect.FLIGHT, 1).add(Aspect.MECHANISM, 1), 16, 3, 5, new ItemStack(ModBlocks.warpGate)).setHidden().setParents(LibResearch.KEY_ICHORCLOTH_CHEST_GEM).setParentsHidden(LibResearch.KEY_ICHORCLOTH_BOOTS_GEM).registerResearchItem();
research.setPages(new ResearchPage("0"), infusionPage(LibResearch.KEY_WARP_GATE), new ResearchPage("1"), infusionPage(LibResearch.KEY_SKY_PEARL));
-
+
research = new KamiResearchItem(LibResearch.KEY_FOCUS_RECALL, LibResearch.CATEGORY_ARTIFICE, new AspectList().add(Aspect.TRAVEL, 2).add(Aspect.ELDRITCH, 1).add(Aspect.FLIGHT, 1).add(Aspect.MAGIC, 1), 17, 5, 5, new ItemStack(ModItems.focusRecall)).setHidden().setParents(LibResearch.KEY_WARP_GATE).setParentsHidden(LibResearch.KEY_ICHORCLOTH_ROD).registerResearchItem();
research.setPages(new ResearchPage("0"), infusionPage(LibResearch.KEY_FOCUS_RECALL));
}