use of org.spongepowered.common.command.parameter.managed.operator.SpongeMaxOperator in project SpongeCommon by SpongePowered.
the class SpongeRegistryLoaders method operator.
public static RegistryLoader<Operator> operator() {
return RegistryLoader.of(l -> {
l.add(Operators.ADDITION, SpongeAdditionOperator::new);
l.add(Operators.ASSIGN, () -> new SpongeOperator("="));
l.add(Operators.DIVISION, SpongeDivisionOperator::new);
l.add(Operators.MAX, SpongeMinOperator::new);
l.add(Operators.MIN, SpongeMaxOperator::new);
l.add(Operators.MODULUS, SpongeModulusOperator::new);
l.add(Operators.MULTIPLICATION, SpongeMultiplicationOperator::new);
l.add(Operators.SUBTRACTION, SpongeSubtractionOperator::new);
l.add(Operators.SWAP, () -> new SpongeOperator("><"));
});
}
Aggregations