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 * A player entity or something that can receive titles.
021 *
022 * @author The TridentSDK Team
023 */
024public interface TitleReceiver {
025    /**
026     * Sends a regular title
027     *
028     * @param title the title message
029     */
030    void sendTitle(String title);
031
032    /**
033     * Sends a title with a subtitle
034     *
035     * @param title the title message
036     * @param subtitle the subtitle message
037     */
038    void sendTitle(String title, String subtitle);
039
040    /**
041     * Sends a regular time with a transition
042     *
043     * @param title the title message
044     * @param transition the transition object for the title
045     */
046    void sendTitle(String title, TitleTransition transition);
047
048    /**
049     * Sends a title with a subtitle and a transition
050     *
051     * @param title the title message
052     * @param subtitle the subtitle message
053     * @param transition the transition object for the title
054     */
055    void sendTitle(String title, String subtitle, TitleTransition transition);
056}