public static class Types_v1_21_2.Consumable
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Types_v1_21_2.Consumable.ItemUseAnimation |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANIMATION |
static java.lang.String |
CONSUME_SECONDS |
static java.lang.String |
HAS_CONSUME_PARTICLES |
static java.lang.String |
ON_CONSUME_EFFECTS |
static java.lang.String |
SOUND |
| Constructor and Description |
|---|
Consumable() |
Consumable(float consumeSeconds,
Types_v1_21_2.Consumable.ItemUseAnimation animation,
net.lenni0451.mcstructs.converter.codec.Either<net.lenni0451.mcstructs.core.Identifier,Types_v1_20_5.SoundEvent> sound,
boolean hasConsumeParticles,
java.util.List<Types_v1_21_2.ConsumeEffect> onConsumeEffects) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
Types_v1_21_2.Consumable.ItemUseAnimation |
getAnimation() |
float |
getConsumeSeconds() |
java.util.List<Types_v1_21_2.ConsumeEffect> |
getOnConsumeEffects() |
net.lenni0451.mcstructs.converter.codec.Either<net.lenni0451.mcstructs.core.Identifier,Types_v1_20_5.SoundEvent> |
getSound() |
int |
hashCode() |
boolean |
isHasConsumeParticles() |
void |
setAnimation(Types_v1_21_2.Consumable.ItemUseAnimation animation) |
void |
setConsumeSeconds(float consumeSeconds) |
void |
setHasConsumeParticles(boolean hasConsumeParticles) |
void |
setOnConsumeEffects(java.util.List<Types_v1_21_2.ConsumeEffect> onConsumeEffects) |
void |
setSound(net.lenni0451.mcstructs.converter.codec.Either<net.lenni0451.mcstructs.core.Identifier,Types_v1_20_5.SoundEvent> sound) |
java.lang.String |
toString() |
public static final java.lang.String CONSUME_SECONDS
public static final java.lang.String ANIMATION
public static final java.lang.String SOUND
public static final java.lang.String HAS_CONSUME_PARTICLES
public static final java.lang.String ON_CONSUME_EFFECTS
public Consumable()
public Consumable(float consumeSeconds,
Types_v1_21_2.Consumable.ItemUseAnimation animation,
net.lenni0451.mcstructs.converter.codec.Either<net.lenni0451.mcstructs.core.Identifier,Types_v1_20_5.SoundEvent> sound,
boolean hasConsumeParticles,
java.util.List<Types_v1_21_2.ConsumeEffect> onConsumeEffects)
public float getConsumeSeconds()
public Types_v1_21_2.Consumable.ItemUseAnimation getAnimation()
public net.lenni0451.mcstructs.converter.codec.Either<net.lenni0451.mcstructs.core.Identifier,Types_v1_20_5.SoundEvent> getSound()
public boolean isHasConsumeParticles()
public java.util.List<Types_v1_21_2.ConsumeEffect> getOnConsumeEffects()
public void setConsumeSeconds(float consumeSeconds)
public void setAnimation(Types_v1_21_2.Consumable.ItemUseAnimation animation)
public void setSound(net.lenni0451.mcstructs.converter.codec.Either<net.lenni0451.mcstructs.core.Identifier,Types_v1_20_5.SoundEvent> sound)
public void setHasConsumeParticles(boolean hasConsumeParticles)
public void setOnConsumeEffects(java.util.List<Types_v1_21_2.ConsumeEffect> onConsumeEffects)
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