Enum Class NoteBlockInstrument

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

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

    • HARP

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    • name

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

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

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

    • NoteBlockInstrument

      private NoteBlockInstrument(String name, RegistryEntry<SoundEvent> sound, NoteBlockInstrument.Type type)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/enums/NoteBlockInstrument;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/block/enums/NoteBlockInstrument$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> Ldyu;<init>(Ljava/lang/String;ILjava/lang/String;Ljq;Ldyu$a;)V
  • Method Details

    • values

      public static NoteBlockInstrument[] 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 NoteBlockInstrument 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 Lbba;c()Ljava/lang/String;
    • getSound

      public RegistryEntry<SoundEvent> getSound()
      Mappings:
      Namespace Name Mixin selector
      named getSound Lnet/minecraft/block/enums/NoteBlockInstrument;getSound()Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary method_11886 Lnet/minecraft/class_2766;method_11886()Lnet/minecraft/class_6880;
      official a Ldyu;a()Ljq;
    • canBePitched

      public boolean canBePitched()
      Returns whether note blocks playing this instrument can change its pitch.
      Returns:
      whether note blocks playing this instrument can change its pitch
      Mappings:
      Namespace Name Mixin selector
      named canBePitched Lnet/minecraft/block/enums/NoteBlockInstrument;canBePitched()Z
      intermediary method_47889 Lnet/minecraft/class_2766;method_47889()Z
      official b Ldyu;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/NoteBlockInstrument;hasCustomSound()Z
      intermediary method_47890 Lnet/minecraft/class_2766;method_47890()Z
      official d Ldyu;d()Z
    • isNotBaseBlock

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