Examples of HoverEvent


Examples of net.md_5.bungee.api.chat.HoverEvent

            {
                if ( server.canAccess( player ) )
                {
                    TextComponent serverTextComponent = new TextComponent( first ? server.getName() : ", " + server.getName() );
                    int count = server.getPlayers().size();
                    serverTextComponent.setHoverEvent( new HoverEvent( HoverEvent.Action.SHOW_TEXT,
                            new ComponentBuilder( count + ( count == 1 ? " player" : " players" ) + "\n" )
                            .append( "Click to connect to the server" ).italic( true )
                            .create() ) );
                    serverTextComponent.setClickEvent( new ClickEvent( ClickEvent.Action.RUN_COMMAND, "/server " + server.getName() ) );
                    serverList.addExtra( serverTextComponent );
View Full Code Here

Examples of net.md_5.bungee.api.chat.HoverEvent

                if ( sender instanceof ProxiedPlayer )
                {
                    sender.sendMessage(
                            new ComponentBuilder( "An error occurred while parsing your message. (Hover for details)" ).
                            color( ChatColor.RED ).underlined( true ).
                            event( new HoverEvent( HoverEvent.Action.SHOW_TEXT, new ComponentBuilder( error.getMessage() ).color( ChatColor.RED ).create() ) ).
                            create() );
                } else
                {
                    sender.sendMessage( new ComponentBuilder( "An error occurred while parsing your message: " ).color( ChatColor.RED ).append( error.getMessage() ).create() );
                }
View Full Code Here

Examples of net.md_5.bungee.api.chat.HoverEvent

                res = new BaseComponent[]
                {
                    context.<BaseComponent>deserialize( event.get( "value" ), BaseComponent.class )
                };
            }
            component.setHoverEvent( new HoverEvent( HoverEvent.Action.valueOf( event.get( "action" ).getAsString().toUpperCase() ), res ) );
        }
    }
View Full Code Here

Examples of org.jdesktop.wonderland.client.scenemanager.event.HoverEvent

               
                // If there is a currently hovering entity, then send a stop
                // event
                MouseEvent mouseEvent = (MouseEvent) ((MouseEvent3D) event).getAwtEvent();
                if (hoverEntity != null) {
                    inputManager.postEvent(new HoverEvent(hoverEntity, false, mouseEvent));
                    hoverEntity = null;
                }
               
                // Update the hover start time. This will cause any remaining
                // timer tasks that may have been run to ignore themselves
View Full Code Here

Examples of org.jdesktop.wonderland.client.scenemanager.event.HoverEvent

                // If there is a currently hovering entity, then send a stop
                // event
                MouseEvent mouseEvent = (MouseEvent) ((HoverEvent) event).getMouseEvent();
                if (hoverEntity != null) {
                    inputManager.postEvent(new HoverEvent(hoverEntity, false, mouseEvent));
                    hoverEntity = null;
                }

                // Update the hover start time. This will cause any remaining
                // timer tasks that may have been run to ignore themselves
View Full Code Here

Examples of org.jdesktop.wonderland.client.scenemanager.event.HoverEvent

            // and check to see if the time this task was started is the same
            // time the Selection Manager thinks the hover task should be.
            synchronized(SceneManager.this) {
                if (thisStartTime == hoverStartTime) {
                    hoverEntity = lastEventEntity;
                    HoverEvent ev = new HoverEvent(lastEventEntity, true, mouseEvent);
                    InputManager.inputManager().postEvent(ev);
                    hoverTimer = null;
                }
            }
        }
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.