Examples of ArmorMessage


Examples of pneumaticCraft.client.render.pneumaticArmor.ArmorMessage

        switch(button.id){
            case 10:
                mc.displayGuiScreen((GuiScreen)null);
                mc.setIngameFocus();
                coordHandler.isListeningToCoordTrackerSetting = true;
                HUDHandler.instance().addMessage(new ArmorMessage("Changing Coordinate Tracker coordinate...", Arrays.asList("Right-click the desired coordinate"), 90, 0x7000AA00));
                break;
            case 11:
                mc.displayGuiScreen((GuiScreen)null);
                mc.setIngameFocus();
                if(coordHandler.navigateToSurface(mc.thePlayer)) {
                    HUDHandler.instance().addMessage(new ArmorMessage("Successfully found a route to the surface!", new ArrayList<String>(), 90, 0x7000AA00));
                } else {
                    HUDHandler.instance().addMessage(new ArmorMessage("Unable to find a route to the surface!", new ArrayList<String>(), 90, 0x70FF0000));
                }

                break;
            case 12:
                coordHandler.pathEnabled = !coordHandler.pathEnabled;
View Full Code Here

Examples of pneumaticCraft.client.render.pneumaticArmor.ArmorMessage

    private void warnPlayerIfNecessary(LivingSetAttackTargetEvent event){
        EntityPlayer player = FMLClientHandler.instance().getClient().thePlayer;
        if(event.target == player && (event.entityLiving instanceof EntityGolem || event.entityLiving instanceof EntityMob)) {
            ItemStack helmetStack = player.getCurrentArmor(3);
            if(helmetStack != null && helmetStack.getItem() == Itemss.pneumaticHelmet && ((IPressurizable)helmetStack.getItem()).getPressure(helmetStack) > 0 && ItemPneumaticArmor.getUpgrades(ItemMachineUpgrade.UPGRADE_ENTITY_TRACKER, helmetStack) > 0) {
                HUDHandler.instance().addMessage(new ArmorMessage("A mob is targeting you!", new ArrayList<String>(), 60, 0x70FF0000));
            }
        }
    }
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.