@Override public Title clear() { if ( clear == null ) { clear = createPacket( Action.CLEAR ); } title = null; // No need to send title if we clear it after that again return this; }
@Override public Title reset() { if ( reset == null ) { reset = createPacket( Action.RESET ); } // No need to send these packets if we reset them later title = null; subtitle = null; times = null; return this; }
@Override public Title stay(int ticks) { if ( times == null ) { times = createPacket( Action.TIMES ); } times.setStay( ticks ); return this; }
@Override public Title fadeOut(int ticks) { if ( times == null ) { times = createPacket( Action.TIMES ); } times.setFadeOut( ticks ); return this; }
@Override public Title fadeIn(int ticks) { if ( times == null ) { times = createPacket( Action.TIMES ); } times.setFadeIn( ticks ); return this; }
@Override public Title subTitle(BaseComponent text) { if ( subtitle == null ) { subtitle = createPacket( Action.SUBTITLE ); } subtitle.setText( ComponentSerializer.toString( text ) ); return this; }
@Override public Title title(BaseComponent text) { if ( title == null ) { title = createPacket( Action.TITLE ); } title.setText( ComponentSerializer.toString( text ) ); return this; }
@Override public Title title(BaseComponent... text) { if ( title == null ) { title = createPacket( Action.TITLE ); } title.setText( ComponentSerializer.toString( text ) ); return this; }
@Override public Title subTitle(BaseComponent... text) { if ( subtitle == null ) { subtitle = createPacket( Action.SUBTITLE ); } subtitle.setText( ComponentSerializer.toString( text ) ); return this; }
@Override public Title clear() { if ( clear == null ) { clear = createPacket( Action.CLEAR ); } title = null; // No need to send title if we clear it after that again return this; }
@Override public Title reset() { if ( reset == null ) { reset = createPacket( Action.RESET ); } // No need to send these packets if we reset them later title = null; subtitle = null; times = null; return this; }
@Override public Title stay(int ticks) { if ( times == null ) { times = createPacket( Action.TIMES ); } times.setStay( ticks ); return this; }
@Override public Title fadeOut(int ticks) { if ( times == null ) { times = createPacket( Action.TIMES ); } times.setFadeOut( ticks ); return this; }
@Override public Title fadeIn(int ticks) { if ( times == null ) { times = createPacket( Action.TIMES ); } times.setFadeIn( ticks ); return this; }
@Override public Title subTitle(BaseComponent... text) { if ( subtitle == null ) { subtitle = createPacket( Action.SUBTITLE ); } subtitle.setText( ComponentSerializer.toString( text ) ); return this; }
@Override public Title title(BaseComponent text) { if ( title == null ) { title = createPacket( Action.TITLE ); } title.setText( ComponentSerializer.toString( text ) ); return this; }
@Override public Title title(BaseComponent... text) { if ( title == null ) { title = createPacket( Action.TITLE ); } title.setText( ComponentSerializer.toString( text ) ); return this; }
@Override public Title subTitle(BaseComponent text) { if ( subtitle == null ) { subtitle = createPacket( Action.SUBTITLE ); } subtitle.setText( ComponentSerializer.toString( text ) ); return this; }