Record Class DebugPoiInfo
java.lang.Object
java.lang.Record
net.minestom.server.network.debug.info.DebugPoiInfo
public record DebugPoiInfo(Point position, DebugPoiInfo.Type type, int freeTicketCount)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDebugPoiInfo(Point position, DebugPoiInfo.Type type, int freeTicketCount) Creates an instance of aDebugPoiInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefreeTicketCountrecord component.final inthashCode()Returns a hash code value for this object.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
DebugPoiInfo
Creates an instance of aDebugPoiInforecord class.- Parameters:
position- the value for thepositionrecord componenttype- the value for thetyperecord componentfreeTicketCount- the value for thefreeTicketCountrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
freeTicketCount
public int freeTicketCount()Returns the value of thefreeTicketCountrecord component.- Returns:
- the value of the
freeTicketCountrecord component
-