Record Class LocationEffect.AllOf
java.lang.Object
java.lang.Record
net.minestom.server.item.enchant.LocationEffect.AllOf
- All Implemented Interfaces:
Enchantment.Effect, LocationEffect
- Enclosing interface:
LocationEffect
public static record LocationEffect.AllOf(List<LocationEffect> effect)
extends Record
implements LocationEffect
-
Nested Class Summary
Nested classes/interfaces inherited from interface LocationEffect
LocationEffect.AllOf -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAllOf(List<LocationEffect> effect) Creates an instance of aAllOfrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncodec()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
-
CODEC
-
-
Constructor Details
-
AllOf
Creates an instance of aAllOfrecord class.- Parameters:
effect- the value for theeffectrecord component
-
-
Method Details
-
codec
- Specified by:
codecin interfaceLocationEffect
-
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). -
effect
Returns the value of theeffectrecord component.- Returns:
- the value of the
effectrecord component
-