This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
generated from katorlys-samples/Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
188 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.github.katorly.starlinutils; | ||
|
||
import org.bukkit.Bukkit; | ||
import org.bukkit.Material; | ||
import org.bukkit.NamespacedKey; | ||
import org.bukkit.inventory.ItemStack; | ||
import org.bukkit.inventory.ShapelessRecipe; | ||
|
||
public class Recipe { | ||
public static void registerConcreteRecipe() { //Add colored concrete recipe onEnable | ||
Recipe.concreteRecipe(Material.BLACK_CONCRETE, Material.BLACK_DYE); | ||
Recipe.concreteRecipe(Material.BLUE_CONCRETE, Material.BLUE_DYE); | ||
Recipe.concreteRecipe(Material.BROWN_CONCRETE, Material.BROWN_DYE); | ||
Recipe.concreteRecipe(Material.CYAN_CONCRETE, Material.CYAN_DYE); | ||
Recipe.concreteRecipe(Material.GRAY_CONCRETE, Material.GRAY_DYE); | ||
Recipe.concreteRecipe(Material.GREEN_CONCRETE, Material.GREEN_DYE); | ||
Recipe.concreteRecipe(Material.LIGHT_BLUE_CONCRETE, Material.LIGHT_BLUE_DYE); | ||
Recipe.concreteRecipe(Material.LIGHT_GRAY_CONCRETE, Material.LIGHT_GRAY_DYE); | ||
Recipe.concreteRecipe(Material.LIME_CONCRETE, Material.LIME_DYE); | ||
Recipe.concreteRecipe(Material.MAGENTA_CONCRETE, Material.MAGENTA_DYE); | ||
Recipe.concreteRecipe(Material.ORANGE_CONCRETE, Material.ORANGE_DYE); | ||
Recipe.concreteRecipe(Material.PINK_CONCRETE, Material.PINK_DYE); | ||
Recipe.concreteRecipe(Material.PURPLE_CONCRETE, Material.PURPLE_DYE); | ||
Recipe.concreteRecipe(Material.RED_CONCRETE, Material.RED_DYE); | ||
Recipe.concreteRecipe(Material.WHITE_CONCRETE, Material.WHITE_DYE); | ||
Recipe.concreteRecipe(Material.YELLOW_CONCRETE, Material.YELLOW_DYE); | ||
} | ||
|
||
public static void concreteRecipe(Material concrete, Material dye) { //8*colored concrete = 1*dye + 8*stones. | ||
ShapelessRecipe concreteRecipe = new ShapelessRecipe(new NamespacedKey(StarlinUtils.INSTANCE, concrete.toString() + "_recipe"), new ItemStack(concrete, 8)); | ||
concreteRecipe = concreteRecipe.addIngredient(1, dye).addIngredient(8, Material.STONE); | ||
Bukkit.addRecipe(concreteRecipe); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...torly/starlin_l2/backup/ConfigReader.java → ...rly/starlinutils/backup/ConfigReader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...b/katorly/starlin_l2/backup/Messager.java → ...katorly/starlinutils/backup/Messager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...b/katorly/starlin_l2/commands/delfly.java → ...katorly/starlinutils/commands/delfly.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../katorly/starlin_l2/commands/givefly.java → ...atorly/starlinutils/commands/givefly.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../katorly/starlin_l2/commands/listfly.java → ...atorly/starlinutils/commands/listfly.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.