mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
generalize filled flask to hidden item
This commit is contained in:
parent
4bb2bc8f26
commit
9d388445c1
@ -1,4 +1,4 @@
|
|||||||
package io.github.thebusybiscuit.slimefun4.implementation.items.magical;
|
package io.github.thebusybiscuit.slimefun4.implementation.items;
|
||||||
|
|
||||||
import io.github.thebusybiscuit.slimefun4.api.items.ItemGroup;
|
import io.github.thebusybiscuit.slimefun4.api.items.ItemGroup;
|
||||||
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
|
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
|
||||||
@ -11,16 +11,14 @@ import javax.annotation.ParametersAreNonnullByDefault;
|
|||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@link FilledKnowledgeFlask} is a {@link NotConfigurable} {@link SlimefunItem}
|
* The {@link HiddenItem} is a {@link NotConfigurable} {@link SlimefunItem}
|
||||||
* that results from interacting with a {@link KnowledgeFlask}.
|
* that is hidden from the Slimefun guide.
|
||||||
*
|
|
||||||
* @see KnowledgeFlask
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class FilledKnowledgeFlask extends SlimefunItem implements NotConfigurable {
|
public class HiddenItem extends SlimefunItem implements NotConfigurable {
|
||||||
|
|
||||||
@ParametersAreNonnullByDefault
|
@ParametersAreNonnullByDefault
|
||||||
public FilledKnowledgeFlask(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) {
|
public HiddenItem(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) {
|
||||||
super(itemGroup, item, recipeType, recipe);
|
super(itemGroup, item, recipeType, recipe);
|
||||||
this.setHidden(true);
|
this.setHidden(true);
|
||||||
}
|
}
|
@ -26,6 +26,7 @@ import io.github.thebusybiscuit.slimefun4.core.attributes.Radioactivity;
|
|||||||
import io.github.thebusybiscuit.slimefun4.core.handlers.RainbowTickHandler;
|
import io.github.thebusybiscuit.slimefun4.core.handlers.RainbowTickHandler;
|
||||||
import io.github.thebusybiscuit.slimefun4.implementation.Slimefun;
|
import io.github.thebusybiscuit.slimefun4.implementation.Slimefun;
|
||||||
import io.github.thebusybiscuit.slimefun4.implementation.SlimefunItems;
|
import io.github.thebusybiscuit.slimefun4.implementation.SlimefunItems;
|
||||||
|
import io.github.thebusybiscuit.slimefun4.implementation.items.HiddenItem;
|
||||||
import io.github.thebusybiscuit.slimefun4.implementation.items.RadioactiveItem;
|
import io.github.thebusybiscuit.slimefun4.implementation.items.RadioactiveItem;
|
||||||
import io.github.thebusybiscuit.slimefun4.implementation.items.VanillaItem;
|
import io.github.thebusybiscuit.slimefun4.implementation.items.VanillaItem;
|
||||||
import io.github.thebusybiscuit.slimefun4.implementation.items.altar.AncientAltar;
|
import io.github.thebusybiscuit.slimefun4.implementation.items.altar.AncientAltar;
|
||||||
@ -137,7 +138,6 @@ import io.github.thebusybiscuit.slimefun4.implementation.items.gps.GPSControlPan
|
|||||||
import io.github.thebusybiscuit.slimefun4.implementation.items.gps.GPSMarkerTool;
|
import io.github.thebusybiscuit.slimefun4.implementation.items.gps.GPSMarkerTool;
|
||||||
import io.github.thebusybiscuit.slimefun4.implementation.items.gps.GPSTransmitter;
|
import io.github.thebusybiscuit.slimefun4.implementation.items.gps.GPSTransmitter;
|
||||||
import io.github.thebusybiscuit.slimefun4.implementation.items.magical.BeeWings;
|
import io.github.thebusybiscuit.slimefun4.implementation.items.magical.BeeWings;
|
||||||
import io.github.thebusybiscuit.slimefun4.implementation.items.magical.FilledKnowledgeFlask;
|
|
||||||
import io.github.thebusybiscuit.slimefun4.implementation.items.magical.InfernalBonemeal;
|
import io.github.thebusybiscuit.slimefun4.implementation.items.magical.InfernalBonemeal;
|
||||||
import io.github.thebusybiscuit.slimefun4.implementation.items.magical.InfusedHopper;
|
import io.github.thebusybiscuit.slimefun4.implementation.items.magical.InfusedHopper;
|
||||||
import io.github.thebusybiscuit.slimefun4.implementation.items.magical.InfusedMagnet;
|
import io.github.thebusybiscuit.slimefun4.implementation.items.magical.InfusedMagnet;
|
||||||
@ -1366,7 +1366,7 @@ public final class SlimefunItemSetup {
|
|||||||
new SlimefunItemStack(SlimefunItems.FLASK_OF_KNOWLEDGE, 8))
|
new SlimefunItemStack(SlimefunItems.FLASK_OF_KNOWLEDGE, 8))
|
||||||
.register(plugin);
|
.register(plugin);
|
||||||
|
|
||||||
new FilledKnowledgeFlask(categories.magicalGadgets, SlimefunItems.FILLED_FLASK_OF_KNOWLEDGE, RecipeType.INTERACT,
|
new HiddenItem(categories.magicalGadgets, SlimefunItems.FILLED_FLASK_OF_KNOWLEDGE, RecipeType.INTERACT,
|
||||||
new ItemStack[] {SlimefunItems.FLASK_OF_KNOWLEDGE, null, null, null, null, null, null, null, null})
|
new ItemStack[] {SlimefunItems.FLASK_OF_KNOWLEDGE, null, null, null, null, null, null, null, null})
|
||||||
.register(plugin);
|
.register(plugin);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user