diff options
author | SHsuperCM <shsupercm@gmail.com> | 2022-02-17 15:04:18 +0200 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2022-02-17 15:04:18 +0200 |
commit | a50fd46a00b56a15161ae3288cf2ad55d9badc17 (patch) | |
tree | 94fb50d073530e667a5f0f96b089231b109661ef /defaults/src/main/java/shcm/shsupercm/fabric/citresewn | |
parent | 1527eeccd5608ce1bee91336ef3b1185529ba67f (diff) | |
download | CITResewn-a50fd46a00b56a15161ae3288cf2ad55d9badc17.tar.gz CITResewn-a50fd46a00b56a15161ae3288cf2ad55d9badc17.tar.bz2 CITResewn-a50fd46a00b56a15161ae3288cf2ad55d9badc17.zip |
Added more common condition types
Diffstat (limited to 'defaults/src/main/java/shcm/shsupercm/fabric/citresewn')
-rw-r--r-- | defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/cit/conditions/ConditionDamageMask.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/cit/conditions/ConditionDamageMask.java b/defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/cit/conditions/ConditionDamageMask.java index 6c8e9e0..01d33fe 100644 --- a/defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/cit/conditions/ConditionDamageMask.java +++ b/defaults/src/main/java/shcm/shsupercm/fabric/citresewn/defaults/cit/conditions/ConditionDamageMask.java @@ -2,9 +2,12 @@ package shcm.shsupercm.fabric.citresewn.defaults.cit.conditions; import io.shcm.shsupercm.fabric.fletchingtable.api.Entrypoint; import shcm.shsupercm.fabric.citresewn.api.CITConditionContainer; +import shcm.shsupercm.fabric.citresewn.cit.CITCondition; import shcm.shsupercm.fabric.citresewn.cit.CITContext; import shcm.shsupercm.fabric.citresewn.cit.builtin.conditions.IntegerCondition; +import java.util.Set; + public class ConditionDamageMask extends IntegerCondition { @Entrypoint(CITConditionContainer.ENTRYPOINT) public static final CITConditionContainer<ConditionDamageMask> CONTAINER = new CITConditionContainer<>(ConditionDamageMask.class, ConditionDamageMask::new, @@ -27,4 +30,9 @@ public class ConditionDamageMask extends IntegerCondition { public int getMask() { return this.min; } + + @Override + public Set<Class<? extends CITCondition>> siblingConditions() { + return Set.of(ConditionDamage.class); + } } |