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

com.lop.devtools.monstera.files.beh.entitiy.components.ComponentAddRider.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

import com.lop.devtools.monstera.addon.api.MonsteraFile
import com.lop.devtools.monstera.addon.api.MonsteraUnsafeMap

class ComponentAddRider: MonsteraFile {
    override val unsafe = Unsafe()

    inner class Unsafe: MonsteraUnsafeMap {
        val general = mutableMapOf()

        override fun getData(): MutableMap {
            entityType?.let { general["entity_type"] = it }
            spawnEvent?.let { general["spawn_event"] = it }
            return general
        }
    }

    var entityType: String? = null
    var spawnEvent: String? = null
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy