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

net.chestmc.common.extensions.MaterialDatas.kt Maven / Gradle / Ivy

package net.chestmc.common.extensions

import org.bukkit.Material
import org.bukkit.material.MaterialData

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy