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>activeChannelsprivate intlimit
-
Constructor Summary
Constructors Constructor Description HandlerImpl(int p_i50804_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoundSourceacquire()voidcleanup()intgetMaxCount()intgetUsedCount()booleanrelease(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:
acquirein interfaceSoundSystem.IHandler
-
release
public boolean release(SoundSource p_216396_1_)
- Specified by:
releasein interfaceSoundSystem.IHandler
-
cleanup
public void cleanup()
- Specified by:
cleanupin interfaceSoundSystem.IHandler
-
getMaxCount
public int getMaxCount()
- Specified by:
getMaxCountin interfaceSoundSystem.IHandler
-
getUsedCount
public int getUsedCount()
- Specified by:
getUsedCountin interfaceSoundSystem.IHandler
-
-