Package pneumaticCraft.common.tileentity

Examples of pneumaticCraft.common.tileentity.TileEntityPneumaticDoorBase.sendDescriptionPacket()


        if(te instanceof TileEntityPneumaticDoorBase) {
            TileEntityPneumaticDoorBase teDb = (TileEntityPneumaticDoorBase)te;
            int newMeta = (teDb.orientation.ordinal() + 1) % 6;
            if(newMeta == 0) newMeta = 2;
            teDb.orientation = ForgeDirection.getOrientation(newMeta);
            teDb.sendDescriptionPacket();
            return true;
        }
        return false;
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.