Package me.bimmr.bimmcore.messages
Class Title
- java.lang.Object
-
- me.bimmr.bimmcore.utils.timed.TimedObject
-
- me.bimmr.bimmcore.messages.MessageDisplay
-
- me.bimmr.bimmcore.messages.Title
-
public class Title extends MessageDisplay
A utilities class to create a title
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTitle.TitleAPIThe type Title api.
-
Field Summary
-
Fields inherited from class me.bimmr.bimmcore.messages.MessageDisplay
text, time
-
Fields inherited from class me.bimmr.bimmcore.utils.timed.TimedObject
timedEvent
-
-
Constructor Summary
Constructors Constructor Description Title(java.lang.String title)Create a titleTitle(java.lang.String title, int show)Create a titleTitle(java.lang.String title, int show, TimedEvent timedEvent)Create a titleTitle(java.lang.String title, java.lang.String subTitle)Create a titleTitle(java.lang.String title, java.lang.String subTitle, int show)Create a titleTitle(java.lang.String title, java.lang.String subTitle, int animationTime, int show)Create a titleTitle(java.lang.String title, java.lang.String subTitle, int fadeIn, int show, int fadeOut)Create a titleTitle(java.lang.String title, java.lang.String subTitle, int fadeIn, int show, int fadeOut, TimedEvent timedEvent)Create a titleTitle(java.lang.String title, java.lang.String subTitle, int animationTime, int show, TimedEvent timedEvent)Create a titleTitle(java.lang.String title, java.lang.String subTitle, int show, TimedEvent timedEvent)Create a titleTitle(java.lang.String title, java.lang.String subTitle, TimedEvent timedEvent)Create a titleTitle(java.lang.String title, TimedEvent timedEvent)Create a title
-
Method Summary
Modifier and Type Method Description voidclear(org.bukkit.entity.Player player)Clear the title off the player's screenintgetFadeIn()Get the FadeIn timeintgetFadeOut()Get the FadeOut timejava.lang.StringgetSubTitle()Get the SubTitle textjava.lang.StringgetText()Get the Title textintgetTime()Get the Show timeTimedEventgetTimedEvent()Get the TimedEventvoidsend(org.bukkit.entity.Player player)Send the Title to the playervoidsetFadeIn(int fadeIn)Set the FadeIn timevoidsetFadeOut(int fadeOut)Set the FadeOut timevoidsetSubTitle(java.lang.String text)Set the SubTitle textvoidsetText(java.lang.String text)Set the Title textvoidsetTimedEvent(TimedEvent timedEvent)Set the TimedEventvoidstop(org.bukkit.entity.Player player)Stop sending the title to the player-
Methods inherited from class me.bimmr.bimmcore.utils.timed.TimedObject
isTaskRunning, onTaskRun, setTimedEvent, setTimedEvent, setTimedEvent, startTask, stopTask
-
-
-
-
Constructor Detail
-
Title
public Title(java.lang.String title)
Create a title- Parameters:
title- the title
-
Title
public Title(java.lang.String title, int show)Create a title- Parameters:
title- the titleshow- the show
-
Title
public Title(java.lang.String title, java.lang.String subTitle)Create a title- Parameters:
title- the titlesubTitle- the sub title
-
Title
public Title(java.lang.String title, java.lang.String subTitle, int show)Create a title- Parameters:
title- the titlesubTitle- the sub titleshow- the show
-
Title
public Title(java.lang.String title, java.lang.String subTitle, int animationTime, int show)Create a title- Parameters:
title- the titlesubTitle- the sub titleanimationTime- the animation timeshow- the show
-
Title
public Title(java.lang.String title, java.lang.String subTitle, int fadeIn, int show, int fadeOut)Create a title- Parameters:
title- the titlesubTitle- the sub titlefadeIn- the fade inshow- the showfadeOut- the fade out
-
Title
public Title(java.lang.String title, TimedEvent timedEvent)Create a title- Parameters:
title- the titletimedEvent- the timed event
-
Title
public Title(java.lang.String title, int show, TimedEvent timedEvent)Create a title- Parameters:
title- the titleshow- the showtimedEvent- the timed event
-
Title
public Title(java.lang.String title, java.lang.String subTitle, TimedEvent timedEvent)Create a title- Parameters:
title- the titlesubTitle- the sub titletimedEvent- the timed event
-
Title
public Title(java.lang.String title, java.lang.String subTitle, int show, TimedEvent timedEvent)Create a title- Parameters:
title- the titlesubTitle- the sub titleshow- the showtimedEvent- the timed event
-
Title
public Title(java.lang.String title, java.lang.String subTitle, int animationTime, int show, TimedEvent timedEvent)Create a title- Parameters:
title- the titlesubTitle- the sub titleanimationTime- the animation timeshow- the showtimedEvent- the timed event
-
Title
public Title(java.lang.String title, java.lang.String subTitle, int fadeIn, int show, int fadeOut, TimedEvent timedEvent)Create a title- Parameters:
title- the titlesubTitle- the sub titlefadeIn- the fade inshow- the showfadeOut- the fade outtimedEvent- the timed event
-
-
Method Detail
-
getSubTitle
public java.lang.String getSubTitle()
Get the SubTitle text- Returns:
- sub title
-
setSubTitle
public void setSubTitle(java.lang.String text)
Set the SubTitle text- Parameters:
text- the text
-
getText
public java.lang.String getText()
Get the Title text- Specified by:
getTextin classMessageDisplay- Returns:
- the text
-
setText
public void setText(java.lang.String text)
Set the Title text- Specified by:
setTextin classMessageDisplay- Parameters:
text- the text
-
getFadeIn
public int getFadeIn()
Get the FadeIn time- Returns:
- fade in
-
setFadeIn
public void setFadeIn(int fadeIn)
Set the FadeIn time- Parameters:
fadeIn- the fade in
-
getFadeOut
public int getFadeOut()
Get the FadeOut time- Returns:
- fade out
-
setFadeOut
public void setFadeOut(int fadeOut)
Set the FadeOut time- Parameters:
fadeOut- the fade out
-
getTime
public int getTime()
Get the Show time- Specified by:
getTimein classMessageDisplay- Returns:
- the time
-
send
public void send(org.bukkit.entity.Player player)
Send the Title to the player- Specified by:
sendin classMessageDisplay- Parameters:
player- the player
-
stop
public void stop(org.bukkit.entity.Player player)
Stop sending the title to the player- Specified by:
stopin classMessageDisplay- Parameters:
player- the player
-
getTimedEvent
public TimedEvent getTimedEvent()
Get the TimedEvent- Overrides:
getTimedEventin classTimedObject- Returns:
- timed event
-
setTimedEvent
public void setTimedEvent(TimedEvent timedEvent)
Set the TimedEvent- Overrides:
setTimedEventin classTimedObject- Parameters:
timedEvent- the timed event
-
clear
public void clear(org.bukkit.entity.Player player)
Clear the title off the player's screen- Parameters:
player- the player
-
-