类 SoundManager
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<SoundManager.Preparations>
net.minecraft.client.sounds.SoundManager
- 所有已实现的接口:
PreparableReloadListener
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
字段概要
字段修饰符和类型字段说明static final Sound
private static final com.google.gson.Gson
static final Sound
static final WeighedSoundEvents
static final ResourceLocation
(专用程序包) static final org.slf4j.Logger
private final Map<ResourceLocation,
WeighedSoundEvents> private static final com.google.gson.reflect.TypeToken<Map<String,
SoundEventRegistration>> private final Map<ResourceLocation,
Resource> private final SoundEngine
private static final String
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addListener
(SoundEventListener pListener) protected void
apply
(SoundManager.Preparations pObject, ResourceManager pResourceManager, ProfilerFiller pProfiler) void
destroy()
getSoundEvent
(ResourceLocation pLocation) boolean
isActive
(SoundInstance pSound) void
pause()
void
play
(SoundInstance pSound) void
playDelayed
(SoundInstance pSound, int pDelay) protected SoundManager.Preparations
prepare
(ResourceManager pResourceManager, ProfilerFiller pProfiler) void
queueTickingSound
(TickableSoundInstance pTickableSound) void
reload()
void
removeListener
(SoundEventListener pListener) void
resume()
void
stop()
void
stop
(SoundInstance pSound) void
stop
(ResourceLocation pId, SoundSource pCategory) void
tick
(boolean pIsGamePaused) void
updateSource
(Camera pActiveRenderInfo) void
updateSourceVolume
(SoundSource pCategory, float pVolume) (专用程序包) static boolean
validateSoundResource
(Sound pSound, ResourceLocation pLocation, ResourceProvider pResourceProvider) 从类继承的方法 net.minecraft.server.packs.resources.SimplePreparableReloadListener
reload
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
字段详细资料
-
EMPTY_SOUND
-
INTENTIONALLY_EMPTY_SOUND_LOCATION
-
INTENTIONALLY_EMPTY_SOUND_EVENT
-
INTENTIONALLY_EMPTY_SOUND
-
LOGGER
static final org.slf4j.Logger LOGGER -
SOUNDS_PATH
- 另请参阅:
-
GSON
private static final com.google.gson.Gson GSON -
SOUND_EVENT_REGISTRATION_TYPE
private static final com.google.gson.reflect.TypeToken<Map<String,SoundEventRegistration>> SOUND_EVENT_REGISTRATION_TYPE -
registry
-
soundEngine
-
soundCache
-
-
构造器详细资料
-
SoundManager
-
-
方法详细资料
-
prepare
protected SoundManager.Preparations prepare(ResourceManager pResourceManager, ProfilerFiller pProfiler) -
apply
protected void apply(SoundManager.Preparations pObject, ResourceManager pResourceManager, ProfilerFiller pProfiler) -
getAvailableSoundDevices
-
validateSoundResource
static boolean validateSoundResource(Sound pSound, ResourceLocation pLocation, ResourceProvider pResourceProvider) -
getSoundEvent
-
getAvailableSounds
-
queueTickingSound
-
play
-
playDelayed
-
updateSource
-
pause
public void pause() -
stop
public void stop() -
destroy
public void destroy() -
tick
public void tick(boolean pIsGamePaused) -
resume
public void resume() -
updateSourceVolume
-
stop
-
isActive
-
addListener
-
removeListener
-
stop
-
getDebugString
-
reload
public void reload()
-