Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

Pair

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.util.Pair;

Implements

Undocumented Interfaces

App<F, Mu<S>>

Members

Getter
script.zs
// Pair<F,S>.first as F
myPair.first

Return Type: F

getFirst() as F
script.zs
// Pair<F,S>.getFirst() as F;
myPair.getFirst();

Return Type: F

Getter
script.zs
// Pair<F,S>.second as S
myPair.second

Return Type: S

getSecond() as S
script.zs
// Pair<F,S>.getSecond() as S;
myPair.getSecond();

Return Type: S

static of<F, S>(first as F, second as S) as Pair<F, S>
script.zs
// Pair<F,S>.of<F, S>(first as F, second as S) as Pair<F, S>;
Pair<F, S>.of<F, S>(myF, myS);

Parameters:

first Type: F
second Type: S

Return Type: Pair<F, S>

swap() as Pair<S, F>
script.zs
// Pair<F,S>.swap() as Pair<S, F>;
myPair.swap();

Return Type: Pair<S, F>