diff options
| author | SHsuperCM <shsupercm@gmail.com> | 2022-02-13 07:20:35 +0200 |
|---|---|---|
| committer | SHsuperCM <shsupercm@gmail.com> | 2022-02-13 07:20:35 +0200 |
| commit | a48789c45fb474a953df65e342a3bad27fd89870 (patch) | |
| tree | 73c6b32f5dc8cf488afb606d789e73ce8f0a32aa /src/main/java/shcm/shsupercm/fabric/citresewn/pack | |
| parent | 207048093b7727ff1dec581e6cb523a7a3086c59 (diff) | |
| download | CITResewn-a48789c45fb474a953df65e342a3bad27fd89870.tar.gz CITResewn-a48789c45fb474a953df65e342a3bad27fd89870.tar.bz2 CITResewn-a48789c45fb474a953df65e342a3bad27fd89870.zip | |
Implemented items condition
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/pack')
| -rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/pack/cit/CITCondition.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cit/CITCondition.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cit/CITCondition.java index b5aa315..c16d96a 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cit/CITCondition.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cit/CITCondition.java @@ -1,5 +1,6 @@ package shcm.shsupercm.fabric.citresewn.pack.cit; +import shcm.shsupercm.fabric.citresewn.CITResewn; import shcm.shsupercm.fabric.citresewn.ex.CITParsingException; import shcm.shsupercm.fabric.citresewn.pack.format.PropertyGroup; import shcm.shsupercm.fabric.citresewn.pack.format.PropertyValue; @@ -20,6 +21,10 @@ public abstract class CITCondition { public abstract boolean test(CITContext context); + protected void warn(String message, PropertyValue value, PropertyGroup properties) { + CITResewn.logWarnLoading("Warning: " + CITParsingException.descriptionOf(message, properties, value.position())); + } + protected int parseInteger(PropertyValue value, PropertyGroup properties) throws CITParsingException { try { return Integer.parseInt(value.value()); |
