Record Class SuspiciousStewEffects
java.lang.Object
java.lang.Record
net.minestom.server.item.component.SuspiciousStewEffects
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<SuspiciousStewEffects> static final intstatic final SuspiciousStewEffectsstatic final NetworkBuffer.Type<SuspiciousStewEffects> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aSuspiciousStewEffectsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioneffects()Returns the value of theeffectsrecord 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.with(SuspiciousStewEffects.Effect effect)
-
Field Details
-
DEFAULT_DURATION
public static final int DEFAULT_DURATION- See Also:
-
EMPTY
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
SuspiciousStewEffects
Creates an instance of aSuspiciousStewEffectsrecord class.- Parameters:
effects- the value for theeffectsrecord component
-
SuspiciousStewEffects
-
-
Method Details
-
with
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
effects
Returns the value of theeffectsrecord component.- Returns:
- the value of the
effectsrecord component
-