mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Documented VanillaItem
This commit is contained in:
parent
00ed41fcbe
commit
a6fcd5146b
@ -5,9 +5,27 @@ import org.bukkit.inventory.ItemStack;
|
||||
import me.mrCookieSlime.Slimefun.Lists.RecipeType;
|
||||
import me.mrCookieSlime.Slimefun.Objects.Category;
|
||||
|
||||
/**
|
||||
* Represents a vanilla item that is overridden by Slimefun (like {@code ELYTRA}).
|
||||
* <p>
|
||||
* A VanillaItem uses a non-modified ItemStack (no display name neither lore).
|
||||
* When a VanillaItem gets disabled, its {@link SlimefunItem.State} goes on {@code State.VANILLA} which automatically
|
||||
* replace it in the recipes by its vanilla equivalent.
|
||||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
public class VanillaItem extends SlimefunItem {
|
||||
|
||||
public VanillaItem(Category category, ItemStack item, String name, RecipeType recipeType, ItemStack[] recipe) {
|
||||
super(category, item, name, recipeType, recipe);
|
||||
/**
|
||||
* Constructs a VanillaItem.
|
||||
*
|
||||
* @param category the category to bind this VanillaItem to
|
||||
* @param item the item corresponding to this VanillaItem
|
||||
* @param id the id of this VanillaItem
|
||||
* @param recipeType the type of the recipe to obtain this VanillaItem
|
||||
* @param recipe the recipe to obtain this VanillaItem
|
||||
*/
|
||||
public VanillaItem(Category category, ItemStack item, String id, RecipeType recipeType, ItemStack[] recipe) {
|
||||
super(category, item, id, recipeType, recipe);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user