Class IntAttached<V>
java.lang.Object
com.simibubi.create.foundation.utility.Pair<Integer,V>
com.simibubi.create.foundation.utility.IntAttached<V>
- Direct Known Subclasses:
CountedItemStackList.ItemStackEntry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<? super IntAttached<?>>voidbooleanexceeds(int value) getValue()voidbooleanbooleanisZero()static <T> IntAttached<T>net.minecraft.nbt.CompoundTagserializeNBT(Function<V, net.minecraft.nbt.CompoundTag> serializer) static <V> IntAttached<V>with(int number, V value) static <V> IntAttached<V>withZero(V value)
-
Constructor Details
-
IntAttached
-
-
Method Details
-
with
-
withZero
-
isZero
public boolean isZero() -
exceeds
public boolean exceeds(int value) -
isOrBelowZero
public boolean isOrBelowZero() -
increment
public void increment() -
decrement
public void decrement() -
getValue
-
serializeNBT
-
comparator
-
read
public static <T> IntAttached<T> read(net.minecraft.nbt.CompoundTag nbt, Function<net.minecraft.nbt.CompoundTag, T> deserializer)
-