Package ke.ric.renderer.api
Record Class CapturedEntity
java.lang.Object
java.lang.Record
ke.ric.renderer.api.CapturedEntity
Frozen identity/classification used for selector masks, never a live Bukkit entity.
-
Constructor Summary
ConstructorsConstructorDescriptionCapturedEntity(UUID uuid, String type, boolean living, int objectId) Creates an instance of aCapturedEntityrecord 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.booleanliving()Returns the value of thelivingrecord component.intobjectId()Returns the value of theobjectIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
CapturedEntity
Creates an instance of aCapturedEntityrecord class.- Parameters:
uuid- the value for theuuidrecord componenttype- the value for thetyperecord componentliving- the value for thelivingrecord componentobjectId- the value for theobjectIdrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
living
public boolean living()Returns the value of thelivingrecord component.- Returns:
- the value of the
livingrecord component
-
objectId
public int objectId()Returns the value of theobjectIdrecord component.- Returns:
- the value of the
objectIdrecord component
-