This was to complicated, going to make it simpler

This commit is contained in:
Modmuss50 2015-04-17 20:00:30 +01:00
parent 314a9637b7
commit bb58ae8632
12 changed files with 4 additions and 219 deletions

View file

@ -1,31 +0,0 @@
package techreborn.api.multiblock;
import net.minecraft.tileentity.TileEntity;
public abstract class BaseMultiBlock implements IMultiBlock {
boolean isComplete = false;
TileEntity parent;
public BaseMultiBlock() {
}
public void setParent(TileEntity parent) {
this.parent = parent;
}
@Override
public boolean isComplete() {
return isComplete;
}
@Override
public TileEntity getController() {
return parent;
}
public void setIsComplete(boolean isComplete) {
this.isComplete = isComplete;
}
}

View file

@ -1,40 +0,0 @@
package techreborn.api.multiblock;
import net.minecraft.tileentity.TileEntity;
import java.util.List;
public interface IMultiBlock {
/**
* This is the name of the multiblock
*/
String getName();
/**
* This check to see if the multiblock is complete
*/
boolean checkIfComplete();
/**
* This check to see if the multiblock is complete
*/
boolean isComplete();
/**
* This is a list of all of the tiles that make up the multiblock
*/
List<TileEntity> getTiles();
/**
* This is the controller for the whole multiblock structure.
*
* This tile will store the nbt and do the logic for the whole system. Send block actions to this block.
*/
TileEntity getController();
/**
* Call this from the controller to allow to tile to update is completeness.
*/
void recompute();
}

View file

@ -1,7 +0,0 @@
package techreborn.api.multiblock;
public interface IMultiBlockController {
IMultiBlock getMultiBlock();
}

View file

@ -1,9 +0,0 @@
package techreborn.api.multiblock;
public interface IMultiblockComponent {
/**
* This gets the instance of the multiblock , allow for different meta data for different structures,
*/
Class getMultiblockType();
}

View file

@ -1,26 +0,0 @@
package techreborn.api.multiblock;
import net.minecraft.tileentity.TileEntity;
public class MultiBlockController extends TileEntity implements IMultiBlockController{
BaseMultiBlock multiBlock;
public MultiBlockController(BaseMultiBlock multiBlock) {
this.multiBlock = multiBlock;
}
@Override
public IMultiBlock getMultiBlock() {
return multiBlock;
}
public void setMultiBlock(TileEntity tileEntity, BaseMultiBlock multiBlock){
this.multiBlock = multiBlock;
}
public void setParent(TileEntity tileEntity){
multiBlock.setParent(tileEntity);
}
}

View file

@ -1,3 +0,0 @@
@API(apiVersion = "@MODVERSION@", owner = "techreborn", provides = "techrebornAPI") package techreborn.api.multiblock;
import cpw.mods.fml.common.API;