CelebratePrankSoundInstance

@Environment(value = EnvType.CLIENT)
public final class CelebratePrankSoundInstance extends EntityTrackingSoundInstance(source)

Sound instance for the SoundEvents.celebratePrank sound event. This implements the equals method so it can be used to play it once at a time per entity.

Parameters

entity

The entity this sound instance tracks (the entity pranking another one)

Constructors

Properties

Link copied to clipboard
private final Entity entity

Inherited properties

Link copied to clipboard
Link copied to clipboard
protected final SoundCategory category
Link copied to clipboard
private final Boolean done
Link copied to clipboard
protected final Identifier id
Link copied to clipboard
protected final Float pitch
Link copied to clipboard
protected final Random random
Link copied to clipboard
protected final Boolean relative
Link copied to clipboard
protected final Boolean repeat
Link copied to clipboard
protected final Integer repeatDelay
Link copied to clipboard
protected final Sound sound
Link copied to clipboard
protected final Float volume
Link copied to clipboard
protected final Double x
Link copied to clipboard
protected final Double y
Link copied to clipboard
protected final Double z

Functions

Link copied to clipboard
public final Entity getEntity()

Inherited functions

Link copied to clipboard
public Boolean canPlay()
Link copied to clipboard
Link copied to clipboard
public Identifier getId()
Link copied to clipboard
public Float getPitch()
Link copied to clipboard
Link copied to clipboard
public Sound getSound()
Link copied to clipboard
Link copied to clipboard
public Float getVolume()
Link copied to clipboard
public Double getX()
Link copied to clipboard
public Double getY()
Link copied to clipboard
public Double getZ()
Link copied to clipboard
public Boolean isDone()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected final Unit setDone()
Link copied to clipboard
Link copied to clipboard
public Unit tick()