Package pneumaticCraft.common.block.tubes

Examples of pneumaticCraft.common.block.tubes.TubeModule.upgrade()


                    }
                } else if(player.getCurrentEquippedItem().getItem() == Itemss.advancedPCB) {
                    TubeModule module = BlockPressureTube.getLookedModule(world, x, y, z, player);
                    if(module != null && !module.isUpgraded() && module.canUpgrade()) {
                        if(!world.isRemote) {
                            module.upgrade();
                            if(!player.capabilities.isCreativeMode) player.getCurrentEquippedItem().stackSize--;
                        }
                        return true;
                    }
                }
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.