Examples of TitleMessage


Examples of net.glowstone.net.message.play.game.TitleMessage

        TitleMessage.Action action = TitleMessage.Action.getAction(actionId);
        switch (action) {
            case TITLE:
            case SUBTITLE:
                String text = ByteBufUtils.readUTF8(buffer);
                return new TitleMessage(action, text);
            case TIMES:
                int fadeIn = buffer.readInt();
                int stay = buffer.readInt();
                int fadeOut = buffer.readInt();
                return new TitleMessage(action, fadeIn, stay, fadeOut);
            default:
                return new TitleMessage(action);
        }
    }
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.