Package com.lightning.northstar.client
Class BasicTickableSoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
com.lightning.northstar.client.BasicTickableSoundInstance
- All Implemented Interfaces:
net.minecraft.client.resources.sounds.SoundInstance,net.minecraft.client.resources.sounds.TickableSoundInstance
public class BasicTickableSoundInstance
extends net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
-
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 net.minecraft.client.resources.sounds.AbstractSoundInstance
attenuation, delay, location, looping, pitch, random, relative, sound, source, volume, x, y, z -
Constructor Summary
ConstructorsConstructorDescriptionBasicTickableSoundInstance(net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource source, net.minecraft.util.RandomSource random, net.minecraft.world.level.block.entity.BlockEntity entity) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()voidsetLooping(boolean looping) voidsetPos(net.minecraft.core.BlockPos pos) voidsetPos(net.minecraft.world.phys.Vec3 pos) 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
-
BasicTickableSoundInstance
public BasicTickableSoundInstance(net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource source, net.minecraft.util.RandomSource random, net.minecraft.world.level.block.entity.BlockEntity entity)
-
-
Method Details
-
tick
public void tick() -
cancel
public void cancel() -
setPos
public void setPos(net.minecraft.core.BlockPos pos) -
setPos
public void setPos(net.minecraft.world.phys.Vec3 pos) -
setLooping
public void setLooping(boolean looping)
-