Spaces:
Build error
Build error
package net.minecraft.client.resources.sounds; | |
import javax.annotation.Nullable; | |
import net.minecraft.client.sounds.SoundManager; | |
import net.minecraft.client.sounds.WeighedSoundEvents; | |
import net.minecraft.resources.ResourceLocation; | |
import net.minecraft.sounds.SoundSource; | |
import net.minecraft.util.RandomSource; | |
import net.minecraftforge.api.distmarker.Dist; | |
import net.minecraftforge.api.distmarker.OnlyIn; | |
public interface SoundInstance { | |
ResourceLocation getLocation(); | |
WeighedSoundEvents resolve(SoundManager p_119841_); | |
Sound getSound(); | |
SoundSource getSource(); | |
boolean isLooping(); | |
boolean isRelative(); | |
int getDelay(); | |
float getVolume(); | |
float getPitch(); | |
double getX(); | |
double getY(); | |
double getZ(); | |
SoundInstance.Attenuation getAttenuation(); | |
default boolean canStartSilent() { | |
return false; | |
} | |
default boolean canPlaySound() { | |
return true; | |
} | |
static RandomSource createUnseededRandom() { | |
return RandomSource.create(); | |
} | |
public static enum Attenuation { | |
NONE, | |
LINEAR; | |
} | |
} |