69 lines
1.9 KiB
Markdown
69 lines
1.9 KiB
Markdown
# IScriptPlayer.stopSound
|
|
|
|
[← IScriptPlayer](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 6/11 · [önceki](stopSound-5.md) · [sonraki](stopSound-7.md)
|
|
|
|
// Assuming that c.getSubject() is a player
|
|
var player = c.getSubject();
|
|
var morph = mappet.createMorph('{Name:"blockbuster.fred",Skin:"' + player.getSkin() + '",Pose:"dabbing"}');
|
|
|
|
player.setMorph(morph);
|
|
|
|
|
|
Returns:
|
|
Resource location in format of "minecraft:skins/..." (which can be used in morphs)
|
|
|
|
sendTitleDurations
|
|
|
|
void sendTitleDurations(int fadeIn,
|
|
int idle,
|
|
int fadeOut)
|
|
|
|
Send title and subtitle durations (in ticks, 20 ticks = 1 second). These must be sent before sending title or
|
|
subtitle.
|
|
|
|
BEWARE: these durations will stay the same until player logs out, so you may want to change them before
|
|
every time you send title and subtitle.
|
|
|
|
Default values are: fadeIn = 10 ticks, idle = 70 ticks, fadeOut = 20 ticks.
|
|
|
|
var player = c.getSubject();
|
|
|
|
player.sendTitleDurations(5, 10, 5);
|
|
player.sendTitle("Quick!");
|
|
player.sendSubtitle("Get into cover!");
|
|
|
|
|
|
Parameters:
|
|
fadeIn - How many ticks it will take for title and subtitle to appear.
|
|
idle - For how many ticks will title and subtitle stay after fading in.
|
|
fadeOut - How many ticks it will take for title and subtitle to disappear after idling.
|
|
|
|
sendTitle
|
|
|
|
void sendTitle(java.lang.String title)
|
|
|
|
Send the title to this player that will be displayed in the middle of the screen.
|
|
|
|
c.getSubject().sendTitle("Hello, world!");
|
|
|
|
|
|
sendSubtitle
|
|
|
|
|
|
|
|
void sendSubtitle(java.lang.String title)
|
|
|
|
Send the subtitle to this player that will be displayed in the middle of the screen. Title must be sent as
|
|
well, using sendTitle(String), in order for subtitle to appear.
|
|
|
|
c.getSubject().sendTitle("Hello,");
|
|
c.getSubject().sendSubtitle("world!");
|
|
|
|
|
|
sendActionBar
|
|
|
|
void sendActionBar(java.lang.String title)
|
|
|