Package net.minecraft.client.sounds
Class SoundManager.Preparations
java.lang.Object
net.minecraft.client.sounds.SoundManager.Preparations
- Enclosing class:
SoundManager
The Preparations class represents the prepared sound event registrations and caches for applying to the sound manager.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Map
<ResourceLocation, WeighedSoundEvents> private Map
<ResourceLocation, Resource> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Map<ResourceLocation, WeighedSoundEvents> soundRegistry, Map<ResourceLocation, Resource> cache, SoundEngine soundEngine) Applies the prepared sound event registrations and caches to the sound manager.(package private) void
handleRegistration
(ResourceLocation location, SoundEventRegistration registration) (package private) void
listResources
(ResourceManager resourceManager)
-
Field Details
-
registry
-
soundCache
-
-
Constructor Details
-
Preparations
protected Preparations()
-
-
Method Details
-
listResources
-
handleRegistration
-
apply
public void apply(Map<ResourceLocation, WeighedSoundEvents> soundRegistry, Map<ResourceLocation, Resource> cache, SoundEngine soundEngine) Applies the prepared sound event registrations and caches to the sound manager.- Parameters:
soundRegistry
- The sound registry to apply tocache
- The sound cache to apply tosoundEngine
- The sound engine to apply to
-