mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Added Javadocs, removed unnecessary parameter
This commit is contained in:
parent
23fdd45b3d
commit
b2856755d9
@ -1,14 +1,33 @@
|
||||
package io.github.thebusybiscuit.slimefun4.implementation.items.tools;
|
||||
|
||||
import io.github.thebusybiscuit.slimefun4.api.player.PlayerBackpack;
|
||||
import me.mrCookieSlime.Slimefun.Lists.RecipeType;
|
||||
import me.mrCookieSlime.Slimefun.Lists.SlimefunItems;
|
||||
import me.mrCookieSlime.Slimefun.Objects.Category;
|
||||
import me.mrCookieSlime.Slimefun.api.SlimefunItemStack;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
/**
|
||||
* This class represents a {@link SlimefunBackpack} that has been restored via /sf backpack for retrieving items if the
|
||||
* original has been lost.
|
||||
* This backpack cannot be crafted nor crafted into other items. Its purpose is exclusively that of restoring
|
||||
* the lost inventory and shouldn't be used as a backpack replacement.
|
||||
* Right-Clicking will open the {@link Inventory} of the restored Backpack.
|
||||
*
|
||||
* @author Sfiguz7
|
||||
*
|
||||
* @see PlayerBackpack
|
||||
*/
|
||||
public class RestoredBackpack extends SlimefunBackpack {
|
||||
|
||||
public RestoredBackpack(Category category, SlimefunItemStack item) {
|
||||
super(54, category, item, RecipeType.NULL, new ItemStack[9]);
|
||||
/**
|
||||
* This will create a new {@link SlimefunBackpack} with the given arguments.
|
||||
*
|
||||
* @param category
|
||||
* the category to bind this {@link SlimefunBackpack} to
|
||||
*/
|
||||
public RestoredBackpack(Category category) {
|
||||
super(54, category, SlimefunItems.RESTORED_BACKPACK, RecipeType.NULL, new ItemStack[9]);
|
||||
this.hidden = true;
|
||||
}
|
||||
}
|
||||
|
@ -1204,7 +1204,7 @@ public final class SlimefunItemSetup {
|
||||
new ItemStack[] {SlimefunItems.GOLD_24K, null, SlimefunItems.GOLD_24K, new ItemStack(Material.LEATHER), SlimefunItems.GILDED_BACKPACK, new ItemStack(Material.LEATHER), SlimefunItems.GOLD_24K, null, SlimefunItems.GOLD_24K})
|
||||
.register(plugin);
|
||||
|
||||
new RestoredBackpack(categories.usefulItems, SlimefunItems.RESTORED_BACKPACK).register(plugin);
|
||||
new RestoredBackpack(categories.usefulItems).register(plugin);
|
||||
|
||||
new SlimefunItem(categories.technicalComponents, (SlimefunItemStack) SlimefunItems.MAGNET, RecipeType.SMELTERY,
|
||||
new ItemStack[] {SlimefunItems.NICKEL_INGOT, SlimefunItems.ALUMINUM_DUST, SlimefunItems.IRON_DUST, SlimefunItems.COBALT_INGOT, null, null, null, null, null})
|
||||
|
Loading…
Reference in New Issue
Block a user