Interface GeyserInstrument

All Known Implementing Classes:
GeyserInstrument.Impl, GeyserInstrument.Wrapper

public interface GeyserInstrument
  • Method Details

    • read

      static GeyserInstrument read(RegistryEntryContext context)
    • soundEvent

      String soundEvent()
    • range

      float range()
    • description

      String description()
      In Bedrock format
    • bedrockInstrument

    • bedrockId

      default int bedrockId()
      Returns:
      the ID of the Bedrock counterpart for this instrument. If there is none (bedrockInstrument() is null), then -1 is returned.
    • bedrockIdToJava

      static int bedrockIdToJava(GeyserSession session, int id)
      Returns:
      the ID of the Java counterpart for the given Bedrock ID. If an invalid Bedrock ID was given, or there is no counterpart, -1 is returned.
    • fromHolder

      static GeyserInstrument fromHolder(GeyserSession session, org.geysermc.mcprotocollib.protocol.data.game.Holder<org.geysermc.mcprotocollib.protocol.data.game.item.component.Instrument> holder)