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

walkmc.extensions.MaterialDatas.kt Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
@file:Suppress("NOTHING_TO_INLINE")

package walkmc.extensions

import org.bukkit.*
import org.bukkit.material.*

/**
 * Creates a new empty material data.
 */
inline fun emptyData(): MaterialData = MaterialData(Material.AIR)

/**
 * Creates a new material data by the specified material.
 */
inline fun newData(material: Material): MaterialData = MaterialData(material)

/**
 * Creates a new material data by the specified material and data.
 */
inline fun newData(material: Material, data: Number): MaterialData = MaterialData(material, data.toByte())




© 2015 - 2025 Weber Informatics LLC | Privacy Policy