001/*
002 * Trident - A Multithreaded Server Alternative
003 * Copyright 2014 The TridentSDK Team
004 *
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 *    http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package net.tridentsdk.title;
018
019/**
020 * Represents a title's transition.
021 *
022 * @author The TridentSDK Team
023 */
024public class TitleTransition {
025    /**
026     * Time of fade in
027     */
028    private int fadeIn;
029
030    /**
031     * Time of the title showing
032     */
033    private int time;
034
035    /**
036     * Time of fade out
037     */
038    private int fadeOut;
039
040    /**
041     * Creates a title transition object
042     *
043     * @param fadeIn the fade in time
044     * @param time the time of the title
045     * @param fadeOut the fade out time
046     */
047    public TitleTransition(int fadeIn, int time, int fadeOut){
048        this.fadeIn = fadeIn;
049        this.time = time;
050        this.fadeOut = fadeOut;
051    }
052
053    /**
054     * Gets the fade in time of the transition
055     *
056     * @return the fade in time
057     */
058    public int getFadeInTime(){
059        return this.fadeIn;
060    }
061
062    /**
063     * Gets the title time of the transition
064     *
065     * @return the title time
066     */
067    public int getTitleTime(){
068        return this.time;
069    }
070
071    /**
072     * Gets the fade out time of the transition
073     *
074     * @return the fade out time
075     */
076    public int getFadeOutTime(){
077        return this.fadeOut;
078    }
079}