mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 22:34:21 +00:00
Make a start on the boiler.
It's currently causing odd issues with the heat simulator and has various issues such as balance not existing yet. Also improve the specification of a load of the multiblock generics to reduce needless casting.
This commit is contained in:
1 parent
ccf7a37b22
commit
385a1d29f6
25 files changed
+1236
-38
No files matched your search
@@ -20,7 +20,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
|
||||
public abstract class TileEntityMultiblock<T> extends TileEntityContainerBlock implements IMultiblock<T>
|
||||
public abstract class TileEntityMultiblock<T extends SynchronizedData<T>> extends TileEntityContainerBlock implements IMultiblock<T>
|
||||
{
|
||||
/** The tank data for this structure. */
|
||||
public T structure;
|
||||
@@ -138,7 +138,7 @@ public abstract class TileEntityMultiblock<T> extends TileEntityContainerBlock i
|
||||
{
|
||||
for(Coord4D obj : getSynchronizedData().locations)
|
||||
{
|
||||
TileEntityDynamicTank tileEntity = (TileEntityDynamicTank)obj.getTileEntity(worldObj);
|
||||
TileEntityMultiblock<T> tileEntity = (TileEntityMultiblock<T>)obj.getTileEntity(worldObj);
|
||||
|
||||
if(tileEntity != null && tileEntity.isRendering)
|
||||
{
|
||||
@@ -244,8 +244,8 @@ public abstract class TileEntityMultiblock<T> extends TileEntityContainerBlock i
|
||||
}
|
||||
|
||||
@Override
|
||||
public SynchronizedData<T> getSynchronizedData()
|
||||
public T getSynchronizedData()
|
||||
{
|
||||
return (SynchronizedData<T>)structure;
|
||||
return structure;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user