
walkmc.extensions.MaterialDatas.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
@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