Class CachedBlockEntitySoundInstance<T extends LodestoneBlockEntity>
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
team.lodestar.lodestone.systems.sound.LodestoneBlockEntitySoundInstance<T>
team.lodestar.lodestone.systems.sound.CachedBlockEntitySoundInstance<T>
- All Implemented Interfaces:
net.minecraft.client.resources.sounds.SoundInstance,net.minecraft.client.resources.sounds.TickableSoundInstance
public class CachedBlockEntitySoundInstance<T extends LodestoneBlockEntity>
extends LodestoneBlockEntitySoundInstance<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.sounds.SoundInstance
net.minecraft.client.resources.sounds.SoundInstance.Attenuation -
Field Summary
Fields inherited from class team.lodestar.lodestone.systems.sound.LodestoneBlockEntitySoundInstance
blockEntityFields inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance
attenuation, delay, location, looping, pitch, random, relative, sound, source, volume, x, y, z -
Constructor Summary
ConstructorsConstructorDescriptionCachedBlockEntitySoundInstance(T blockEntity, Supplier<net.minecraft.sounds.SoundEvent> soundEvent, float volume, float pitch) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidplaySound(LodestoneBlockEntity blockEntity, CachedBlockEntitySoundInstance<?> sound) voidtick()Methods inherited from class net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
isStopped, stopMethods 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.minecraft.client.resources.sounds.SoundInstance
canPlaySound, canStartSilent, getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getStream, getVolume, getX, getY, getZ, isLooping, isRelative, resolve
-
Constructor Details
-
CachedBlockEntitySoundInstance
-
-
Method Details
-
tick
public void tick()- Specified by:
tickin interfacenet.minecraft.client.resources.sounds.TickableSoundInstance- Overrides:
tickin classLodestoneBlockEntitySoundInstance<T extends LodestoneBlockEntity>
-
playSound
public static void playSound(LodestoneBlockEntity blockEntity, CachedBlockEntitySoundInstance<?> sound)
-