Macrocosm
0.5.2-alpha
jvm
Macrocosm
/
space.maxus.macrocosm.pets
/
PetInstance
Pet
Instance
class
PetInstance
(
entityId
:
UUID
,
val
base
:
Identifier
,
var
hashKey
:
String
)
(
source
)
Members
Constructors
Pet
Instance
Link copied to clipboard
constructor
(
entityId
:
UUID
,
base
:
Identifier
,
hashKey
:
String
)
Functions
add
Experience
Link copied to clipboard
fun
addExperience
(
player
:
MacrocosmPlayer
,
amount
:
Double
,
skill
:
SkillType
)
despawn
Link copied to clipboard
fun
despawn
(
player
:
MacrocosmPlayer
)
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
float
Tick
Link copied to clipboard
fun
floatTick
(
player
:
MacrocosmPlayer
,
pos
:
Location
)
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
level
Link copied to clipboard
fun
level
(
player
:
MacrocosmPlayer
)
:
Int
rarity
Link copied to clipboard
fun
rarity
(
player
:
MacrocosmPlayer
)
:
Rarity
referring
Link copied to clipboard
fun
referring
(
player
:
MacrocosmPlayer
)
:
StoredPet
respawn
Link copied to clipboard
fun
respawn
(
player
:
MacrocosmPlayer
)
table
Link copied to clipboard
fun
table
(
player
:
MacrocosmPlayer
)
:
LevelingTable
teleport
Link copied to clipboard
fun
teleport
(
player
:
MacrocosmPlayer
)
Properties
base
Link copied to clipboard
val
base
:
Identifier
floating
Paused
Link copied to clipboard
var
floatingPaused
:
Boolean
hash
Key
Link copied to clipboard
var
hashKey
:
String
prototype
Link copied to clipboard
val
prototype
:
Pet