Class StaticInstrument
java.lang.Object
com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
com.github.retrooper.packetevents.protocol.item.instrument.StaticInstrument
- All Implemented Interfaces:
Instrument
,CopyableEntity<Instrument>
,DeepComparableEntity
,MappedEntity
-
Field Summary
Fields inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
data
-
Constructor Summary
ConstructorDescriptionStaticInstrument
(Sound sound, float useSeconds, float range, net.kyori.adventure.text.Component description) StaticInstrument
(Sound sound, int useDuration, float range) Deprecated.StaticInstrument
(@Nullable TypesBuilderData data, Sound sound, float useSeconds, float range, net.kyori.adventure.text.Component description) -
Method Summary
Modifier and TypeMethodDescriptioncopy
(@Nullable TypesBuilderData newData) boolean
deepEquals
(Object obj) int
net.kyori.adventure.text.Component
float
getRange()
getSound()
float
Methods inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
equals, getId, getName, getRegistryData, hashCode, isRegistered, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.retrooper.packetevents.protocol.item.instrument.Instrument
getUseDuration
Methods inherited from interface com.github.retrooper.packetevents.protocol.mapper.MappedEntity
getId, getName, isRegistered
-
Constructor Details
-
StaticInstrument
Deprecated. -
StaticInstrument
public StaticInstrument(Sound sound, float useSeconds, float range, net.kyori.adventure.text.Component description) -
StaticInstrument
public StaticInstrument(@Nullable @Nullable TypesBuilderData data, Sound sound, float useSeconds, float range, net.kyori.adventure.text.Component description)
-
-
Method Details
-
copy
- Specified by:
copy
in interfaceCopyableEntity<Instrument>
-
getSound
- Specified by:
getSound
in interfaceInstrument
-
getUseSeconds
public float getUseSeconds()- Specified by:
getUseSeconds
in interfaceInstrument
-
getRange
public float getRange()- Specified by:
getRange
in interfaceInstrument
-
getDescription
public net.kyori.adventure.text.Component getDescription()- Specified by:
getDescription
in interfaceInstrument
-
deepEquals
- Specified by:
deepEquals
in interfaceDeepComparableEntity
-
deepHashCode
public int deepHashCode()- Specified by:
deepHashCode
in interfaceDeepComparableEntity
-