Interface PacketCodec.ICodecAction

Enclosing class:
PacketCodec

public static interface PacketCodec.ICodecAction
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(net.minecraft.network.FriendlyByteBuf input)
    Decode from the input.
    void
    encode(Object object, net.minecraft.network.FriendlyByteBuf output)
    Encode the given object.
  • Method Details

    • encode

      void encode(Object object, net.minecraft.network.FriendlyByteBuf output)
      Encode the given object.
      Parameters:
      object - The object to encode into the output.
      output - The byte array to encode to.
    • decode

      Object decode(net.minecraft.network.FriendlyByteBuf input)
      Decode from the input.
      Parameters:
      input - The byte array to decode from.
      Returns:
      The object to return after reading it from the input.