Class ServerboundConfigPacket<T>

java.lang.Object
net.createmod.catnip.net.ServerboundConfigPacket<T>
All Implemented Interfaces:
BasePacket, ServerboundPacket

public class ServerboundConfigPacket<T> extends Object implements ServerboundPacket
  • Constructor Details

    • ServerboundConfigPacket

      public ServerboundConfigPacket(String modID, String path, T value)
    • ServerboundConfigPacket

      public ServerboundConfigPacket(net.minecraft.network.FriendlyByteBuf buffer)
  • Method Details

    • write

      public void write(net.minecraft.network.FriendlyByteBuf buffer)
      Specified by:
      write in interface BasePacket
    • handle

      public void handle(@Nullable net.minecraft.server.MinecraftServer server, @Nullable net.minecraft.server.level.ServerPlayer player)
      Specified by:
      handle in interface ServerboundPacket
    • serialize

      public String serialize(T value)
    • deserialize

      public static Object deserialize(Object type, String sValue)