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

com.lop.devtools.monstera.files.beh.spawnrules.conditions.BehSpawnRulesHerd.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.spawnrules.conditions

class BehSpawnRulesHerd {
    val general = mutableMapOf()

    /**
     * 0..1
     *
     * This is an event that can be triggered from spawning
     */
    fun event(value: String) {
        general.apply {
            put("event", value)
        }
    }

    /**
     * 0..1
     *
     * This is the number of mobs spawned before the specified event is triggered
     * @param value: might be a Float (prob not)
     */
    fun eventSkipCount(value: Int) {
        general.apply {
            put("event_skip_count", value)
        }
    }

    /**
     * 1
     *
     * This is the maximum number of mobs that spawn in a herd
     */
    fun maxSize(value: Int) {
        general.apply {
            put("max_size", value)
        }
    }

    /**
     * 1
     *
     * 	This is the minimum number of mobs that spawn in a herd
     */
    fun minSize(value: Int) {
        general.apply {
            put("min_size", value)
        }
    }

    fun getData(): MutableMap {
        return general
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy