Fixed ore dic, and some work on multi blocks
This commit is contained in:
parent
446f94770d
commit
c6d9f302c3
7 changed files with 16 additions and 426 deletions
|
@ -1,23 +1,16 @@
|
|||
package techreborn.tiles;
|
||||
|
||||
import codechicken.multipart.MultiPartRegistry;
|
||||
import erogenousbeef.coreTR.multiblock.MultiblockRegistry;
|
||||
import erogenousbeef.coreTR.multiblock.MultiblockWorldRegistry;
|
||||
import techreborn.multiblocks.MultiBlockCasing;
|
||||
import erogenousbeef.coreTR.multiblock.MultiblockControllerBase;
|
||||
import erogenousbeef.coreTR.multiblock.MultiblockValidationException;
|
||||
import erogenousbeef.coreTR.multiblock.rectangular.RectangularMultiblockTileEntityBase;
|
||||
import techreborn.multiblocks.MultiblockImplosionCompressor;
|
||||
|
||||
public class TileMachineCasing extends RectangularMultiblockTileEntityBase {
|
||||
|
||||
int ticks;
|
||||
boolean isStarShape = false;
|
||||
|
||||
@Override
|
||||
public boolean canUpdate()
|
||||
{
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -35,20 +28,12 @@ public class TileMachineCasing extends RectangularMultiblockTileEntityBase {
|
|||
@Override
|
||||
public MultiblockControllerBase createNewMultiblock()
|
||||
{
|
||||
if(isStarShape)
|
||||
{
|
||||
return new MultiblockImplosionCompressor(worldObj);
|
||||
}
|
||||
return new MultiBlockCasing(worldObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends MultiblockControllerBase> getMultiblockControllerType()
|
||||
{
|
||||
if(isStarShape)
|
||||
{
|
||||
return MultiblockImplosionCompressor.class;
|
||||
}
|
||||
return MultiBlockCasing.class;
|
||||
}
|
||||
|
||||
|
@ -87,16 +72,4 @@ public class TileMachineCasing extends RectangularMultiblockTileEntityBase {
|
|||
return (MultiBlockCasing) super.getMultiblockController();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
super.updateEntity();
|
||||
if(getMultiblockController() == null || !getMultiblockController().isAssembled()){
|
||||
ticks ++;
|
||||
if(ticks == 20){
|
||||
isStarShape = !isStarShape;
|
||||
ticks = 0;
|
||||
//TODO recalculate multiblock
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue