SybSafetyFirst
Toggle table of contents
unknown
jvm
Platform filter
jvm
Switch theme
Search in API
SybSafetyFirst
SybSafetyFirst
/
com.sybsuper.sybsafetyfirst.modules
/
BabyCreatures
Baby
Creatures
class
BabyCreatures
:
Module
Members
Constructors
Baby
Creatures
Link copied to clipboard
constructor
(
)
Types
Baby
Creatures
Options
Link copied to clipboard
@
Serializable
data
class
BabyCreaturesOptions
(
var
enabled
:
Boolean
=
true
,
var
creatures
:
Map
<
EntityType
,
BabyCreatures.CreatureOptions
>
=
EntityType.entries.filter { type -> type.entityClass?.let { LivingEntity::class.java.isAssignableFrom(it) && !Ageable::class.java.isAssignableFrom(it) } ?: false }.associateWith { CreatureOptions() }
)
:
ModuleOptions
Creature
Options
Link copied to clipboard
@
Serializable
data
class
CreatureOptions
(
var
babyChance
:
Float
=
0.1f
,
var
speedMultiplier
:
Double
=
1.5
,
var
scale
:
Double
=
0.5
)
Properties
description
Link copied to clipboard
open
override
val
description
:
String
id
Link copied to clipboard
open
val
id
:
String
name
Link copied to clipboard
open
val
name
:
String
options
Link copied to clipboard
open
override
var
options
:
ModuleOptions
type
Safe
Options
Link copied to clipboard
val
typeSafeOptions
:
<Error class: unknown class>
Functions
current
Enabled
Instance
Link copied to clipboard
open
fun
currentEnabledInstance
(
)
:
Module
?
on
Link copied to clipboard
fun
on
(
e
:
CreatureSpawnEvent
)
on
Disable
Link copied to clipboard
open
fun
onDisable
(
)
Called when the module is disabled.
on
Enable
Link copied to clipboard
open
fun
onEnable
(
)
Called when the module is enabled.