Merge pull request #3 from atrain99/master

I just cleaned up a few things. No biggie.
This commit is contained in:
DarkGuardsman 2012-07-23 12:57:51 -07:00
commit bb6b51d255
3 changed files with 8 additions and 6 deletions

View file

@ -11,8 +11,9 @@ import net.minecraft.src.eui.boiler.TileEntityBoiler;
import net.minecraft.src.eui.burner.TileEntityFireBox; import net.minecraft.src.eui.burner.TileEntityFireBox;
import net.minecraft.src.eui.turbine.TileEntityGenerator; import net.minecraft.src.eui.turbine.TileEntityGenerator;
import net.minecraft.src.universalelectricity.Vector3; import net.minecraft.src.universalelectricity.Vector3;
import net.minecraft.src.universalelectricity.extend.*;
public class BlockComp extends net.minecraft.src.universalelectricity.extend.BlockMachine { public class BlockComp extends BlockMachine {
public BlockComp(int par1) { public BlockComp(int par1) {
super("RobotMachine", par1, Material.iron); super("RobotMachine", par1, Material.iron);

View file

@ -16,10 +16,11 @@ public class EntityShoeBot extends EntityRobot {
public void botUpdate() public void botUpdate()
{ {
super.botUpdate(); super.botUpdate();
ModLoader.getMinecraftInstance().thePlayer.addChatMessage("CC"); EntityPlayer person = Modloader.getMinecraftInstance().thePlayer;
person.addChatMessage("CC");
if(hasTask) if(hasTask)
{ {
ModLoader.getMinecraftInstance().thePlayer.addChatMessage("resuming task"); person.addChatMessage("resuming task");
if(this.currentTask == this.getTaskType() && this.taskLocation != null) if(this.currentTask == this.getTaskType() && this.taskLocation != null)
{ {
boolean harDone = harvest(this.taskLocation); boolean harDone = harvest(this.taskLocation);
@ -50,7 +51,7 @@ public class EntityShoeBot extends EntityRobot {
public String getRenderedName() { public String getRenderedName() {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return "BlockEater"; return "Harvester Bot";
} }
public String getTaskType() { public String getTaskType() {
return "harvest"; return "harvest";

View file

@ -37,9 +37,9 @@ public class mod_automation extends NetworkMod {
ModLoader.registerBlock(machine, net.minecraft.src.eui.robotics.ItemMachine.class); ModLoader.registerBlock(machine, net.minecraft.src.eui.robotics.ItemMachine.class);
//names................................................ //names................................................
ModLoader.addName((new ItemStack(spawnItem, 1, 0)), "Bot"); ModLoader.addName((new ItemStack(spawnItem, 1, 0)), "Bot");
ModLoader.addName((new ItemStack(machine, 1, 0)), "Controler"); ModLoader.addName((new ItemStack(machine, 1, 0)), "Controller");
//TileEntities.................................. //TileEntities..................................
ModLoader.registerTileEntity(net.minecraft.src.eui.robotics.TileEntityComp.class, "controler"); ModLoader.registerTileEntity(net.minecraft.src.eui.robotics.TileEntityComp.class, "controller");
//Entities................... //Entities...................
ModLoader.registerEntityID(net.minecraft.src.eui.robotics.EntityShoeBot.class, "Bot", 101);//collector ModLoader.registerEntityID(net.minecraft.src.eui.robotics.EntityShoeBot.class, "Bot", 101);//collector