Record Class EntityReference
java.lang.Object
java.lang.Record
su.nightexpress.excellentclaims.api.highlight.EntityReference
-
Constructor Summary
ConstructorsConstructorDescriptionEntityReference(int id, UUID uuid, su.nightexpress.nightcore.util.geodata.pos.BlockPos pos) Creates an instance of aEntityReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.su.nightexpress.nightcore.util.geodata.pos.BlockPospos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
EntityReference
Creates an instance of aEntityReferencerecord class.- Parameters:
id- the value for theidrecord componentuuid- the value for theuuidrecord componentpos- the value for theposrecord 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. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
pos
public su.nightexpress.nightcore.util.geodata.pos.BlockPos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-