Record Class FEntityImpl
java.lang.Object
java.lang.Record
net.flectone.pulse.model.entity.FEntityImpl
- Record Components:
name- the display nameuuid- the entity idtype- the entity typeshowEntityName- the name shown on hover, or null to use the plain name
- All Implemented Interfaces:
FEntity
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface FEntity
UNKNOWN_NAME, UNKNOWN_TYPE, UNKNOWN_UUID -
Constructor Summary
ConstructorsConstructorDescriptionFEntityImpl(String name, UUID uuid, String type, @Nullable net.kyori.adventure.text.Component showEntityName) Creates an instance of aFEntityImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.@Nullable net.kyori.adventure.text.ComponentReturns the value of theshowEntityNamerecord 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
-
FEntityImpl
public FEntityImpl(String name, UUID uuid, String type, @Nullable net.kyori.adventure.text.Component showEntityName) Creates an instance of aFEntityImplrecord class.- Parameters:
name- the value for thenamerecord componentuuid- the value for theuuidrecord componenttype- the value for thetyperecord componentshowEntityName- the value for theshowEntityNamerecord component
-
-
Method Details
-
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). -
hashCode
-
builder
-
toString
-
name
-
uuid
-
type
-
showEntityName
public @Nullable net.kyori.adventure.text.Component showEntityName()Returns the value of theshowEntityNamerecord component.- Specified by:
showEntityNamein interfaceFEntity- Returns:
- the value of the
showEntityNamerecord component
-