Class MusicDiscItem

    • Field Detail

      • analogOutput

        private final int analogOutput
      • sound

        @Deprecated
        private final SoundEvent sound
        Deprecated.
      • soundSupplier

        private final java.util.function.Supplier<SoundEvent> soundSupplier
    • Constructor Detail

      • MusicDiscItem

        @Deprecated
        public MusicDiscItem​(int p_i48475_1_,
                             SoundEvent p_i48475_2_,
                             Item.Properties p_i48475_3_)
        Deprecated.
      • MusicDiscItem

        public MusicDiscItem​(int comparatorValue,
                             java.util.function.Supplier<SoundEvent> soundSupplier,
                             Item.Properties builder)
        For mod use, allows to create a music disc without having to create a new SoundEvent before their registry event is fired.
        Parameters:
        comparatorValue - The value this music disc should output on the comparator. Must be between 0 and 15.
        soundSupplier - A supplier that provides the sound that should be played. Use a RegistryObject<SoundEvent> or a IRegistryDelegate for this parameter.
        builder - A set of Item.Properties that describe this item.