Package net.minecraft.client.sound
Class Source
java.lang.Object
net.minecraft.client.sound.Source
@Environment(CLIENT) public class Source extends Object
-
Field Summary
Fields Modifier and Type Field Description private int
bufferSize
private static Logger
LOGGER
private AtomicBoolean
playing
private int
pointer
private AudioStream
stream
-
Constructor Summary
Constructors Modifier Constructor Description private
Source(int pointer)
-
Method Summary
Modifier and Type Method Description void
close()
(package private) static Source
create()
void
disableAttenuation()
private static int
getBufferSize(AudioFormat format, int time)
private int
getSourceState()
boolean
isStopped()
private void
method_19640(int int2)
void
pause()
void
play()
private int
removeProcessedBuffers()
void
resume()
void
setAttenuation(float float2)
void
setBuffer(StaticSound staticSound)
void
setLooping(boolean bool)
void
setPitch(float float2)
void
setPosition(Vec3d vec3d)
void
setRelative(boolean bool)
void
setStream(AudioStream stream)
void
setVolume(float float2)
void
stop()
void
tick()
-
Field Details
-
LOGGER
-
pointer
private final int pointer -
playing
-
bufferSize
private int bufferSize -
stream
-
-
Constructor Details
-
Source
private Source(int pointer)
-
-
Method Details
-
create
-
close
public void close() -
play
public void play() -
getSourceState
private int getSourceState() -
pause
public void pause() -
resume
public void resume() -
stop
public void stop() -
isStopped
public boolean isStopped() -
setPosition
-
setPitch
public void setPitch(float float2) -
setLooping
public void setLooping(boolean bool) -
setVolume
public void setVolume(float float2) -
disableAttenuation
public void disableAttenuation() -
setAttenuation
public void setAttenuation(float float2) -
setRelative
public void setRelative(boolean bool) -
setBuffer
-
setStream
-
getBufferSize
-
method_19640
private void method_19640(int int2) -
tick
public void tick() -
removeProcessedBuffers
private int removeProcessedBuffers()
-