Record Class PreTagKubeEvent.RemoveAllTagsFromAction
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.server.tag.PreTagKubeEvent.RemoveAllTagsFromAction
- All Implemented Interfaces:
Consumer<TagKubeEvent>
- Enclosing class:
PreTagKubeEvent
public static record PreTagKubeEvent.RemoveAllTagsFromAction(Object[] ignored)
extends Record
implements Consumer<TagKubeEvent>
-
Constructor Summary
ConstructorsConstructorDescriptionRemoveAllTagsFromAction(Object[] ignored) Creates an instance of aRemoveAllTagsFromActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Object[]ignored()Returns the value of theignoredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RemoveAllTagsFromAction
Creates an instance of aRemoveAllTagsFromActionrecord class.- Parameters:
ignored- the value for theignoredrecord component
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceConsumer<TagKubeEvent>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
ignored
Returns the value of theignoredrecord component.- Returns:
- the value of the
ignoredrecord component
-