use of mods.railcraft.api.tracks.ITrackKitInstance in project Railcraft by Railcraft.
the class TileFluidLoader method setPowered.
@Override
protected void setPowered(boolean p) {
if (isManualMode())
p = false;
if (p) {
resetPipe();
if (worldObj != null) {
TileEntity tile = worldObj.getTileEntity(getPos().down(2));
if (tile instanceof TileTrackOutfitted) {
TileTrackOutfitted trackTile = (TileTrackOutfitted) tile;
ITrackKitInstance track = trackTile.getTrackKitInstance();
if (track instanceof ITrackKitLockdown)
((ITrackKitLockdown) track).releaseCart();
}
}
}
super.setPowered(p);
}
use of mods.railcraft.api.tracks.ITrackKitInstance in project Railcraft by Railcraft.
the class TrackTileFactory method initTrackTile.
public static void initTrackTile(TileTrackOutfitted tile, TrackType trackType, TrackKit trackKit) {
ITrackKitInstance trackInstance = trackKit.createInstance();
tile.setTrackType(trackType);
tile.setTrackKitInstance(trackInstance);
trackInstance.setTile(tile);
}
Aggregations