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 class
Title.TitleAPI
The 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 void
clear(org.bukkit.entity.Player player)
Clear the title off the player's screenint
getFadeIn()
Get the FadeIn timeint
getFadeOut()
Get the FadeOut timejava.lang.String
getSubTitle()
Get the SubTitle textjava.lang.String
getText()
Get the Title textint
getTime()
Get the Show timeTimedEvent
getTimedEvent()
Get the TimedEventvoid
send(org.bukkit.entity.Player player)
Send the Title to the playervoid
setFadeIn(int fadeIn)
Set the FadeIn timevoid
setFadeOut(int fadeOut)
Set the FadeOut timevoid
setSubTitle(java.lang.String text)
Set the SubTitle textvoid
setText(java.lang.String text)
Set the Title textvoid
setTimedEvent(TimedEvent timedEvent)
Set the TimedEventvoid
stop(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:
getText
in classMessageDisplay
- Returns:
- the text
-
setText
public void setText(java.lang.String text)
Set the Title text- Specified by:
setText
in 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:
getTime
in classMessageDisplay
- Returns:
- the time
-
send
public void send(org.bukkit.entity.Player player)
Send the Title to the player- Specified by:
send
in classMessageDisplay
- Parameters:
player
- the player
-
stop
public void stop(org.bukkit.entity.Player player)
Stop sending the title to the player- Specified by:
stop
in classMessageDisplay
- Parameters:
player
- the player
-
getTimedEvent
public TimedEvent getTimedEvent()
Get the TimedEvent- Overrides:
getTimedEvent
in classTimedObject
- Returns:
- timed event
-
setTimedEvent
public void setTimedEvent(TimedEvent timedEvent)
Set the TimedEvent- Overrides:
setTimedEvent
in 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
-
-