Class Music

java.lang.Object
net.minecraft.sounds.Music

public class Music extends Object
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<Music> CODEC
    • event

      private final Holder<SoundEvent> event
    • minDelay

      private final int minDelay
    • maxDelay

      private final int maxDelay
    • replaceCurrentMusic

      private final boolean replaceCurrentMusic
  • Constructor Details

    • Music

      public Music(Holder<SoundEvent> p_263426_, int p_263377_, int p_263383_, boolean p_263387_)
  • Method Details

    • getEvent

      public Holder<SoundEvent> getEvent()
    • getMinDelay

      public int getMinDelay()
    • getMaxDelay

      public int getMaxDelay()
    • replaceCurrentMusic

      public boolean replaceCurrentMusic()