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 TypeFieldDescriptionprivate final Map<Identifier, WeighedSoundEvents> private Map<Identifier, Resource> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Map<Identifier, WeighedSoundEvents> registry, Map<Identifier, Resource> soundCache, SoundEngine engine) Applies the prepared sound event registrations and caches to the sound manager.private voidhandleRegistration(Identifier eventLocation, SoundEventRegistration soundEventRegistration) private voidlistResources(ResourceManager resourceManager)
-
Field Details
-
registry
-
soundCache
-
-
Constructor Details
-
Preparations
protected Preparations()
-
-
Method Details
-
listResources
-
handleRegistration
private void handleRegistration(Identifier eventLocation, SoundEventRegistration soundEventRegistration) -
apply
public void apply(Map<Identifier, WeighedSoundEvents> registry, Map<Identifier, Resource> soundCache, SoundEngine engine) Applies the prepared sound event registrations and caches to the sound manager.- Parameters:
registry- The sound registry to apply tosoundCache- The sound cache to apply toengine- The sound engine to apply to
-