mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-09 17:26:07 +00:00
create NotPatternTemplate
This commit is contained in:
@@ -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