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.
A functional interface representing an operation on the components of a
BlockVec.-
Method Summary
Modifier and TypeMethodDescriptionapply(int blockX, int blockY, int blockZ) Applies this operator to the given block coordinates.static BlockVec.Operatoroperator(IntUnaryOperator operator) Creates an operator from the givenIntUnaryOperator.
-
Method Details
-
operator
Creates an operator from the givenIntUnaryOperator.- Parameters:
operator- the operator to convert- Returns:
- the resulting operator
-
apply
Applies this operator to the given block coordinates.- Parameters:
blockX- the blockX componentblockY- the blockY componentblockZ- the blockZ component- Returns:
- the resulting block vector
-