Class RestrictedStartingSound<T extends net.minecraft.world.entity.Entity>
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
net.frozenblock.lib.sound.api.RestrictedSoundInstance
net.frozenblock.lib.sound.api.instances.RestrictedStartingSound<T>
- All Implemented Interfaces:
net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance,net.minecraft.client.resources.sounds.SoundInstance,net.minecraft.client.resources.sounds.TickableSoundInstance
@Environment(CLIENT)
public class RestrictedStartingSound<T extends net.minecraft.world.entity.Entity>
extends RestrictedSoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.sounds.SoundInstance
net.minecraft.client.resources.sounds.SoundInstance.Attenuation -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Tbooleanfinal net.minecraft.client.resources.sounds.AbstractSoundInstancefinal SoundPredicate.LoopPredicate<T>final booleanFields inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance
attenuation, delay, location, looping, pitch, random, relative, sound, source, volume, x, y, zFields inherited from interface net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance
EMPTY_SOUND -
Constructor Summary
ConstructorsConstructorDescriptionRestrictedStartingSound(T entity, net.minecraft.sounds.SoundEvent startingSound, net.minecraft.sounds.SoundSource category, float volume, float pitch, SoundPredicate.LoopPredicate<T> predicate, boolean stopOnDeath, net.minecraft.client.resources.sounds.AbstractSoundInstance nextSound) -
Method Summary
Methods inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance
getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance
getAudioStreamMethods inherited from interface net.minecraft.client.resources.sounds.SoundInstance
getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve
-
Field Details
-
entity
-
predicate
-
stopOnDeath
public final boolean stopOnDeath -
hasSwitched
public boolean hasSwitched -
nextSound
public final net.minecraft.client.resources.sounds.AbstractSoundInstance nextSound
-
-
Constructor Details
-
RestrictedStartingSound
public RestrictedStartingSound(T entity, net.minecraft.sounds.SoundEvent startingSound, net.minecraft.sounds.SoundSource category, float volume, float pitch, SoundPredicate.LoopPredicate<T> predicate, boolean stopOnDeath, net.minecraft.client.resources.sounds.AbstractSoundInstance nextSound)
-
-
Method Details
-
startNextSound
public void startNextSound() -
canPlaySound
public boolean canPlaySound() -
canStartSilent
public boolean canStartSilent() -
isStopped
public boolean isStopped()- Specified by:
isStoppedin interfacenet.minecraft.client.resources.sounds.TickableSoundInstance- Overrides:
isStoppedin classnet.minecraft.client.resources.sounds.AbstractTickableSoundInstance
-
stop
public void stop()- Overrides:
stopin classnet.minecraft.client.resources.sounds.AbstractTickableSoundInstance
-
tick
public void tick()
-