diff options
author | SHsuperCM <shsupercm@gmail.com> | 2022-02-13 11:01:45 +0200 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2022-02-13 11:01:45 +0200 |
commit | fe02178b220ebf57225bd092bfdb0d8b88067c33 (patch) | |
tree | 181746d9bdc746df55edc75558236fef13085b3d /defaults/src/main/java/shcm | |
parent | 49318a4452f629274e96001700006e0b4a1464a5 (diff) | |
download | CITResewn-fe02178b220ebf57225bd092bfdb0d8b88067c33.tar.gz CITResewn-fe02178b220ebf57225bd092bfdb0d8b88067c33.tar.bz2 CITResewn-fe02178b220ebf57225bd092bfdb0d8b88067c33.zip |
Generified CITs to their type
Diffstat (limited to 'defaults/src/main/java/shcm')
-rw-r--r-- | defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/cit/types/TypeItem.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/cit/types/TypeItem.java b/defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/cit/types/TypeItem.java index 8e3bcbc..1b0e98e 100644 --- a/defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/cit/types/TypeItem.java +++ b/defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/cit/types/TypeItem.java @@ -26,11 +26,11 @@ public class TypeItem extends CITType { super(TypeItem.class, TypeItem::new, "item"); } - public Map<Item, Set<CIT>> loaded = new IdentityHashMap<>(); + public Map<Item, Set<CIT<TypeItem>>> loaded = new IdentityHashMap<>(); @Override - public void load(List<CIT> parsedCITs) { - for (CIT cit : parsedCITs) + public void load(List<CIT<TypeItem>> parsedCITs) { + for (CIT<TypeItem> cit : parsedCITs) for (CITCondition condition : cit.conditions) if (condition instanceof ConditionItems items) for (Item item : items.items) |