bettermodel
Toggle table of contents
3.1.0-SNAPSHOT-495
bettermodel-mod-api
Target filter
bettermodel-mod-api
Switch theme
Search in API
Skip to content
bettermodel
bettermodel-mod-api
/
kr.toxicity.model.api.mod.platform
/
ModPlayer
Mod
Player
class
ModPlayer
:
Record
,
PlatformPlayer
Represents a Mod player wrapped as a
PlatformPlayer
.
Since
2.0.0
Parameters
source
the source NMS player connection
Members
Constructors
Mod
Player
Link copied to clipboard
@
ApiStatus.Internal
constructor
(
@
NotNull
source
:
@
NotNull
ServerPlayerConnection
)
Functions
equals
Link copied to clipboard
abstract
fun
equals
(
p
:
Any
)
:
Boolean
eye
Location
Link copied to clipboard
@
NotNull
open
fun
eyeLocation
(
)
:
@
NotNull
PlatformLocation
hash
Code
Link copied to clipboard
abstract
fun
hashCode
(
)
:
Int
location
Link copied to clipboard
@
NotNull
open
fun
location
(
)
:
@
NotNull
PlatformLocation
name
Link copied to clipboard
@
NotNull
open
fun
name
(
)
:
@
NotNull
String
of
Link copied to clipboard
@
NotNull
open
fun
of
(
@
NotNull
source
:
@
NotNull
ServerPlayerConnection
)
:
@
NotNull
ModPlayer
Creates a ModPlayer from the source.
registry
Link copied to clipboard
open
fun
registry
(
)
:
@
NotNull
Optional
<
EntityTrackerRegistry
>
task
Link copied to clipboard
open
fun
task
(
runnable
:
@
NotNull
Runnable
)
:
@
Nullable
ModelTask
task
Later
Link copied to clipboard
open
fun
taskLater
(
delay
:
Long
,
runnable
:
@
NotNull
Runnable
)
:
@
Nullable
ModelTask
to
String
Link copied to clipboard
abstract
fun
toString
(
)
:
String
tracker
Link copied to clipboard
open
fun
tracker
(
name
:
@
NotNull
String
)
:
@
NotNull
Optional
<
EntityTracker
>
uuid
Link copied to clipboard
@
NotNull
open
fun
uuid
(
)
:
@
NotNull
UUID