Class NetworkingUtils

java.lang.Object
ml.pluto7073.pdapi.networking.NetworkingUtils

public final class NetworkingUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> void
    arrayToNetwork(net.minecraft.network.FriendlyByteBuf buf, T[] array, net.minecraft.network.codec.StreamEncoder<? super net.minecraft.network.FriendlyByteBuf,T> itemWriter)
     
    static <T> List<T>
    listFromNetwork(net.minecraft.network.FriendlyByteBuf buf, net.minecraft.network.codec.StreamDecoder<? super net.minecraft.network.FriendlyByteBuf,T> itemReader)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NetworkingUtils

      public NetworkingUtils()
  • Method Details

    • arrayToNetwork

      public static <T> void arrayToNetwork(net.minecraft.network.FriendlyByteBuf buf, T[] array, net.minecraft.network.codec.StreamEncoder<? super net.minecraft.network.FriendlyByteBuf,T> itemWriter)
    • listFromNetwork

      public static <T> List<T> listFromNetwork(net.minecraft.network.FriendlyByteBuf buf, net.minecraft.network.codec.StreamDecoder<? super net.minecraft.network.FriendlyByteBuf,T> itemReader)