Package net.createmod.catnip.data
Class LongAttached<V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<? super LongAttached<?>>voidbooleanexceeds(long value) getValue()voidbooleanbooleanisZero()static <T> LongAttached<T>net.minecraft.nbt.CompoundTagserializeNBT(Function<V, net.minecraft.nbt.CompoundTag> serializer) static <V> LongAttached<V>with(long number, V value) static <V> LongAttached<V>withZero(V value)
-
Constructor Details
-
LongAttached
-
-
Method Details
-
with
-
withZero
-
isZero
public boolean isZero() -
exceeds
public boolean exceeds(long value) -
isOrBelowZero
public boolean isOrBelowZero() -
increment
public void increment() -
decrement
public void decrement() -
getValue
-
serializeNBT
-
comparator
-
read
public static <T> LongAttached<T> read(net.minecraft.nbt.CompoundTag nbt, Function<net.minecraft.nbt.CompoundTag, T> deserializer)
-