java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.VanillaItem
All Implemented Interfaces:
Placeable

public class VanillaItem extends SlimefunItem
Represents a vanilla item that is overridden by Slimefun (like ELYTRA).

A VanillaItem uses a non-modified ItemStack (no display name neither lore). When a VanillaItem gets disabled, its ItemState goes on State.VANILLA which automatically replace it in the recipes by its vanilla equivalent. A VanillaItem is also automatically useable in workbenches.

Author:
TheBusyBiscuit
See Also:
  • Constructor Details

    • VanillaItem

      @ParametersAreNonnullByDefault public VanillaItem(ItemGroup itemGroup, org.bukkit.inventory.ItemStack item, String id, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
      Instantiates a new VanillaItem with the given arguments.
      Parameters:
      itemGroup - the ItemGroup to bind this VanillaItem to
      item - the item corresponding to this VanillaItem
      id - the id of this VanillaItem
      recipeType - the type of the recipe to obtain this VanillaItem
      recipe - the recipe to obtain this VanillaItem