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
/
ModEntity
Mod
Entity
class
ModEntity
:
Record
,
PlatformEntity
Represents a Mod entity wrapped as a
PlatformEntity
.
Since
2.0.0
Parameters
source
the source NMS entity
Members
Constructors
Mod
Entity
Link copied to clipboard
@
ApiStatus.Internal
constructor
(
@
NotNull
source
:
@
NotNull
Entity
)
Functions
equals
Link copied to clipboard
abstract
fun
equals
(
p
:
Any
)
:
Boolean
hash
Code
Link copied to clipboard
abstract
fun
hashCode
(
)
:
Int
location
Link copied to clipboard
@
NotNull
open
fun
location
(
)
:
@
NotNull
PlatformLocation
of
Link copied to clipboard
@
NotNull
open
fun
of
(
@
NotNull
source
:
@
NotNull
Entity
)
:
@
NotNull
ModEntity
Creates a ModEntity 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