Package net.createmod.catnip.utility
Class IntAttached<V>
-
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 <T> com.mojang.serialization.Codec<IntAttached<T>> streamCodec(com.mojang.serialization.Codec<T> codec) static <B extends io.netty.buffer.ByteBuf,T>
net.minecraft.network.codec.StreamCodec<B, IntAttached<T>> streamCodec(net.minecraft.network.codec.StreamCodec<? super B, T> codec) static <V> IntAttached<V> with(int number, V value) static <V> IntAttached<V> withZero(V value)
-
Constructor Details
-
IntAttached
-
-
Method Details
-
with
-
withZero
-
comparator
-
read
public static <T> IntAttached<T> read(net.minecraft.nbt.CompoundTag nbt, Function<net.minecraft.nbt.CompoundTag, T> deserializer) -
streamCodec
public static <T> com.mojang.serialization.Codec<IntAttached<T>> streamCodec(com.mojang.serialization.Codec<T> codec) -
streamCodec
public static <B extends io.netty.buffer.ByteBuf,T> net.minecraft.network.codec.StreamCodec<B,IntAttached<T>> streamCodec(net.minecraft.network.codec.StreamCodec<? super B, T> codec) -
isZero
public boolean isZero() -
exceeds
public boolean exceeds(int value) -
isOrBelowZero
public boolean isOrBelowZero() -
increment
public void increment() -
decrement
public void decrement() -
getValue
-
serializeNBT
-