mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-17 10:55:06 +00:00
Hide some items from JEI
This commit is contained in:
1 parent
8b9c48bf5c
commit
2ddad6ec37
12 files changed
+104
-12
No files matched your search
@@ -27,6 +27,7 @@ import java.util.Set;
|
||||
|
||||
import net.minecraft.command.CommandHandler;
|
||||
import net.minecraft.command.ICommand;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
@@ -287,6 +288,15 @@ public class PluginManager {
|
||||
}
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
public static List<ItemStack> getHiddenItems() {
|
||||
List<ItemStack> hiddenItems = new ArrayList<>();
|
||||
for (IForestryPlugin plugin : loadedPlugins) {
|
||||
plugin.getHiddenItems(hiddenItems);
|
||||
}
|
||||
return hiddenItems;
|
||||
}
|
||||
|
||||
private static boolean isEnabled(Configuration config, IForestryPlugin plugin) {
|
||||
ForestryPlugin info = plugin.getClass().getAnnotation(ForestryPlugin.class);
|
||||
|
||||
|
||||
Reference in new issue
Block a user