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
ConstructorsConstructorDescriptionStaticInstrument(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) booleandeepEquals(Object obj) intnet.kyori.adventure.text.ComponentfloatgetRange()getSound()floatMethods inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
equals, getId, getName, getRegistryData, hashCode, isRegistered, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.retrooper.packetevents.protocol.item.instrument.Instrument
getUseDurationMethods 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:
copyin interfaceCopyableEntity<Instrument>
-
getSound
- Specified by:
getSoundin interfaceInstrument
-
getUseSeconds
public float getUseSeconds()- Specified by:
getUseSecondsin interfaceInstrument
-
getRange
public float getRange()- Specified by:
getRangein interfaceInstrument
-
getDescription
public net.kyori.adventure.text.Component getDescription()- Specified by:
getDescriptionin interfaceInstrument
-
deepEquals
- Specified by:
deepEqualsin interfaceDeepComparableEntity
-
deepHashCode
public int deepHashCode()- Specified by:
deepHashCodein interfaceDeepComparableEntity
-