Interface GeyserInstrument
- All Known Implementing Classes:
GeyserInstrument.Impl,GeyserInstrument.Wrapper
public interface GeyserInstrument
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEach vanilla instrument on Bedrock, ordered in their network IDs.static final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptiondefault intstatic intbedrockIdToJava(GeyserSession session, int id) In Bedrock formatstatic GeyserInstrumentfromComponent(GeyserSession session, org.geysermc.mcprotocollib.protocol.data.game.item.component.InstrumentComponent component) floatrange()static GeyserInstrumentread(RegistryEntryContext context)
-
Method Details
-
read
-
soundEvent
String soundEvent() -
range
float range() -
description
String description()In Bedrock format -
bedrockInstrument
GeyserInstrument.BedrockInstrument 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
- 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.
-
fromComponent
static GeyserInstrument fromComponent(GeyserSession session, org.geysermc.mcprotocollib.protocol.data.game.item.component.InstrumentComponent component)
-