All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lop.devtools.monstera.files.beh.entitiy.components.ComponentHurtByTarget.kt Maven / Gradle / Ivy

Go to download

A library and environment designed to streamline the development of Minecraft addons.

There is a newer version: 0.4.5
Show newest version
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