diff options
author | SHsuperCM <shsupercm@gmail.com> | 2021-08-28 15:12:37 +0300 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2021-08-28 15:12:37 +0300 |
commit | ebf4f4e5bd294b82538de18cdf4c6c2de39a35f6 (patch) | |
tree | 79cb6f6eeb773ee6c975d30dbeaa4d0d8f7ff583 /src/main/java/shcm/shsupercm/fabric/citresewn/pack | |
parent | d5228ab2f1d1ecc36cae0fa056c575c4d85d3b56 (diff) | |
download | CITResewn-ebf4f4e5bd294b82538de18cdf4c6c2de39a35f6.tar.gz CITResewn-ebf4f4e5bd294b82538de18cdf4c6c2de39a35f6.tar.bz2 CITResewn-ebf4f4e5bd294b82538de18cdf4c6c2de39a35f6.zip |
v0.2.0: Added type=elytra support
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/pack')
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITElytra.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITElytra.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITElytra.java index e09e4fb..8c5bea8 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITElytra.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITElytra.java @@ -7,7 +7,16 @@ import shcm.shsupercm.fabric.citresewn.pack.CITPack; import java.util.Properties; public class CITElytra extends CIT { + public final Identifier textureIdentifier; + public CITElytra(CITPack pack, Identifier identifier, Properties properties) throws CITParseException { super(pack, identifier, properties); + try { + textureIdentifier = resolvePath(identifier, properties.getProperty("texture"), ".png", pack.resourcePack); + if (textureIdentifier == null) + throw new Exception("Cannot resolve texture"); + } catch (Exception e) { + throw new CITParseException(pack.resourcePack, identifier, (e.getClass() == Exception.class ? "" : e.getClass().getSimpleName() + ": ") + e.getMessage()); + } } } |