Macrocosm
0.5.2-alpha
jvm
Macrocosm
/
space.maxus.macrocosm.pets.types
/
TestPet
Test
Pet
object
TestPet
:
Pet
(
source
)
Members
Functions
abilities
For
Rarity
Link copied to clipboard
fun
abilitiesForRarity
(
rarity
:
Rarity
)
:
List
<
PetAbility
>
build
Item
Link copied to clipboard
fun
buildItem
(
player
:
MacrocosmPlayer
,
value
:
StoredPet
)
:
ItemStack
ensure
Requirement
Link copied to clipboard
fun
ensureRequirement
(
player
:
MacrocosmPlayer
,
ability
:
String
)
:
Pair
<
Boolean
,
StoredPet
?
>
on
Damage
Link copied to clipboard
fun
onDamage
(
e
:
PlayerDealDamageEvent
)
on
Kill
Link copied to clipboard
fun
onKill
(
e
:
PlayerKillEntityEvent
)
register
Item
Link copied to clipboard
fun
registerItem
(
)
spawn
Link copied to clipboard
fun
spawn
(
player
:
MacrocosmPlayer
,
key
:
String
)
:
PetInstance
?
special
Stats
Link copied to clipboard
fun
specialStats
(
level
:
Int
,
rarity
:
Rarity
)
:
SpecialStatistics
stats
Link copied to clipboard
fun
stats
(
level
:
Int
,
rarity
:
Rarity
)
:
Statistics
Properties
abilities
Link copied to clipboard
val
abilities
:
List
<
PetAbility
>
effects
Link copied to clipboard
open
override
val
effects
:
LazyEffects
head
Skin
Link copied to clipboard
val
headSkin
:
String
id
Link copied to clipboard
val
id
:
Identifier
max
Level
Link copied to clipboard
val
maxLevel
:
Int
=
100
name
Link copied to clipboard
val
name
:
String
preferred
Skill
Link copied to clipboard
val
preferredSkill
:
SkillType