mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Documented Alloy
This commit is contained in:
parent
850b2c4c9e
commit
5389f2a46c
@ -6,14 +6,37 @@ import me.mrCookieSlime.Slimefun.Objects.Category;
|
|||||||
|
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents an alloy, obtainable using the {@code SMELTERY}.
|
||||||
|
* <p>
|
||||||
|
* An alloy is generally made up of several minerals.
|
||||||
|
* As an example, {@code BRASS_INGOT} is made up of {@code COPPER_DUST}, {@code ZINC_DUST} and {@code COPPER_INGOT}.
|
||||||
|
*
|
||||||
|
* @since 4.0
|
||||||
|
*/
|
||||||
public class Alloy extends SlimefunItem {
|
public class Alloy extends SlimefunItem {
|
||||||
|
|
||||||
public Alloy(ItemStack item, String name, ItemStack[] recipe) {
|
/**
|
||||||
super(Categories.RESOURCES, item, name, RecipeType.SMELTERY, recipe);
|
* Constructs an Alloy automatically bound to {@code Categories.RESOURCES}.
|
||||||
|
*
|
||||||
|
* @param item the item corresponding to this Alloy
|
||||||
|
* @param id the id of this Alloy
|
||||||
|
* @param recipe the recipe to obtain this Alloy in the Smeltery
|
||||||
|
*/
|
||||||
|
public Alloy(ItemStack item, String id, ItemStack[] recipe) {
|
||||||
|
super(Categories.RESOURCES, item, id, RecipeType.SMELTERY, recipe);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Alloy(Category category, ItemStack item, String name, ItemStack[] recipe) {
|
/**
|
||||||
super(category, item, name, RecipeType.SMELTERY, recipe);
|
* Constructs an Alloy with a definable {@link Category}.
|
||||||
|
*
|
||||||
|
* @param category the category to bind this Alloy to
|
||||||
|
* @param item the item corresponding to this Alloy
|
||||||
|
* @param id the id of this Alloy
|
||||||
|
* @param recipe the recipe to obtain this Alloy in the Smeltery
|
||||||
|
*/
|
||||||
|
public Alloy(Category category, ItemStack item, String id, ItemStack[] recipe) {
|
||||||
|
super(category, item, id, RecipeType.SMELTERY, recipe);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user