public static class Types_v1_20_5.Instrument
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RANGE |
static java.lang.String |
SOUND_EVENT |
static java.lang.String |
USE_DURATION |
| Constructor and Description |
|---|
Instrument() |
Instrument(net.lenni0451.mcstructs.converter.codec.Either<net.lenni0451.mcstructs.core.Identifier,Types_v1_20_5.SoundEvent> soundEvent,
int useDuration,
float range) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
float |
getRange() |
net.lenni0451.mcstructs.converter.codec.Either<net.lenni0451.mcstructs.core.Identifier,Types_v1_20_5.SoundEvent> |
getSoundEvent() |
int |
getUseDuration() |
int |
hashCode() |
void |
setRange(float range) |
void |
setSoundEvent(net.lenni0451.mcstructs.converter.codec.Either<net.lenni0451.mcstructs.core.Identifier,Types_v1_20_5.SoundEvent> soundEvent) |
void |
setUseDuration(int useDuration) |
java.lang.String |
toString() |
public static final java.lang.String SOUND_EVENT
public static final java.lang.String USE_DURATION
public static final java.lang.String RANGE
public Instrument()
public Instrument(net.lenni0451.mcstructs.converter.codec.Either<net.lenni0451.mcstructs.core.Identifier,Types_v1_20_5.SoundEvent> soundEvent, int useDuration, float range)
public net.lenni0451.mcstructs.converter.codec.Either<net.lenni0451.mcstructs.core.Identifier,Types_v1_20_5.SoundEvent> getSoundEvent()
public int getUseDuration()
public float getRange()
public void setSoundEvent(net.lenni0451.mcstructs.converter.codec.Either<net.lenni0451.mcstructs.core.Identifier,Types_v1_20_5.SoundEvent> soundEvent)
public void setUseDuration(int useDuration)
public void setRange(float range)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object