Class SoundDefinitionsProvider

  • All Implemented Interfaces:
    IDataProvider
    Direct Known Subclasses:
    DataGeneratorTest.SoundDefinitions

    public abstract class SoundDefinitionsProvider
    extends java.lang.Object
    implements IDataProvider
    Data provider for the sounds.json file, which identifies sound definitions for the various sound events in Minecraft.
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • GSON

        private static final com.google.gson.Gson GSON
      • modId

        private final java.lang.String modId
      • sounds

        private final java.util.Map<java.lang.String,​SoundDefinition> sounds
    • Constructor Detail

      • SoundDefinitionsProvider

        protected SoundDefinitionsProvider​(DataGenerator generator,
                                           java.lang.String modId,
                                           ExistingFileHelper helper)
        Creates a new instance of this data provider.
        Parameters:
        generator - The data generator instance provided by the event you are initializing this provider in.
        modId - The mod ID of the current mod.
        helper - The existing file helper provided by the event you are initializing this provider in.