Macrocosm
0.5.2-alpha
jvm
Macrocosm
/
space.maxus.macrocosm.entity
/
CustomEntity
Custom
Entity
class
CustomEntity
(
paperId
:
UUID
)
:
MacrocosmEntity
(
source
)
Members
Constructors
Custom
Entity
Link copied to clipboard
constructor
(
paperId
:
UUID
)
Functions
add
Extra
Nbt
Link copied to clipboard
open
fun
addExtraNbt
(
nbt
:
CompoundTag
)
build
Name
Link copied to clipboard
open
fun
buildName
(
)
:
Component
calculate
Stats
Link copied to clipboard
open
fun
calculateStats
(
)
:
Statistics
damage
Link copied to clipboard
open
override
fun
damage
(
amount
:
Float
,
damager
:
Entity
?
,
kind
:
DamageKind
)
extra
Weight
Link copied to clipboard
open
fun
extraWeight
(
)
:
Float
get
Id
Link copied to clipboard
open
override
fun
getId
(
entity
:
LivingEntity
)
:
Identifier
is
Damage
Fatal
Link copied to clipboard
open
fun
isDamageFatal
(
damage
:
Float
)
:
Boolean
kill
Link copied to clipboard
open
override
fun
kill
(
damager
:
Entity
?
)
load
Changes
Link copied to clipboard
open
fun
loadChanges
(
entity
:
LivingEntity
)
loot
Pool
Link copied to clipboard
open
override
fun
lootPool
(
player
:
MacrocosmPlayer
?
)
:
LootPool
pre
Modify
Link copied to clipboard
open
fun
preModify
(
entity
:
LivingEntity
)
reward
Experience
Link copied to clipboard
open
fun
rewardExperience
(
player
:
MacrocosmPlayer
)
spawn
Link copied to clipboard
open
fun
spawn
(
at
:
Location
)
:
LivingEntity
special
Stats
Link copied to clipboard
open
fun
specialStats
(
)
:
SpecialStatistics
try
Retrieve
Uuid
Link copied to clipboard
open
override
fun
tryRetrieveUuid
(
)
:
UUID
Properties
base
Specials
Link copied to clipboard
open
override
var
baseSpecials
:
SpecialStatistics
base
Stats
Link copied to clipboard
open
override
var
baseStats
:
Statistics
boots
Link copied to clipboard
open
override
var
boots
:
MacrocosmItem
?
chestplate
Link copied to clipboard
open
override
var
chestplate
:
MacrocosmItem
?
current
Health
Link copied to clipboard
open
override
var
currentHealth
:
Float
experience
Link copied to clipboard
open
override
val
experience
:
Double
helmet
Link copied to clipboard
open
override
var
helmet
:
MacrocosmItem
?
leggings
Link copied to clipboard
open
override
var
leggings
:
MacrocosmItem
?
level
Link copied to clipboard
open
val
level
:
Int
main
Hand
Link copied to clipboard
open
override
var
mainHand
:
MacrocosmItem
?
name
Link copied to clipboard
open
override
val
name
:
Component
off
Hand
Link copied to clipboard
open
override
var
offHand
:
MacrocosmItem
?
player
Friendly
Link copied to clipboard
open
override
val
playerFriendly
:
Boolean
rewarding
Skill
Link copied to clipboard
open
override
val
rewardingSkill
:
SkillType
type
Link copied to clipboard
open
override
val
type
:
EntityType