/* * Decompiled with CFR 0.152. */ package net.minecraft.world.item; import net.minecraft.core.Holder; import net.minecraft.core.registries.Registries; import net.minecraft.data.worldgen.BootstrapContext; import net.minecraft.network.chat.Component; import net.minecraft.resources.Identifier; import net.minecraft.resources.ResourceKey; import net.minecraft.sounds.SoundEvent; import net.minecraft.sounds.SoundEvents; import net.minecraft.util.Util; import net.minecraft.world.item.JukeboxSong; public interface JukeboxSongs { public static final ResourceKey THIRTEEN = JukeboxSongs.create("13"); public static final ResourceKey CAT = JukeboxSongs.create("cat"); public static final ResourceKey BLOCKS = JukeboxSongs.create("blocks"); public static final ResourceKey CHIRP = JukeboxSongs.create("chirp"); public static final ResourceKey FAR = JukeboxSongs.create("far"); public static final ResourceKey MALL = JukeboxSongs.create("mall"); public static final ResourceKey MELLOHI = JukeboxSongs.create("mellohi"); public static final ResourceKey STAL = JukeboxSongs.create("stal"); public static final ResourceKey STRAD = JukeboxSongs.create("strad"); public static final ResourceKey WARD = JukeboxSongs.create("ward"); public static final ResourceKey ELEVEN = JukeboxSongs.create("11"); public static final ResourceKey WAIT = JukeboxSongs.create("wait"); public static final ResourceKey PIGSTEP = JukeboxSongs.create("pigstep"); public static final ResourceKey OTHERSIDE = JukeboxSongs.create("otherside"); public static final ResourceKey FIVE = JukeboxSongs.create("5"); public static final ResourceKey RELIC = JukeboxSongs.create("relic"); public static final ResourceKey PRECIPICE = JukeboxSongs.create("precipice"); public static final ResourceKey CREATOR = JukeboxSongs.create("creator"); public static final ResourceKey CREATOR_MUSIC_BOX = JukeboxSongs.create("creator_music_box"); public static final ResourceKey TEARS = JukeboxSongs.create("tears"); public static final ResourceKey LAVA_CHICKEN = JukeboxSongs.create("lava_chicken"); private static ResourceKey create(String id) { return ResourceKey.create(Registries.JUKEBOX_SONG, Identifier.withDefaultNamespace(id)); } private static void register(BootstrapContext context, ResourceKey registryKey, Holder.Reference soundEvent, int lengthInSeconds, int comparatorOutput) { context.register(registryKey, new JukeboxSong(soundEvent, Component.translatable(Util.makeDescriptionId("jukebox_song", registryKey.identifier())), lengthInSeconds, comparatorOutput)); } public static void bootstrap(BootstrapContext context) { JukeboxSongs.register(context, THIRTEEN, SoundEvents.MUSIC_DISC_13, 178, 1); JukeboxSongs.register(context, CAT, SoundEvents.MUSIC_DISC_CAT, 185, 2); JukeboxSongs.register(context, BLOCKS, SoundEvents.MUSIC_DISC_BLOCKS, 345, 3); JukeboxSongs.register(context, CHIRP, SoundEvents.MUSIC_DISC_CHIRP, 185, 4); JukeboxSongs.register(context, FAR, SoundEvents.MUSIC_DISC_FAR, 174, 5); JukeboxSongs.register(context, MALL, SoundEvents.MUSIC_DISC_MALL, 197, 6); JukeboxSongs.register(context, MELLOHI, SoundEvents.MUSIC_DISC_MELLOHI, 96, 7); JukeboxSongs.register(context, STAL, SoundEvents.MUSIC_DISC_STAL, 150, 8); JukeboxSongs.register(context, STRAD, SoundEvents.MUSIC_DISC_STRAD, 188, 9); JukeboxSongs.register(context, WARD, SoundEvents.MUSIC_DISC_WARD, 251, 10); JukeboxSongs.register(context, ELEVEN, SoundEvents.MUSIC_DISC_11, 71, 11); JukeboxSongs.register(context, WAIT, SoundEvents.MUSIC_DISC_WAIT, 238, 12); JukeboxSongs.register(context, PIGSTEP, SoundEvents.MUSIC_DISC_PIGSTEP, 149, 13); JukeboxSongs.register(context, OTHERSIDE, SoundEvents.MUSIC_DISC_OTHERSIDE, 195, 14); JukeboxSongs.register(context, FIVE, SoundEvents.MUSIC_DISC_5, 178, 15); JukeboxSongs.register(context, RELIC, SoundEvents.MUSIC_DISC_RELIC, 218, 14); JukeboxSongs.register(context, PRECIPICE, SoundEvents.MUSIC_DISC_PRECIPICE, 299, 13); JukeboxSongs.register(context, CREATOR, SoundEvents.MUSIC_DISC_CREATOR, 176, 12); JukeboxSongs.register(context, CREATOR_MUSIC_BOX, SoundEvents.MUSIC_DISC_CREATOR_MUSIC_BOX, 73, 11); JukeboxSongs.register(context, TEARS, SoundEvents.MUSIC_DISC_TEARS, 175, 10); JukeboxSongs.register(context, LAVA_CHICKEN, SoundEvents.MUSIC_DISC_LAVA_CHICKEN, 134, 9); } }