类 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
static final ResourceLocation
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 p_120375_) protected void
apply
(SoundManager.Preparations p_120377_, ResourceManager p_120378_, ProfilerFiller p_120379_) void
destroy()
void
getSoundEvent
(ResourceLocation p_120385_) boolean
isActive
(SoundInstance p_120404_) void
pause()
void
play
(SoundInstance p_120368_) void
playDelayed
(SoundInstance p_120370_, int p_120371_) protected SoundManager.Preparations
prepare
(ResourceManager p_120356_, ProfilerFiller p_120357_) void
queueTickingSound
(TickableSoundInstance p_120373_) void
reload()
void
removeListener
(SoundEventListener p_120402_) void
resume()
void
setVolume
(SoundInstance p_376035_, float p_375513_) void
stop()
void
stop
(SoundInstance p_120400_) void
stop
(ResourceLocation p_120387_, SoundSource p_120388_) void
tick
(boolean p_120390_) void
updateSource
(Camera p_120362_) void
updateSourceVolume
(SoundSource p_120359_, float p_120360_) (专用程序包) static boolean
validateSoundResource
(Sound p_250396_, ResourceLocation p_250879_, ResourceProvider p_248737_) 从类继承的方法 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_LOCATION
-
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
-
apply
protected void apply(SoundManager.Preparations p_120377_, ResourceManager p_120378_, ProfilerFiller p_120379_) -
getAvailableSoundDevices
-
getListenerTransform
-
validateSoundResource
static boolean validateSoundResource(Sound p_250396_, ResourceLocation p_250879_, ResourceProvider p_248737_) -
getSoundEvent
-
getAvailableSounds
-
queueTickingSound
-
play
-
playDelayed
-
updateSource
-
pause
public void pause() -
stop
public void stop() -
destroy
public void destroy() -
emergencyShutdown
public void emergencyShutdown() -
tick
public void tick(boolean p_120390_) -
resume
public void resume() -
updateSourceVolume
-
stop
-
setVolume
-
isActive
-
addListener
-
removeListener
-
stop
-
getDebugString
-
reload
public void reload()
-