Record Class SuspiciousStewEffects.Entry
java.lang.Object
java.lang.Record
net.minecraft.world.item.component.SuspiciousStewEffects.Entry
- Enclosing class:
SuspiciousStewEffects
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SuspiciousStewEffects.Entry> private final intThe field for thedurationrecord component.The field for theeffectrecord component.static final StreamCodec<RegistryFriendlyByteBuf, SuspiciousStewEffects.Entry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintduration()Returns the value of thedurationrecord component.effect()Returns the value of theeffectrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
effect
-
duration
private final int durationThe field for thedurationrecord component. -
CODEC
-
STREAM_CODEC
-
-
Constructor Details
-
Entry
-
-
Method Details
-
createEffectInstance
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
effect
-
duration
public int duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-