Class GeneralChoiceOperator

All Implemented Interfaces:
IOperator

public class GeneralChoiceOperator extends GeneralOperator
A general choice operator.
  • Constructor Details

    • GeneralChoiceOperator

      public GeneralChoiceOperator(String symbol, String operatorName, String interactName)
  • Method Details

    • validateTypes

      public net.minecraft.network.chat.MutableComponent validateTypes(IValueType[] input)
      Description copied from interface: IOperator
      Check the given input value types for this operator.
      Specified by:
      validateTypes in interface IOperator
      Overrides:
      validateTypes in class OperatorBase
      Parameters:
      input - The ordered input value types.
      Returns:
      An error or null if valid.
    • getConditionalOutputType

      public IValueType getConditionalOutputType(IVariable[] input)
      Description copied from interface: IOperator
      Get the output value type depending on the active input of the operator.
      Specified by:
      getConditionalOutputType in interface IOperator
      Overrides:
      getConditionalOutputType in class OperatorBase
      Parameters:
      input - The input that would be given during evaluation.
      Returns:
      The type of value that is achieved when this operator is executed.