mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-26 22:10:22 +00:00
create NotPatternTemplate
This commit is contained in:
1 parent
1739c51ce6
commit
db93c9e2e9
1 file changed
+15
+15
@@ -0,0 +1,15 @@
|
|||||||
|
package com.dfsek.terra.addons.feature.locator.config.pattern;
|
||||||
|
|
||||||
|
import com.dfsek.tectonic.annotations.Value;
|
||||||
|
import com.dfsek.tectonic.loading.object.ObjectTemplate;
|
||||||
|
import com.dfsek.terra.addons.feature.locator.patterns.Pattern;
|
||||||
|
|
||||||
|
public class NotPatternTemplate implements ObjectTemplate<Pattern> {
|
||||||
|
@Value("pattern")
|
||||||
|
private Pattern pattern;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Pattern get() {
|
||||||
|
return pattern.not();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user