getFirst

static Optional<WorldgetFirst(Predicate<World> filter)

Gets the first world matching the specified filter

Return

the first world matching the specified filter

Parameters

filter

the world filter

static Optional<WorldgetFirst(Array<int> worldNumber)

Gets the first world with one of the specified world numbers

Return

the first world with one of the specified world numbers

Parameters

worldNumber

the world numbers