Interface Instrument
- All Superinterfaces:
CopyableEntity<Instrument>
,DeepComparableEntity
,MappedEntity
- All Known Implementing Classes:
StaticInstrument
-
Method Summary
Modifier and TypeMethodDescriptionstatic Instrument
decode
(NBT nbt, ClientVersion version, @Nullable TypesBuilderData data) static NBT
encode
(Instrument instrument, ClientVersion version) net.kyori.adventure.text.Component
float
getRange()
getSound()
default int
Use duration measured in ticksfloat
static Instrument
read
(PacketWrapper<?> wrapper) static Instrument
readDirect
(PacketWrapper<?> wrapper) static void
write
(PacketWrapper<?> wrapper, Instrument instrument) static void
writeDirect
(PacketWrapper<?> wrapper, Instrument instrument) Methods inherited from interface com.github.retrooper.packetevents.protocol.mapper.CopyableEntity
copy
Methods inherited from interface com.github.retrooper.packetevents.protocol.mapper.DeepComparableEntity
deepEquals, deepHashCode
Methods inherited from interface com.github.retrooper.packetevents.protocol.mapper.MappedEntity
getId, getName, isRegistered
-
Method Details
-
getSound
Sound getSound() -
getUseSeconds
float getUseSeconds() -
getUseDuration
default int getUseDuration()Use duration measured in ticks -
getRange
float getRange() -
getDescription
net.kyori.adventure.text.Component getDescription() -
read
-
readDirect
-
write
-
writeDirect
-
decode
-
encode
-