Record Class ValueComponent.AttributeModifiers.Contains
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.ValueComponent.AttributeModifiers.Contains
- Enclosing class:
ValueComponent.AttributeModifiers
public static record ValueComponent.AttributeModifiers.Contains(List<org.bukkit.attribute.Attribute> attributes, net.kyori.adventure.key.Key id, Integer min, Integer max, ValueComponent.AttributeModifiers.Operation operation, ValueComponent.AttributeModifiers.Slot slot)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionContains(List<org.bukkit.attribute.Attribute> attributes, net.kyori.adventure.key.Key id, Integer min, Integer max, ValueComponent.AttributeModifiers.Operation operation, ValueComponent.AttributeModifiers.Slot slot) Creates an instance of aContainsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<org.bukkit.attribute.Attribute> Returns the value of theattributesrecord component.builder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.kyori.adventure.key.Keyid()Returns the value of theidrecord component.max()Returns the value of themaxrecord component.min()Returns the value of theminrecord component.Returns the value of theoperationrecord component.slot()Returns the value of theslotrecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Contains
public Contains(List<org.bukkit.attribute.Attribute> attributes, net.kyori.adventure.key.Key id, Integer min, Integer max, ValueComponent.AttributeModifiers.Operation operation, ValueComponent.AttributeModifiers.Slot slot) Creates an instance of aContainsrecord class.- Parameters:
attributes- the value for theattributesrecord componentid- the value for theidrecord componentmin- the value for theminrecord componentmax- the value for themaxrecord componentoperation- the value for theoperationrecord componentslot- the value for theslotrecord component
-
-
Method Details
-
builder
-
toJson
-
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). -
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
id
public net.kyori.adventure.key.Key id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
min
Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
slot
Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-