Record Class FPlayer.FPlayerImpl
java.lang.Object
java.lang.Record
net.flectone.pulse.model.entity.FPlayer.FPlayerImpl
- Enclosing interface:
FPlayer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface FEntity
FEntity.FEntityImplNested classes/interfaces inherited from interface FPlayer
FPlayer.FPlayerImpl -
Field Summary
Fields inherited from interface FEntity
UNKNOWN_NAME, UNKNOWN_TYPE, UNKNOWN_UUIDFields inherited from interface FPlayer
CONSOLE_ID, CONSOLE_TYPE, INTEGRATION_TYPE, PLAYER_TYPE, UNKNOWN, UNKNOWN_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()List<net.kyori.adventure.text.Component> Returns the value of theconstantsrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.@Nullable Stringip()Returns the value of theiprecord component.booleanbooleanbooleanisOnline()name()Returns the value of thenamerecord component.booleanonline()Returns the value of theonlinerecord 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.withConstants(@Nullable List<net.kyori.adventure.text.Component> constants) withOnline(boolean online) withShowEntityName(@Nullable net.kyori.adventure.text.Component showEntityName)
-
Constructor Details
-
FPlayerImpl
public FPlayerImpl(String name, UUID uuid, String type, Integer id, boolean online, @Nullable String ip, List<net.kyori.adventure.text.Component> constants, @Nullable net.kyori.adventure.text.Component showEntityName) Creates an instance of aFPlayerImplrecord class.- Parameters:
name- the value for thenamerecord componentuuid- the value for theuuidrecord componenttype- the value for thetyperecord componentid- the value for theidrecord componentonline- the value for theonlinerecord componentip- the value for theiprecord componentconstants- the value for theconstantsrecord componentshowEntityName- the value for theshowEntityNamerecord component
-
-
Method Details
-
isConsole
-
isIntegration
public boolean isIntegration()- Specified by:
isIntegrationin interfaceFPlayer
-
isOnline
-
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. -
hashCode
-
withConstants
- Specified by:
withConstantsin interfaceFPlayer
-
builder
-
toBuilder
-
withName
-
withUuid
-
withType
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withId
-
withOnline
- Specified by:
withOnlinein interfaceFPlayer- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withIp
-
withShowEntityName
public FPlayer.FPlayerImpl withShowEntityName(@Nullable net.kyori.adventure.text.Component showEntityName) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
toString
-
name
-
uuid
-
type
-
id
-
online
public boolean online()Returns the value of theonlinerecord component.- Returns:
- the value of the
onlinerecord component
-
ip
-
constants
-
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
-