Enum Class Instrument

java.lang.Object
java.lang.Enum<Instrument>
net.minecraft.block.enums.Instrument
All Implemented Interfaces:
Serializable, Comparable<Instrument>, Constable, StringIdentifiable

public enum Instrument extends Enum<Instrument> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/block/enums/Instrument
intermediary net/minecraft/class_2766
official dtf
  • Enum Constant Details

    • HARP

      public static final Instrument HARP
      Mappings:
      Namespace Name Mixin selector
      named HARP Lnet/minecraft/block/enums/Instrument;HARP:Lnet/minecraft/block/enums/Instrument;
      intermediary field_12648 Lnet/minecraft/class_2766;field_12648:Lnet/minecraft/class_2766;
      official a Ldtf;a:Ldtf;
    • BASEDRUM

      public static final Instrument BASEDRUM
      Mappings:
      Namespace Name Mixin selector
      named BASEDRUM Lnet/minecraft/block/enums/Instrument;BASEDRUM:Lnet/minecraft/block/enums/Instrument;
      intermediary field_12653 Lnet/minecraft/class_2766;field_12653:Lnet/minecraft/class_2766;
      official b Ldtf;b:Ldtf;
    • SNARE

      public static final Instrument SNARE
      Mappings:
      Namespace Name Mixin selector
      named SNARE Lnet/minecraft/block/enums/Instrument;SNARE:Lnet/minecraft/block/enums/Instrument;
      intermediary field_12643 Lnet/minecraft/class_2766;field_12643:Lnet/minecraft/class_2766;
      official c Ldtf;c:Ldtf;
    • HAT

      public static final Instrument HAT
      Mappings:
      Namespace Name Mixin selector
      named HAT Lnet/minecraft/block/enums/Instrument;HAT:Lnet/minecraft/block/enums/Instrument;
      intermediary field_12645 Lnet/minecraft/class_2766;field_12645:Lnet/minecraft/class_2766;
      official d Ldtf;d:Ldtf;
    • BASS

      public static final Instrument BASS
      Mappings:
      Namespace Name Mixin selector
      named BASS Lnet/minecraft/block/enums/Instrument;BASS:Lnet/minecraft/block/enums/Instrument;
      intermediary field_12651 Lnet/minecraft/class_2766;field_12651:Lnet/minecraft/class_2766;
      official e Ldtf;e:Ldtf;
    • FLUTE

      public static final Instrument FLUTE
      Mappings:
      Namespace Name Mixin selector
      named FLUTE Lnet/minecraft/block/enums/Instrument;FLUTE:Lnet/minecraft/block/enums/Instrument;
      intermediary field_12650 Lnet/minecraft/class_2766;field_12650:Lnet/minecraft/class_2766;
      official f Ldtf;f:Ldtf;
    • BELL

      public static final Instrument BELL
      Mappings:
      Namespace Name Mixin selector
      named BELL Lnet/minecraft/block/enums/Instrument;BELL:Lnet/minecraft/block/enums/Instrument;
      intermediary field_12644 Lnet/minecraft/class_2766;field_12644:Lnet/minecraft/class_2766;
      official g Ldtf;g:Ldtf;
    • GUITAR

      public static final Instrument GUITAR
      Mappings:
      Namespace Name Mixin selector
      named GUITAR Lnet/minecraft/block/enums/Instrument;GUITAR:Lnet/minecraft/block/enums/Instrument;
      intermediary field_12654 Lnet/minecraft/class_2766;field_12654:Lnet/minecraft/class_2766;
      official h Ldtf;h:Ldtf;
    • CHIME

      public static final Instrument CHIME
      Mappings:
      Namespace Name Mixin selector
      named CHIME Lnet/minecraft/block/enums/Instrument;CHIME:Lnet/minecraft/block/enums/Instrument;
      intermediary field_12647 Lnet/minecraft/class_2766;field_12647:Lnet/minecraft/class_2766;
      official i Ldtf;i:Ldtf;
    • XYLOPHONE

      public static final Instrument XYLOPHONE
      Mappings:
      Namespace Name Mixin selector
      named XYLOPHONE Lnet/minecraft/block/enums/Instrument;XYLOPHONE:Lnet/minecraft/block/enums/Instrument;
      intermediary field_12655 Lnet/minecraft/class_2766;field_12655:Lnet/minecraft/class_2766;
      official j Ldtf;j:Ldtf;
    • IRON_XYLOPHONE

      public static final Instrument IRON_XYLOPHONE
      Mappings:
      Namespace Name Mixin selector
      named IRON_XYLOPHONE Lnet/minecraft/block/enums/Instrument;IRON_XYLOPHONE:Lnet/minecraft/block/enums/Instrument;
      intermediary field_18284 Lnet/minecraft/class_2766;field_18284:Lnet/minecraft/class_2766;
      official k Ldtf;k:Ldtf;
    • COW_BELL

      public static final Instrument COW_BELL
      Mappings:
      Namespace Name Mixin selector
      named COW_BELL Lnet/minecraft/block/enums/Instrument;COW_BELL:Lnet/minecraft/block/enums/Instrument;
      intermediary field_18285 Lnet/minecraft/class_2766;field_18285:Lnet/minecraft/class_2766;
      official l Ldtf;l:Ldtf;
    • DIDGERIDOO

      public static final Instrument DIDGERIDOO
      Mappings:
      Namespace Name Mixin selector
      named DIDGERIDOO Lnet/minecraft/block/enums/Instrument;DIDGERIDOO:Lnet/minecraft/block/enums/Instrument;
      intermediary field_18286 Lnet/minecraft/class_2766;field_18286:Lnet/minecraft/class_2766;
      official m Ldtf;m:Ldtf;
    • BIT

      public static final Instrument BIT
      Mappings:
      Namespace Name Mixin selector
      named BIT Lnet/minecraft/block/enums/Instrument;BIT:Lnet/minecraft/block/enums/Instrument;
      intermediary field_18287 Lnet/minecraft/class_2766;field_18287:Lnet/minecraft/class_2766;
      official n Ldtf;n:Ldtf;
    • BANJO

      public static final Instrument BANJO
      Mappings:
      Namespace Name Mixin selector
      named BANJO Lnet/minecraft/block/enums/Instrument;BANJO:Lnet/minecraft/block/enums/Instrument;
      intermediary field_18288 Lnet/minecraft/class_2766;field_18288:Lnet/minecraft/class_2766;
      official o Ldtf;o:Ldtf;
    • PLING

      public static final Instrument PLING
      Mappings:
      Namespace Name Mixin selector
      named PLING Lnet/minecraft/block/enums/Instrument;PLING:Lnet/minecraft/block/enums/Instrument;
      intermediary field_18289 Lnet/minecraft/class_2766;field_18289:Lnet/minecraft/class_2766;
      official p Ldtf;p:Ldtf;
    • ZOMBIE

      public static final Instrument ZOMBIE
      Mappings:
      Namespace Name Mixin selector
      named ZOMBIE Lnet/minecraft/block/enums/Instrument;ZOMBIE:Lnet/minecraft/block/enums/Instrument;
      intermediary field_41324 Lnet/minecraft/class_2766;field_41324:Lnet/minecraft/class_2766;
      official q Ldtf;q:Ldtf;
    • SKELETON

      public static final Instrument SKELETON
      Mappings:
      Namespace Name Mixin selector
      named SKELETON Lnet/minecraft/block/enums/Instrument;SKELETON:Lnet/minecraft/block/enums/Instrument;
      intermediary field_41325 Lnet/minecraft/class_2766;field_41325:Lnet/minecraft/class_2766;
      official r Ldtf;r:Ldtf;
    • CREEPER

      public static final Instrument CREEPER
      Mappings:
      Namespace Name Mixin selector
      named CREEPER Lnet/minecraft/block/enums/Instrument;CREEPER:Lnet/minecraft/block/enums/Instrument;
      intermediary field_41326 Lnet/minecraft/class_2766;field_41326:Lnet/minecraft/class_2766;
      official s Ldtf;s:Ldtf;
    • DRAGON

      public static final Instrument DRAGON
      Mappings:
      Namespace Name Mixin selector
      named DRAGON Lnet/minecraft/block/enums/Instrument;DRAGON:Lnet/minecraft/block/enums/Instrument;
      intermediary field_41327 Lnet/minecraft/class_2766;field_41327:Lnet/minecraft/class_2766;
      official t Ldtf;t:Ldtf;
    • WITHER_SKELETON

      public static final Instrument WITHER_SKELETON
      Mappings:
      Namespace Name Mixin selector
      named WITHER_SKELETON Lnet/minecraft/block/enums/Instrument;WITHER_SKELETON:Lnet/minecraft/block/enums/Instrument;
      intermediary field_41328 Lnet/minecraft/class_2766;field_41328:Lnet/minecraft/class_2766;
      official u Ldtf;u:Ldtf;
    • PIGLIN

      public static final Instrument PIGLIN
      Mappings:
      Namespace Name Mixin selector
      named PIGLIN Lnet/minecraft/block/enums/Instrument;PIGLIN:Lnet/minecraft/block/enums/Instrument;
      intermediary field_41329 Lnet/minecraft/class_2766;field_41329:Lnet/minecraft/class_2766;
      official v Ldtf;v:Ldtf;
    • CUSTOM_HEAD

      public static final Instrument CUSTOM_HEAD
      Mappings:
      Namespace Name Mixin selector
      named CUSTOM_HEAD Lnet/minecraft/block/enums/Instrument;CUSTOM_HEAD:Lnet/minecraft/block/enums/Instrument;
      intermediary field_41604 Lnet/minecraft/class_2766;field_41604:Lnet/minecraft/class_2766;
      official w Ldtf;w:Ldtf;
  • Field Details

    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/block/enums/Instrument;name:Ljava/lang/String;
      intermediary field_12646 Lnet/minecraft/class_2766;field_12646:Ljava/lang/String;
      official x Ldtf;x:Ljava/lang/String;
    • sound

      private final RegistryEntry<SoundEvent> sound
      Mappings:
      Namespace Name Mixin selector
      named sound Lnet/minecraft/block/enums/Instrument;sound:Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary field_12649 Lnet/minecraft/class_2766;field_12649:Lnet/minecraft/class_6880;
      official y Ldtf;y:Lji;
    • type

      private final Instrument.Type type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/block/enums/Instrument;type:Lnet/minecraft/block/enums/Instrument$Type;
      intermediary field_41605 Lnet/minecraft/class_2766;field_41605:Lnet/minecraft/class_2766$class_7994;
      official z Ldtf;z:Ldtf$a;
  • Constructor Details

    • Instrument

      private Instrument(String name, RegistryEntry<SoundEvent> sound, Instrument.Type type)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/enums/Instrument;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/block/enums/Instrument$Type;)V
      intermediary <init> Lnet/minecraft/class_2766;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_6880;Lnet/minecraft/class_2766$class_7994;)V
      official <init> Ldtf;<init>(Ljava/lang/String;ILjava/lang/String;Lji;Ldtf$a;)V
  • Method Details

    • values

      public static Instrument[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Instrument valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lazu;c()Ljava/lang/String;
    • getSound

      public RegistryEntry<SoundEvent> getSound()
      Mappings:
      Namespace Name Mixin selector
      named getSound Lnet/minecraft/block/enums/Instrument;getSound()Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary method_11886 Lnet/minecraft/class_2766;method_11886()Lnet/minecraft/class_6880;
      official a Ldtf;a()Lji;
    • shouldSpawnNoteParticles

      public boolean shouldSpawnNoteParticles()
      Returns whether note blocks playing this instrument should produce note particles.
      Returns:
      whether note blocks playing this instrument should produce note particles
      Mappings:
      Namespace Name Mixin selector
      named shouldSpawnNoteParticles Lnet/minecraft/block/enums/Instrument;shouldSpawnNoteParticles()Z
      intermediary method_47889 Lnet/minecraft/class_2766;method_47889()Z
      official b Ldtf;b()Z
    • hasCustomSound

      public boolean hasCustomSound()
      Returns whether note blocks playing this instrument should determine the sound from skulls above them.
      Returns:
      whether note blocks playing this instrument should determine the sound from skulls above them
      Mappings:
      Namespace Name Mixin selector
      named hasCustomSound Lnet/minecraft/block/enums/Instrument;hasCustomSound()Z
      intermediary method_47890 Lnet/minecraft/class_2766;method_47890()Z
      official d Ldtf;d()Z
    • isNotBaseBlock

      public boolean isNotBaseBlock()
      Mappings:
      Namespace Name Mixin selector
      named isNotBaseBlock Lnet/minecraft/block/enums/Instrument;isNotBaseBlock()Z
      intermediary method_51372 Lnet/minecraft/class_2766;method_51372()Z
      official e Ldtf;e()Z