|
43 | 43 | import static smartin.miapi.Miapi.MOD_ID;
|
44 | 44 | import static smartin.miapi.modules.abilities.util.ItemAbilityManager.useAbilityRegistry;
|
45 | 45 | import static smartin.miapi.attributes.AttributeRegistry.*;
|
| 46 | +import static smartin.miapi.modules.conditions.ConditionManager.moduleConditionRegistry; |
46 | 47 |
|
47 | 48 | public class RegistryInventory {
|
48 | 49 | public static final Supplier<RegistrarManager> registrar = Suppliers.memoize(() -> RegistrarManager.get(MOD_ID));
|
@@ -218,16 +219,16 @@ public static void setup() {
|
218 | 219 | registerMiapi(editOptions, "skin", new SkinOptions());
|
219 | 220 |
|
220 | 221 | //CONDITIONS
|
221 |
| - registerMiapi(ConditionManager.moduleConditionRegistry, "true", new TrueCondition()); |
222 |
| - registerMiapi(ConditionManager.moduleConditionRegistry, "not", new NotCondition()); |
223 |
| - registerMiapi(ConditionManager.moduleConditionRegistry, "or", new OrCondition()); |
224 |
| - registerMiapi(ConditionManager.moduleConditionRegistry, "and", new AndCondition()); |
225 |
| - registerMiapi(ConditionManager.moduleConditionRegistry, "child", new ChildCondition()); |
226 |
| - registerMiapi(ConditionManager.moduleConditionRegistry, "parent", new ParentCondition()); |
227 |
| - registerMiapi(ConditionManager.moduleConditionRegistry, "otherModule", new OtherModuleModuleCondition()); |
228 |
| - registerMiapi(ConditionManager.moduleConditionRegistry, "module", new ModuleTypeCondition()); |
229 |
| - registerMiapi(ConditionManager.moduleConditionRegistry, "material", new MaterialCondition()); |
230 |
| - registerMiapi(ConditionManager.moduleConditionRegistry, "tag", new TagCondition()); |
| 222 | + registerMiapi(moduleConditionRegistry, "true", new TrueCondition()); |
| 223 | + registerMiapi(moduleConditionRegistry, "not", new NotCondition()); |
| 224 | + registerMiapi(moduleConditionRegistry, "or", new OrCondition()); |
| 225 | + registerMiapi(moduleConditionRegistry, "and", new AndCondition()); |
| 226 | + registerMiapi(moduleConditionRegistry, "child", new ChildCondition()); |
| 227 | + registerMiapi(moduleConditionRegistry, "parent", new ParentCondition()); |
| 228 | + registerMiapi(moduleConditionRegistry, "otherModule", new OtherModuleModuleCondition()); |
| 229 | + registerMiapi(moduleConditionRegistry, "module", new ModuleTypeCondition()); |
| 230 | + registerMiapi(moduleConditionRegistry, "material", new MaterialCondition()); |
| 231 | + registerMiapi(moduleConditionRegistry, "tag", new TagCondition()); |
231 | 232 |
|
232 | 233 | //MODULEPROPERTIES
|
233 | 234 | try{
|
@@ -265,6 +266,7 @@ public static void setup() {
|
265 | 266 | registerMiapi(moduleProperties, MiningLevelProperty.KEY, new MiningLevelProperty());
|
266 | 267 | registerMiapi(moduleProperties, TagProperty.KEY, new TagProperty());
|
267 | 268 |
|
| 269 | + // ABILITIES |
268 | 270 | registerMiapi(useAbilityRegistry, "throw", new ThrowingAbility());
|
269 | 271 | registerMiapi(useAbilityRegistry, "block", new BlockAbility());
|
270 | 272 | registerMiapi(useAbilityRegistry, RiptideProperty.KEY, new RiptideAbility());
|
|
0 commit comments