mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 14:50:56 +00:00
create NotPatternTemplate
This commit is contained in:
+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