Examples of canUpgrade()


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

                        world.playSoundEffect(x + 0.5, y + 0.5, z + 0.5, Block.soundTypeGlass.getStepResourcePath(), Block.soundTypeGlass.getVolume() * 5.0F, Block.soundTypeGlass.getPitch() * .9F);
                        return true;
                    }
                } 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.