Class Couple<T>
java.lang.Object
com.simibubi.create.foundation.utility.Pair<T,T>
com.simibubi.create.foundation.utility.Couple<T>
- All Implemented Interfaces:
Iterable<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()static <T> Couple<T>create(com.google.common.base.Supplier<T> factory)static <T> Couple<T>create(T first, T second)static <T> Couple<T>createWithContext(Function<Boolean,T> factory)static <S> Couple<S>deserializeEach(net.minecraft.nbt.ListTag list, Function<net.minecraft.nbt.CompoundTag,S> deserializer)voidvoidforEachWithContext(BiConsumer<T,Boolean> consumer)<S> voidforEachWithParams(BiConsumer<T,S> function, Couple<S> values)get(boolean first)iterator()<S> Couple<S><S> Couple<S>mapWithContext(BiFunction<T,Boolean,S> function)<S, R> Couple<S>mapWithParams(BiFunction<T,R,S> function, Couple<R> values)voidvoidreplaceWithContext(BiFunction<T,Boolean,T> function)<S> voidreplaceWithParams(BiFunction<T,S,T> function, Couple<S> values)net.minecraft.nbt.ListTagserializeEach(Function<T,net.minecraft.nbt.CompoundTag> serializer)voidstream()swap()Methods inherited from class com.simibubi.create.foundation.utility.Pair
equals, getFirst, getSecond, hashCode, of, setFirst, setSecond, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
spliterator
-
Constructor Details
-
Couple
-
-
Method Details
-
create
-
create
-
createWithContext
-
get
-
set
-
copy
-
map
-
mapWithContext
-
mapWithParams
-
replace
-
replaceWithContext
-
replaceWithParams
-
forEach
-
forEachWithContext
-
forEachWithParams
-
swap
-
serializeEach
-
deserializeEach
-
iterator
-
stream
-