Interface BlockVec.Operator

Enclosing class:
BlockVec
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface BlockVec.Operator
A functional interface representing an operation on the components of a BlockVec.
  • Method Details

    • operator

      static BlockVec.Operator operator(IntUnaryOperator operator)
      Creates an operator from the given IntUnaryOperator.
      Parameters:
      operator - the operator to convert
      Returns:
      the resulting operator
    • apply

      BlockVec apply(int blockX, int blockY, int blockZ)
      Applies this operator to the given block coordinates.
      Parameters:
      blockX - the blockX component
      blockY - the blockY component
      blockZ - the blockZ component
      Returns:
      the resulting block vector