Class LongAttached<V>

java.lang.Object
net.createmod.catnip.utility.Pair<Long,V>
net.createmod.catnip.utility.LongAttached<V>

public class LongAttached<V> extends Pair<Long,V>
  • Constructor Details

    • LongAttached

      protected LongAttached(Long first, V second)
  • Method Details

    • with

      public static <V> LongAttached<V> with(long number, V value)
    • withZero

      public static <V> LongAttached<V> withZero(V value)
    • comparator

      public static Comparator<? super LongAttached<?>> comparator()
    • read

      public static <T> LongAttached<T> read(net.minecraft.nbt.CompoundTag nbt, Function<net.minecraft.nbt.CompoundTag,T> deserializer)
    • streamCodec

      public static <T> com.mojang.serialization.Codec<LongAttached<T>> streamCodec(com.mojang.serialization.Codec<T> codec)
    • 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)
    • isZero

      public boolean isZero()
    • exceeds

      public boolean exceeds(long value)
    • isOrBelowZero

      public boolean isOrBelowZero()
    • increment

      public void increment()
    • decrement

      public void decrement()
    • getValue

      public V getValue()
    • serializeNBT

      public net.minecraft.nbt.CompoundTag serializeNBT(Function<V,net.minecraft.nbt.CompoundTag> serializer)