public class EntitySound<T extends net.minecraft.entity.Entity>
extends net.minecraft.client.audio.MovingSound
| Modifier and Type | Field and Description |
|---|---|
protected T |
entity |
protected java.util.function.Predicate<T> |
predicate |
| Constructor and Description |
|---|
EntitySound(T entity,
net.minecraft.util.SoundEvent soundEvent,
net.minecraft.util.SoundCategory soundCategory) |
EntitySound(T entity,
net.minecraft.util.SoundEvent soundEvent,
net.minecraft.util.SoundCategory soundCategory,
java.util.function.Predicate<T> predicate) |
| Modifier and Type | Method and Description |
|---|---|
void |
setFinished() |
void |
update() |
canRepeat, createAccessor, getAttenuationType, getCategory, getPitch, getRepeatDelay, getSound, getSoundLocation, getVolume, getXPosF, getYPosF, getZPosFprotected final T extends net.minecraft.entity.Entity entity
protected final java.util.function.Predicate<T extends net.minecraft.entity.Entity> predicate
public EntitySound(T entity, net.minecraft.util.SoundEvent soundEvent, net.minecraft.util.SoundCategory soundCategory, java.util.function.Predicate<T> predicate)
public EntitySound(T entity, net.minecraft.util.SoundEvent soundEvent, net.minecraft.util.SoundCategory soundCategory)