BadAirCaves

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
@Serializable
data class BadAirCavesOptions(var enabled: Boolean = true, var damageAmount: Double = 1.0, var applyPoison: Boolean = true, var heavyGas: Boolean = true, var gasCloudRadius: Int = 4, var poisonDurationTicks: Int = 100, var poisonLevel: Int = 1, var particle: Particle = Particle.WITCH, var particleCountPerCloudPart: Int = 16, var creationChancePerSecond: Double = 0.001, var cloudMaxSize: Int = 300, var particleVisibilityRange: Float = 32.0f, var spreadsPerCloudPerSecond: Int = 5, var decayAfterTicks: Int = 120 * 20) : ModuleOptions
Link copied to clipboard
class GasCloud(val center: Location, val points: MutableList<BadAirCaves.GasCloudPoint> = mutableListOf())
Link copied to clipboard
class GasCloudPoint(val location: Location, val size: Float, val createdAtTicks: Long, val direction: Vector)

Properties

Link copied to clipboard
val chunkMap: <Error class: unknown class>
Link copied to clipboard
val clouds: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
open override val description: String
Link copied to clipboard
open val id: String
Link copied to clipboard
val interval: Long = 20
Link copied to clipboard
open val name: String
Link copied to clipboard
open override var options: ModuleOptions
Link copied to clipboard
Link copied to clipboard
val typeSafeOptions: <Error class: unknown class>

Functions

Link copied to clipboard
Link copied to clipboard
fun moveWhileValid(location: Location, vector: Vector, steps: Int, isValid: (Location) -> Boolean): Boolean

Move max steps into direction vector starting at location while the location is valid.

Link copied to clipboard
open override fun onDisable()

Called when the module is disabled.

Link copied to clipboard
open override fun onEnable()

Called when the module is enabled.