Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/kotlin/org/xodium/vanillaplus/VanillaPlus.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.xodium.vanillaplus.data.ConfigData
import org.xodium.vanillaplus.data.ConfigData.Companion.load
import org.xodium.vanillaplus.modules.*
import org.xodium.vanillaplus.modules.ArmorStandModule.info
import org.xodium.vanillaplus.recipes.ChainmailRecipe
import org.xodium.vanillaplus.recipes.PaintingRecipe
import org.xodium.vanillaplus.recipes.PaintingRecipe.info
import org.xodium.vanillaplus.recipes.RottenFleshRecipe
Expand Down Expand Up @@ -47,6 +48,7 @@ internal class VanillaPlus : JavaPlugin() {

logger.info(
listOf(
ChainmailRecipe,
PaintingRecipe,
RottenFleshRecipe,
WoodLogRecipe,
Expand Down
43 changes: 43 additions & 0 deletions src/main/kotlin/org/xodium/vanillaplus/recipes/ChainmailRecipe.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package org.xodium.vanillaplus.recipes

import org.bukkit.Material
import org.bukkit.NamespacedKey
import org.bukkit.inventory.ItemStack
import org.bukkit.inventory.ShapedRecipe
import org.xodium.vanillaplus.VanillaPlus.Companion.instance
import org.xodium.vanillaplus.interfaces.RecipeInterface

/** Represents an object handling chainmail recipe implementation within the system. */
internal object ChainmailRecipe : RecipeInterface {
override val recipes =
setOf(
ShapedRecipe(
NamespacedKey(instance, "chainmail_helmet"),
ItemStack.of(Material.CHAINMAIL_HELMET),
).apply {
shape("AAA", "A A")
setIngredient('A', Material.IRON_BARS)
},
ShapedRecipe(
NamespacedKey(instance, "chainmail_chestplate"),
ItemStack.of(Material.CHAINMAIL_CHESTPLATE),
).apply {
shape("A A", "AAA", "AAA")
setIngredient('A', Material.IRON_BARS)
},
ShapedRecipe(
NamespacedKey(instance, "chainmail_leggings"),
ItemStack.of(Material.CHAINMAIL_LEGGINGS),
).apply {
shape("AAA", "A A", "A A")
setIngredient('A', Material.IRON_BARS)
},
ShapedRecipe(
NamespacedKey(instance, "chainmail_boots"),
ItemStack.of(Material.CHAINMAIL_BOOTS),
).apply {
shape("A A", "A A")
setIngredient('A', Material.IRON_BARS)
},
)
}
Loading