Skip to content

Commit 5dd330e

Browse files
MrHell228Yeregorix
authored andcommitted
Add Viewer#playTotemOfUndyingEffect (#4196)
1 parent d15129e commit 5dd330e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/org/spongepowered/api/effect/Viewer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.spongepowered.api.effect.particle.ParticleEffect;
3232
import org.spongepowered.api.effect.sound.SoundType;
3333
import org.spongepowered.api.effect.sound.music.MusicDisc;
34+
import org.spongepowered.api.item.inventory.ItemStackLike;
3435
import org.spongepowered.api.world.World;
3536
import org.spongepowered.api.world.WorldType;
3637
import org.spongepowered.api.world.WorldTypes;
@@ -57,6 +58,13 @@ public interface Viewer extends Audience {
5758
*/
5859
void sendWorldType(WorldType worldType);
5960

61+
/**
62+
* Plays the totem of undying effect with the texture of the given item.
63+
*
64+
* @param stack The item to display
65+
*/
66+
void playTotemOfUndyingEffect(ItemStackLike stack);
67+
6068
/**
6169
* Spawn the given {@link ParticleEffect} at the given position.
6270
*

0 commit comments

Comments
 (0)