Record Class NotCondition
java.lang.Object
java.lang.Record
net.neoforged.neoforge.common.conditions.NotCondition
- All Implemented Interfaces:
ICondition
-
Nested Class Summary
Nested classes/interfaces inherited from interface ICondition
ICondition.IContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<NotCondition> private final IConditionThe field for thevaluerecord component.Fields inherited from interface ICondition
LIST_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionNotCondition(ICondition value) Creates an instance of aNotConditionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends ICondition> codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantest(ICondition.IContext context) toString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
value
The field for thevaluerecord component. -
CODEC
-
-
Constructor Details
-
NotCondition
Creates an instance of aNotConditionrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
test
- Specified by:
testin interfaceICondition
-
codec
- Specified by:
codecin interfaceICondition
-
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). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-