java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.item.component.Instrument

public class Instrument extends Object
  • Constructor Details

    • Instrument

      public Instrument(Sound soundEvent, float useDuration, float range, net.kyori.adventure.text.Component description)
  • Method Details

    • builder

      public static @NonNull Instrument.InstrumentBuilder builder()
    • toBuilder

      public @NonNull Instrument.InstrumentBuilder toBuilder()
    • getSoundEvent

      public Sound getSoundEvent()
    • getUseDuration

      public float getUseDuration()
    • getRange

      public float getRange()
    • getDescription

      public net.kyori.adventure.text.Component getDescription()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object