Package org.bukkit

Enum Instrument

All Implemented Interfaces:
Serializable, Comparable<Instrument>, java.lang.constant.Constable

public enum Instrument extends Enum<Instrument>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Banjo is normally played when a note block is on top of a hay block.
    Bass drum is normally played when a note block is on top of a stone-like block.
    Bass guitar is normally played when a note block is on top of a wooden block.
    Bell is normally played when a note block is on top of a gold block.
    Bit is normally played when a note block is on top of a emerald block.
    Chime is normally played when a note block is on top of a packed ice block.
    Cow Bell is normally played when a note block is on top of a soul sand block.
    Creeper is normally played when a Creeper Head is on top of the note block.
    Custom Sound is normally played when a Player Head with the required data is on top of the note block.
    Didgeridoo is normally played when a note block is on top of a pumpkin block.
    Dragon is normally played when a Dragon Head is on top of the note block.
    Flute is normally played when a note block is on top of a clay block.
    Guitar is normally played when a note block is on top of a woolen block.
    Iron Xylophone is normally played when a note block is on top of a iron block.
    Piano is the standard instrument for a note block.
    Piglin is normally played when a Piglin Head is on top of the note block.
    Pling is normally played when a note block is on top of a glowstone block.
    Skeleton is normally played when a Skeleton Head is on top of the note block.
    Snare drum is normally played when a note block is on top of a sandy block.
    Sticks are normally played when a note block is on top of a glass block.
    Wither Skeleton is normally played when a Wither Skeleton Head is on top of the note block.
    Xylophone is normally played when a note block is on top of a bone block.
    Zombie is normally played when a Zombie Head is on top of the note block.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Instrument
    getByType(byte type)
    Deprecated.
    Magic value
    byte
    Deprecated.
    Magic value
    static Instrument
    Returns the enum constant of this type with the specified name.
    static Instrument[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PIANO

      public static final Instrument PIANO
      Piano is the standard instrument for a note block.
    • BASS_DRUM

      public static final Instrument BASS_DRUM
      Bass drum is normally played when a note block is on top of a stone-like block.
    • SNARE_DRUM

      public static final Instrument SNARE_DRUM
      Snare drum is normally played when a note block is on top of a sandy block.
    • STICKS

      public static final Instrument STICKS
      Sticks are normally played when a note block is on top of a glass block.
    • BASS_GUITAR

      public static final Instrument BASS_GUITAR
      Bass guitar is normally played when a note block is on top of a wooden block.
    • FLUTE

      public static final Instrument FLUTE
      Flute is normally played when a note block is on top of a clay block.
    • BELL

      public static final Instrument BELL
      Bell is normally played when a note block is on top of a gold block.
    • GUITAR

      public static final Instrument GUITAR
      Guitar is normally played when a note block is on top of a woolen block.
    • CHIME

      public static final Instrument CHIME
      Chime is normally played when a note block is on top of a packed ice block.
    • XYLOPHONE

      public static final Instrument XYLOPHONE
      Xylophone is normally played when a note block is on top of a bone block.
    • IRON_XYLOPHONE

      public static final Instrument IRON_XYLOPHONE
      Iron Xylophone is normally played when a note block is on top of a iron block.
    • COW_BELL

      public static final Instrument COW_BELL
      Cow Bell is normally played when a note block is on top of a soul sand block.
    • DIDGERIDOO

      public static final Instrument DIDGERIDOO
      Didgeridoo is normally played when a note block is on top of a pumpkin block.
    • BIT

      public static final Instrument BIT
      Bit is normally played when a note block is on top of a emerald block.
    • BANJO

      public static final Instrument BANJO
      Banjo is normally played when a note block is on top of a hay block.
    • PLING

      public static final Instrument PLING
      Pling is normally played when a note block is on top of a glowstone block.
    • ZOMBIE

      @MinecraftExperimental @Experimental public static final Instrument ZOMBIE
      Zombie is normally played when a Zombie Head is on top of the note block.
    • SKELETON

      @MinecraftExperimental @Experimental public static final Instrument SKELETON
      Skeleton is normally played when a Skeleton Head is on top of the note block.
    • CREEPER

      @MinecraftExperimental @Experimental public static final Instrument CREEPER
      Creeper is normally played when a Creeper Head is on top of the note block.
    • DRAGON

      @MinecraftExperimental @Experimental public static final Instrument DRAGON
      Dragon is normally played when a Dragon Head is on top of the note block.
    • WITHER_SKELETON

      @MinecraftExperimental @Experimental public static final Instrument WITHER_SKELETON
      Wither Skeleton is normally played when a Wither Skeleton Head is on top of the note block.
    • PIGLIN

      @MinecraftExperimental @Experimental public static final Instrument PIGLIN
      Piglin is normally played when a Piglin Head is on top of the note block.
    • CUSTOM_HEAD

      @MinecraftExperimental @Experimental public static final Instrument CUSTOM_HEAD
      Custom Sound is normally played when a Player Head with the required data is on top of the note block.
  • Method Details

    • values

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

      public static Instrument valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getType

      @Deprecated public byte getType()
      Deprecated.
      Magic value
      Returns:
      The type ID of this instrument.
    • getByType

      @Deprecated @Nullable public static Instrument getByType(byte type)
      Deprecated.
      Magic value
      Get an instrument by its type ID.
      Parameters:
      type - The type ID
      Returns:
      The instrument