1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-21 20:25:54 +00:00
Slimefun4/src/me/mrCookieSlime/Slimefun/Objects/SlimefunItem/VanillaItem.java

32 lines
1.1 KiB
Java
Raw Normal View History

2017-04-09 07:59:45 +00:00
package me.mrCookieSlime.Slimefun.Objects.SlimefunItem;
import org.bukkit.inventory.ItemStack;
import me.mrCookieSlime.Slimefun.Lists.RecipeType;
import me.mrCookieSlime.Slimefun.Objects.Category;
2017-08-14 15:43:37 +00:00
/**
* 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.
*
2017-08-14 16:15:59 +00:00
* @since 4.1.6
2017-08-14 15:43:37 +00:00
*/
2017-04-09 07:59:45 +00:00
public class VanillaItem extends SlimefunItem {
2017-08-14 15:43:37 +00:00
/**
* 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);
2017-04-09 07:59:45 +00:00
}
}