Record Class ClassificationEvent
java.lang.Object
java.lang.Record
com.xpdustry.nohorny.client.ClassificationEvent
- Record Components:
group- the classified buildings- the player associated with the buildings, ornullwhen unknownresponse- the classification result
public record ClassificationEvent(com.xpdustry.nohorny.common.VirtualBuilding.Group<? extends com.xpdustry.nohorny.common.MindustryImage> group, @Nullable com.xpdustry.nohorny.common.MindustryAuthor author, com.xpdustry.nohorny.common.ClassificationResponse response)
extends Record
Event fired when a tracked canvas or display group has been classified.
-
Constructor Summary
ConstructorsConstructorDescriptionClassificationEvent(com.xpdustry.nohorny.common.VirtualBuilding.Group<? extends com.xpdustry.nohorny.common.MindustryImage> group, @Nullable com.xpdustry.nohorny.common.MindustryAuthor author, com.xpdustry.nohorny.common.ClassificationResponse response) Creates an instance of aClassificationEventrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable com.xpdustry.nohorny.common.MindustryAuthorauthor()Returns the value of theauthorrecord component.final booleanIndicates whether some other object is "equal to" this one.com.xpdustry.nohorny.common.VirtualBuilding.Group<? extends com.xpdustry.nohorny.common.MindustryImage> group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.com.xpdustry.nohorny.common.ClassificationResponseresponse()Returns the value of theresponserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassificationEvent
public ClassificationEvent(com.xpdustry.nohorny.common.VirtualBuilding.Group<? extends com.xpdustry.nohorny.common.MindustryImage> group, @Nullable com.xpdustry.nohorny.common.MindustryAuthor author, com.xpdustry.nohorny.common.ClassificationResponse response) Creates an instance of aClassificationEventrecord class.
-
-
Method Details
-
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). -
group
-
author
-
response
-