Java Code Examples for com.mojang.datafixers.util.Pair#of()
The following examples show how to use
com.mojang.datafixers.util.Pair#of() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PlayerInventoryGCScreenHandler.java From Galacticraft-Rewoven with MIT License | 4 votes |
@Nullable @Override public Pair<Identifier, Identifier> getBackgroundSprite() { return Pair.of(PlayerScreenHandler.BLOCK_ATLAS_TEXTURE, new Identifier(Constants.MOD_ID, Constants.SlotSprites.OXYGEN_TANK)); }
Example 2
Source File: Typed.java From DataFixerUpper with MIT License | 4 votes |
public static <A, B> Typed<Pair<A, B>> pair(final Typed<A> first, final Typed<B> second) { return new Typed<>(DSL.and(first.type, second.type), first.ops, Pair.of(first.value, second.value)); }
Example 3
Source File: Proj2.java From DataFixerUpper with MIT License | 4 votes |
@Override public Pair<F, G2> update(final G2 newValue, final Pair<F, G> pair) { return Pair.of(pair.getFirst(), newValue); }
Example 4
Source File: InjTagged.java From DataFixerUpper with MIT License | 4 votes |
@Override public Pair<K, ?> build(final B b) { return Pair.of(key, b); }
Example 5
Source File: Proj1.java From DataFixerUpper with MIT License | 4 votes |
@Override public Pair<F2, G> update(final F2 newValue, final Pair<F, G> pair) { return Pair.of(newValue, pair.getSecond()); }