Macrocosm
0.5.2-alpha
jvm
Macrocosm
/
space.maxus.macrocosm.loot
/
DropRarity
Drop
Rarity
open
class
DropRarity
(
val
broadcast
:
Boolean
,
val
rarity
:
Int
,
val
greet
:
Boolean
=
false
,
val
name
:
String
?
=
null
,
val
odds
:
String
=
"<green>Guaranteed"
)
(
source
)
Inheritors
Pet
Members
Constructors
Drop
Rarity
Link copied to clipboard
constructor
(
broadcast
:
Boolean
,
rarity
:
Int
,
greet
:
Boolean
=
false
,
name
:
String
?
=
null
,
odds
:
String
=
"<green>Guaranteed"
)
Types
Companion
Link copied to clipboard
object
Companion
Pet
Link copied to clipboard
data
class
Pet
(
val
inner
:
DropRarity
)
:
DropRarity
Functions
announce
Entity
Drop
Link copied to clipboard
fun
announceEntityDrop
(
player
:
Player
,
item
:
MacrocosmItem
,
drop
:
Drop
,
artificial
:
Boolean
=
false
)
Properties
broadcast
Link copied to clipboard
val
broadcast
:
Boolean
greet
Link copied to clipboard
val
greet
:
Boolean
=
false
name
Link copied to clipboard
val
name
:
String
?
=
null
odds
Link copied to clipboard
val
odds
:
String
rarity
Link copied to clipboard
val
rarity
:
Int