Package mods.railcraft.common.blocks.tracks

Examples of mods.railcraft.common.blocks.tracks.TileTrack


        if (!sbb.isVecInside(xx, yy, zz))
            return;

//        System.out.println("coordBaseMode = " + coordBaseMode);

        TileTrack tile = TrackTools.placeTrack(track.getTrackSpec(), world, xx, yy, zz, meta);
        boolean r = false;
        switch (this.coordBaseMode) {
            case 0: // checked
            case 1: // checked
                r = false;
                break;
            case 2: // checked
            case 3:
                r = true;
                break;
        }
        ((ITrackReversable) tile.getTrackInstance()).setReversed(r != reversed);
    }
View Full Code Here


        if (p) {
            resetPipe();
            if (worldObj != null) {
                TileEntity tile = worldObj.getTileEntity(xCoord, yCoord - 2, zCoord);
                if (tile instanceof TileTrack) {
                    TileTrack trackTile = (TileTrack) tile;
                    ITrackInstance track = trackTile.getTrackInstance();
                    if (track instanceof ITrackLockdown) {
                        ((ITrackLockdown) track).releaseCart();
                    }
                }
            }
View Full Code Here

TOP

Related Classes of mods.railcraft.common.blocks.tracks.TileTrack

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.