Search in sources :

Example 1 with SpongeDivisionOperator

use of org.spongepowered.common.command.parameter.managed.operator.SpongeDivisionOperator 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("><"));
    });
}
Also used : SpongeModulusOperator(org.spongepowered.common.command.parameter.managed.operator.SpongeModulusOperator) SpongeMultiplicationOperator(org.spongepowered.common.command.parameter.managed.operator.SpongeMultiplicationOperator) SpongeAdditionOperator(org.spongepowered.common.command.parameter.managed.operator.SpongeAdditionOperator) SpongeOperator(org.spongepowered.common.command.parameter.managed.operator.SpongeOperator) SpongeMaxOperator(org.spongepowered.common.command.parameter.managed.operator.SpongeMaxOperator) SpongeSubtractionOperator(org.spongepowered.common.command.parameter.managed.operator.SpongeSubtractionOperator) SpongeMinOperator(org.spongepowered.common.command.parameter.managed.operator.SpongeMinOperator) SpongeDivisionOperator(org.spongepowered.common.command.parameter.managed.operator.SpongeDivisionOperator)

Aggregations

SpongeAdditionOperator (org.spongepowered.common.command.parameter.managed.operator.SpongeAdditionOperator)1 SpongeDivisionOperator (org.spongepowered.common.command.parameter.managed.operator.SpongeDivisionOperator)1 SpongeMaxOperator (org.spongepowered.common.command.parameter.managed.operator.SpongeMaxOperator)1 SpongeMinOperator (org.spongepowered.common.command.parameter.managed.operator.SpongeMinOperator)1 SpongeModulusOperator (org.spongepowered.common.command.parameter.managed.operator.SpongeModulusOperator)1 SpongeMultiplicationOperator (org.spongepowered.common.command.parameter.managed.operator.SpongeMultiplicationOperator)1 SpongeOperator (org.spongepowered.common.command.parameter.managed.operator.SpongeOperator)1 SpongeSubtractionOperator (org.spongepowered.common.command.parameter.managed.operator.SpongeSubtractionOperator)1