mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-24 05:54:32 +00:00
Beta13:
* @Mod->item searching has been added using item subsets, allowing for things like `@Blocks.MobSpawners->zombie` * DoubleFilteredFilter - Requires both filters to apply (Subset & Pattern) * Finally updated the README.md
This commit is contained in:
1 parent
427793b41d
commit
63d6d20c96
6 files changed
+64
-8
No files matched your search
@@ -265,6 +265,7 @@ public class ItemInfo
|
||||
API.addOption(new HandlerDumper("tools.dump.handlers"));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private static void parseModItems() {
|
||||
HashMap<String, ItemStackSet> modSubsets = new HashMap<>();
|
||||
for (Item item : (Iterable<Item>) Item.itemRegistry) {
|
||||
@@ -330,6 +331,7 @@ public class ItemInfo
|
||||
API.addSubset("Blocks.MobSpawners", ItemStackSet.of(Blocks.mob_spawner));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private static void searchItems() {
|
||||
ItemStackSet tools = new ItemStackSet();
|
||||
ItemStackSet picks = new ItemStackSet();
|
||||
@@ -452,6 +454,7 @@ public class ItemInfo
|
||||
addEntityEgg(EntityIronGolem.class, 0xC5C2C1, 0xffe1cc);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private static void addEntityEgg(Class<?> entity, int i, int j) {
|
||||
int id = (Integer)EntityList.classToIDMapping.get(entity);
|
||||
EntityList.entityEggs.put(id, new EntityEggInfo(id, i, j));
|
||||
|
||||
Reference in new issue
Block a user