mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Close #1154 add dungeon loot
This commit is contained in:
1 parent
4cf74e4aa1
commit
9d9ea95ed1
28 files changed
+924
-69
No files matched your search
@@ -31,6 +31,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkGenerator;
|
||||
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
import net.minecraftforge.common.config.Property;
|
||||
import net.minecraftforge.fml.common.IFuelHandler;
|
||||
@@ -305,6 +306,15 @@ public class PluginManager {
|
||||
return hiddenItems;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
public static Set<String> getLootPoolNames() {
|
||||
Set<String> lootPoolNames = new HashSet<>();
|
||||
for (IForestryPlugin plugin : loadedPlugins) {
|
||||
plugin.addLootPoolNames(lootPoolNames);
|
||||
}
|
||||
return lootPoolNames;
|
||||
}
|
||||
|
||||
private static boolean isEnabled(Configuration config, IForestryPlugin plugin) {
|
||||
ForestryPlugin info = plugin.getClass().getAnnotation(ForestryPlugin.class);
|
||||
|
||||
|
||||
Reference in new issue
Block a user