Package net.minecraft.client.audio
Class SoundSystem.HandlerImpl
- java.lang.Object
-
- net.minecraft.client.audio.SoundSystem.HandlerImpl
-
- All Implemented Interfaces:
SoundSystem.IHandler
- Enclosing class:
- SoundSystem
static class SoundSystem.HandlerImpl extends java.lang.Object implements SoundSystem.IHandler
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<SoundSource>
activeChannels
private int
limit
-
Constructor Summary
Constructors Constructor Description HandlerImpl(int p_i50804_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoundSource
acquire()
void
cleanup()
int
getMaxCount()
int
getUsedCount()
boolean
release(SoundSource p_216396_1_)
-
-
-
Field Detail
-
limit
private final int limit
-
activeChannels
private final java.util.Set<SoundSource> activeChannels
-
-
Method Detail
-
acquire
@Nullable public SoundSource acquire()
- Specified by:
acquire
in interfaceSoundSystem.IHandler
-
release
public boolean release(SoundSource p_216396_1_)
- Specified by:
release
in interfaceSoundSystem.IHandler
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceSoundSystem.IHandler
-
getMaxCount
public int getMaxCount()
- Specified by:
getMaxCount
in interfaceSoundSystem.IHandler
-
getUsedCount
public int getUsedCount()
- Specified by:
getUsedCount
in interfaceSoundSystem.IHandler
-
-