Interface Instrument
- All Superinterfaces:
CopyableEntity<Instrument>,DeepComparableEntity,MappedEntity
- All Known Implementing Classes:
StaticInstrument
-
Method Summary
Modifier and TypeMethodDescriptionstatic Instrumentdecode(NBT nbt, ClientVersion version, @Nullable TypesBuilderData data) static NBTencode(Instrument instrument, ClientVersion version) net.kyori.adventure.text.ComponentfloatgetRange()getSound()default intUse duration measured in ticksfloatstatic Instrumentread(PacketWrapper<?> wrapper) static InstrumentreadDirect(PacketWrapper<?> wrapper) static voidwrite(PacketWrapper<?> wrapper, Instrument instrument) static voidwriteDirect(PacketWrapper<?> wrapper, Instrument instrument) Methods inherited from interface com.github.retrooper.packetevents.protocol.mapper.CopyableEntity
copyMethods inherited from interface com.github.retrooper.packetevents.protocol.mapper.DeepComparableEntity
deepEquals, deepHashCodeMethods 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
-