本文整理汇总了Java中ch.njol.skript.lang.util.SimpleExpression类的典型用法代码示例。如果您正苦于以下问题:Java SimpleExpression类的具体用法?Java SimpleExpression怎么用?Java SimpleExpression使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SimpleExpression类属于ch.njol.skript.lang.util包,在下文中一共展示了SimpleExpression类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: match
import ch.njol.skript.lang.util.SimpleExpression; //导入依赖的package包/类
@Override
public boolean match(final Enderman entity) {
return hand == null || SimpleExpression.check(hand, new Checker<ItemType>() {
@SuppressWarnings("deprecation")
@Override
public boolean check(final @Nullable ItemType t) {
return t != null && t.isOfType(entity.getCarriedMaterial().getItemTypeId(), entity.getCarriedMaterial().getData());
}
}, false, false);
}
示例2: match
import ch.njol.skript.lang.util.SimpleExpression; //导入依赖的package包/类
@Override
public boolean match(final Sheep entity) {
return (sheared == 0 || entity.isSheared() == (sheared == 1))
&& (colors == null || SimpleExpression.check(colors, new Checker<Color>() {
@Override
public boolean check(final @Nullable Color c) {
return c != null && entity.getColor() == c.getWoolColor();
}
}, false, false));
}
示例3: check
import ch.njol.skript.lang.util.SimpleExpression; //导入依赖的package包/类
@Override
public boolean check(Event e, Checker<? super T> c, boolean negated) {
return SimpleExpression.check(getAll(e), c, negated, getAnd());
}
示例4: WrapperExpression
import ch.njol.skript.lang.util.SimpleExpression; //导入依赖的package包/类
public WrapperExpression(final SimpleExpression<? extends T> expr) {
this.expr = expr;
}
示例5: check
import ch.njol.skript.lang.util.SimpleExpression; //导入依赖的package包/类
@Override
public boolean check(final Event e, final Checker<? super T> c, final boolean negated) {
return SimpleExpression.check(getAll(e), c, negated, getAnd());
}
示例6: check
import ch.njol.skript.lang.util.SimpleExpression; //导入依赖的package包/类
@Override
public boolean check(final Event e, final Checker<? super String> c, final boolean negated) {
return SimpleExpression.check(getAll(e), c, negated, false);
}