Change from init() to start()
This commit is contained in:
parent
6b444dc5b7
commit
3a20055199
8 changed files with 16 additions and 42 deletions
|
@ -1,12 +1,6 @@
|
|||
package resonantinduction.atomic.machine.fulmination;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import resonantinduction.core.Reference;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import resonant.lib.content.prefab.java.TileElectric;
|
||||
|
||||
/** Fulmination TileEntity */
|
||||
|
@ -23,9 +17,9 @@ public class TileFulmination extends TileElectric
|
|||
}
|
||||
|
||||
@Override
|
||||
public void initiate()
|
||||
public void start()
|
||||
{
|
||||
super.initiate();
|
||||
super.start();
|
||||
FulminationHandler.INSTANCE.register(this);
|
||||
}
|
||||
|
||||
|
@ -41,6 +35,6 @@ public class TileFulmination extends TileElectric
|
|||
public void invalidate()
|
||||
{
|
||||
FulminationHandler.INSTANCE.unregister(this);
|
||||
super.initiate();
|
||||
super.start();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,9 +102,9 @@ class TileTankNode(material: Material) extends TileAdvanced(material) with INode
|
|||
override def getTankInfo(from: ForgeDirection): Array[FluidTankInfo] = tankNode.getTankInfo(from)
|
||||
|
||||
|
||||
override def initiate()
|
||||
override def start()
|
||||
{
|
||||
super.initiate()
|
||||
super.start()
|
||||
tankNode.reconstruct()
|
||||
}
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@ class TileMotor extends TileElectric(Material.iron) with IRotatable {
|
|||
return ((gearRatio + 1) % 3).asInstanceOf[Byte]
|
||||
}
|
||||
|
||||
override def initiate {
|
||||
super.initiate
|
||||
override def start {
|
||||
super.start
|
||||
if (mech_node != null) mech_node.reconstruct
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ package resonantinduction.electrical.tesla;
|
|||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Comparator;
|
||||
import java.util.EnumSet;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.PriorityQueue;
|
||||
|
@ -15,16 +14,13 @@ import cpw.mods.fml.common.network.ByteBufUtils;
|
|||
import io.netty.buffer.ByteBuf;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ChatComponentText;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import resonant.lib.multiblock.reference.IMultiBlockStructure;
|
||||
|
@ -32,19 +28,15 @@ import resonant.lib.multiblock.reference.MultiBlockHandler;
|
|||
import resonant.lib.network.discriminator.PacketTile;
|
||||
import resonant.lib.network.discriminator.PacketType;
|
||||
import resonant.lib.network.handle.IPacketReceiver;
|
||||
import resonant.lib.prefab.damage.ElectricalDamage;
|
||||
import resonant.lib.render.EnumColor;
|
||||
import resonant.lib.utility.LanguageUtility;
|
||||
import resonant.lib.utility.LinkUtility;
|
||||
import resonant.lib.utility.WrenchUtility;
|
||||
import resonantinduction.core.Reference;
|
||||
import resonantinduction.core.ResonantInduction;
|
||||
import resonantinduction.core.Settings;
|
||||
import resonantinduction.core.prefab.part.MultipartUtility;
|
||||
import resonantinduction.electrical.Electrical;
|
||||
import universalelectricity.core.transform.vector.Vector3;
|
||||
|
||||
import com.google.common.io.ByteArrayDataInput;
|
||||
import resonant.lib.content.prefab.java.TileElectric;
|
||||
import universalelectricity.core.transform.vector.VectorWorld;
|
||||
|
||||
|
@ -104,9 +96,9 @@ public class TileTesla extends TileElectric implements IMultiBlockStructure<Tile
|
|||
}
|
||||
|
||||
@Override
|
||||
public void initiate()
|
||||
public void start()
|
||||
{
|
||||
super.initiate();
|
||||
super.start();
|
||||
TeslaGrid.instance().register(this);
|
||||
}
|
||||
|
||||
|
|
|
@ -41,12 +41,6 @@ public abstract class TileMechanical extends TileNode implements INodeProvider,
|
|||
/** External debug GUI */
|
||||
DebugFrameMechanical frame = null;
|
||||
|
||||
@Deprecated
|
||||
public TileMechanical()
|
||||
{
|
||||
this(null);
|
||||
}
|
||||
|
||||
public TileMechanical(Material material)
|
||||
{
|
||||
super(material);
|
||||
|
|
|
@ -55,10 +55,10 @@ public class TilePump extends TileMechanical implements IRotatable, IFluidHandle
|
|||
}
|
||||
|
||||
@Override
|
||||
public void initiate()
|
||||
public void start()
|
||||
{
|
||||
pressureNode.reconstruct();
|
||||
super.initiate();
|
||||
super.start();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -23,12 +23,8 @@ import universalelectricity.core.transform.vector.Vector3;
|
|||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
public class TileMechanicalPiston extends TileMechanical implements IRotatable
|
||||
public class TileMechanicalPiston extends TileMechanical
|
||||
{
|
||||
@Config(comment = "Outdated, not used anymore. use mechanicalPistonMultiplier as its based on block hardness now")
|
||||
@Deprecated
|
||||
private static int mechanicalPistonBreakCount = 5;
|
||||
|
||||
@Config
|
||||
private static int mechanicalPistonMultiplier = 2;
|
||||
|
||||
|
@ -40,6 +36,7 @@ public class TileMechanicalPiston extends TileMechanical implements IRotatable
|
|||
|
||||
mechanicalNode = new MechanicalNode(this)
|
||||
{
|
||||
public void onUpdate() { super.onUpdate(); System.out.println("MechPistonTick");}
|
||||
@Override
|
||||
protected void revolve()
|
||||
{
|
||||
|
@ -57,7 +54,7 @@ public class TileMechanicalPiston extends TileMechanical implements IRotatable
|
|||
isOpaqueCube(false);
|
||||
normalRender(false);
|
||||
customItemRender(true);
|
||||
//rotationMask = Byte.parseByte("111111", 2);
|
||||
rotationMask_$eq(Byte.parseByte("111111", 2));
|
||||
setTextureName("material_steel_dark");
|
||||
}
|
||||
|
||||
|
|
|
@ -25,11 +25,8 @@ import resonant.lib.render.RenderItemOverlayUtility;
|
|||
import resonant.lib.utility.LanguageUtility;
|
||||
import resonant.lib.utility.inventory.InternalInventoryHandler;
|
||||
import resonant.lib.utility.inventory.InventoryUtility;
|
||||
import resonantinduction.core.ResonantInduction;
|
||||
import universalelectricity.core.transform.vector.Vector3;
|
||||
|
||||
import com.google.common.io.ByteArrayDataInput;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import resonant.lib.content.prefab.java.TileInventory;
|
||||
|
@ -76,9 +73,9 @@ public class TilePlacer extends TileInventory implements IRotatable, IPacketRece
|
|||
}
|
||||
|
||||
@Override
|
||||
public void initiate()
|
||||
public void start()
|
||||
{
|
||||
super.initiate();
|
||||
super.start();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue