added ender armour, need to polish thing and give the ingot an item model - disabled at eagerLoad for now
This commit is contained in:
@@ -8,6 +8,7 @@ import net.minecraft.tags.TagKey
|
||||
import net.minecraft.world.entity.EquipmentSlot
|
||||
import net.minecraft.world.entity.player.Player
|
||||
import net.minecraft.world.item.Item
|
||||
import net.minecraft.world.item.ToolMaterial
|
||||
import net.minecraft.world.item.equipment.ArmorMaterial
|
||||
import net.minecraft.world.item.equipment.ArmorMaterials
|
||||
import net.minecraft.world.item.equipment.ArmorType
|
||||
@@ -24,6 +25,10 @@ abstract class GenericGearSet: GenericItemSet() {
|
||||
open val materialDefinition: GearMaterialDef
|
||||
get() = GearMaterialDef.NETHERITE
|
||||
|
||||
val toolMaterial: ToolMaterial by lazy {
|
||||
materialDefinition.toToolMaterial()
|
||||
}
|
||||
|
||||
val armorMaterial: ArmorMaterial by lazy {
|
||||
materialDefinition.toArmorMaterial()
|
||||
}
|
||||
@@ -89,3 +94,6 @@ fun GearMaterialDef.toArmorMaterial(): ArmorMaterial {
|
||||
)
|
||||
}
|
||||
|
||||
fun GearMaterialDef.toToolMaterial(): ToolMaterial {
|
||||
TODO()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user