SoundPoolEntry .java

net.minecraft.client.audio.SoundPoolEntry (class): members: getSoundPoolEntryLocation, isStreamingSound, streamingSound, setVolume, location, setPitch.

net.minecraft.client.audioclass58 linesclient1.2 KB

API Surface (6)

ResourceLocation getSoundPoolEntryLocation()
double getPitch()
void setPitch(double pitchIn)
double getVolume()
void setVolume(double volumeIn)
boolean isStreamingSound()

Fields & Constants (4)

location
streamingSound
pitch
volume

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

SoundPoolEntry.java58 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.client.audio;
2
3
import net.minecraft.util.ResourceLocation;
4
5
public class SoundPoolEntry
6
{
7
    private final ResourceLocation location;
8
    private final boolean streamingSound;
9
    private double pitch;
10
    private double volume;
11
12
    public SoundPoolEntry(ResourceLocation locationIn, double pitchIn, double volumeIn, boolean streamingSoundIn)
13
    {
14
        this.location = locationIn;
15
        this.pitch = pitchIn;
16
        this.volume = volumeIn;
17
        this.streamingSound = streamingSoundIn;
18
    }
19
20
    public SoundPoolEntry(SoundPoolEntry locationIn)
21
    {
22
        this.location = locationIn.location;
23
        this.pitch = locationIn.pitch;
24
        this.volume = locationIn.volume;
25
        this.streamingSound = locationIn.streamingSound;
26
    }
27
28
    public ResourceLocation getSoundPoolEntryLocation()
29
    {
30
        return this.location;
31
    }
32
33
    public double getPitch()
34
    {
35
        return this.pitch;
36
    }
37
38
    public void setPitch(double pitchIn)
39
    {
40
        this.pitch = pitchIn;
41
    }
42
43
    public double getVolume()
44
    {
45
        return this.volume;
46
    }
47
48
    public void setVolume(double volumeIn)
49
    {
50
        this.volume = volumeIn;
51
    }
52
53
    public boolean isStreamingSound()
54
    {
55
        return this.streamingSound;
56
    }
57
}
58

Deobfuscated MCP 1.8.9 source of SoundPoolEntry from Marcelektro/MavenMCP-1.8.9 (net/minecraft/client/audio/SoundPoolEntry.java), stored verbatim.