Applied-Energistics-2-tiler.../tile/grid/AENetworkInvTile.java

55 lines
1 KiB
Java
Raw Normal View History

package appeng.tile.grid;
import net.minecraftforge.common.ForgeDirection;
import appeng.api.networking.IGridHost;
import appeng.api.networking.IGridNode;
import appeng.me.helpers.AENetworkProxy;
import appeng.me.helpers.IGridProxyable;
import appeng.tile.AEBaseInvTile;
public abstract class AENetworkInvTile extends AEBaseInvTile implements IGridHost, IGridProxyable
{
2014-01-23 17:28:12 +01:00
protected AENetworkProxy gridProxy = new AENetworkProxy( this, "proxy", getItemFromTile( this ), true );
@Override
public IGridNode getGridNode(ForgeDirection dir)
{
return gridProxy.getNode();
}
@Override
public void onReady()
{
super.onReady();
gridProxy.onReady();
}
@Override
public void onChunkUnload()
{
super.onChunkUnload();
gridProxy.onChunkUnload();
}
@Override
public void validate()
{
super.validate();
gridProxy.validate();
}
@Override
public void invalidate()
{
super.invalidate();
gridProxy.invalidate();
}
@Override
public void gridChanged()
{
}
}