Package net.createmod.catnip.utility
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 <B extends io.netty.buffer.ByteBuf,T>
net.minecraft.network.codec.StreamCodec<B, LongAttached<T>> streamCodec(net.minecraft.network.codec.StreamCodec<? super B, T> codec) 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) -
streamCodec
public static <B extends io.netty.buffer.ByteBuf,T> net.minecraft.network.codec.StreamCodec<B,LongAttached<T>> streamCodec(net.minecraft.network.codec.StreamCodec<? super B, T> codec)
-