Class MusicTracker

java.lang.Object
net.minecraft.client.sound.MusicTracker

@Environment(CLIENT)
public class MusicTracker
extends Object
Mappings:
Namespace Name
official evh
intermediary net/minecraft/class_1142
named net/minecraft/client/sound/MusicTracker
  • Field Details

    • random

      private final Random random
      Mappings:
      Namespace Name Mixin selector
      official a Levh;a:Ljava/util/Random;
      intermediary field_5571 Lnet/minecraft/class_1142;field_5571:Ljava/util/Random;
      named random Lnet/minecraft/client/sound/MusicTracker;random:Ljava/util/Random;
    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official b Levh;b:Ldqk;
      intermediary field_5575 Lnet/minecraft/class_1142;field_5575:Lnet/minecraft/class_310;
      named client Lnet/minecraft/client/sound/MusicTracker;client:Lnet/minecraft/client/MinecraftClient;
    • current

      @Nullable private SoundInstance current
      Mappings:
      Namespace Name Mixin selector
      official c Levh;c:Leul;
      intermediary field_5574 Lnet/minecraft/class_1142;field_5574:Lnet/minecraft/class_1113;
      named current Lnet/minecraft/client/sound/MusicTracker;current:Lnet/minecraft/client/sound/SoundInstance;
    • timeUntilNextSong

      private int timeUntilNextSong
      Mappings:
      Namespace Name Mixin selector
      official d Levh;d:I
      intermediary field_5572 Lnet/minecraft/class_1142;field_5572:I
      named timeUntilNextSong Lnet/minecraft/client/sound/MusicTracker;timeUntilNextSong:I
  • Constructor Details

    • MusicTracker

      public MusicTracker​(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official <init> Levh;<init>(Ldqk;)V
      intermediary <init> Lnet/minecraft/class_1142;<init>(Lnet/minecraft/class_310;)V
      named <init> Lnet/minecraft/client/sound/MusicTracker;<init>(Lnet/minecraft/client/MinecraftClient;)V
  • Method Details

    • tick

      public void tick()
      Mappings:
      Namespace Name Mixin selector
      official a Levh;a()V
      intermediary method_18669 Lnet/minecraft/class_1142;method_18669()V
      named tick Lnet/minecraft/client/sound/MusicTracker;tick()V
    • play

      public void play​(MusicSound type)
      Mappings:
      Namespace Name Mixin selector
      official a Levh;a(Laed;)V
      intermediary method_4858 Lnet/minecraft/class_1142;method_4858(Lnet/minecraft/class_5195;)V
      named play Lnet/minecraft/client/sound/MusicTracker;play(Lnet/minecraft/sound/MusicSound;)V
    • stop

      public void stop()
      Mappings:
      Namespace Name Mixin selector
      official b Levh;b()V
      intermediary method_4859 Lnet/minecraft/class_1142;method_4859()V
      named stop Lnet/minecraft/client/sound/MusicTracker;stop()V
    • isPlayingType

      public boolean isPlayingType​(MusicSound type)
      Mappings:
      Namespace Name Mixin selector
      official b Levh;b(Laed;)Z
      intermediary method_4860 Lnet/minecraft/class_1142;method_4860(Lnet/minecraft/class_5195;)Z
      named isPlayingType Lnet/minecraft/client/sound/MusicTracker;isPlayingType(Lnet/minecraft/sound/MusicSound;)Z