com.lop.devtools.monstera.files.beh.entitiy.components.ComponentHurtByTarget.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of monstera Show documentation
Show all versions of monstera Show documentation
A library and environment designed to streamline the development of Minecraft addons.
package com.lop.devtools.monstera.files.beh.entitiy.components
class ComponentHurtByTarget {
val general = mutableMapOf()
var priority: Int? = null
var alertSameType: Boolean? = null
var hurtOwner: Boolean? = null
fun entityTypes(value: BehEntityTypes.() -> Unit) {
general["entity_types"] = BehEntityTypes().apply(value).getData()
}
fun getData(): MutableMap {
priority?.let { general["priority"] = it }
alertSameType?.let { general["alert_same_type"] = it }
hurtOwner?.let { general["hurt_owner"] = it }
return general
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy