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 TypeMethodDescriptionvoidapply(Map<ResourceLocation, WeighedSoundEvents> pSoundRegistry, Map<ResourceLocation, Resource> pCache, SoundEngine pSoundEngine) Applies the prepared sound event registrations and caches to the sound manager.(package private) voidhandleRegistration(ResourceLocation pLocation, SoundEventRegistration pRegistration) (package private) voidlistResources(ResourceManager pResourceManager)
-
Field Details
-
registry
-
soundCache
-
-
Constructor Details
-
Preparations
protected Preparations()
-
-
Method Details
-
listResources
-
handleRegistration
-
apply
public void apply(Map<ResourceLocation, WeighedSoundEvents> pSoundRegistry, Map<ResourceLocation, Resource> pCache, SoundEngine pSoundEngine) Applies the prepared sound event registrations and caches to the sound manager.- Parameters:
pSoundRegistry- The sound registry to apply topCache- The sound cache to apply topSoundEngine- The sound engine to apply to
-