Class ServerboundConfigPacket<T>

java.lang.Object
net.createmod.catnip.net.packets.ServerboundConfigPacket<T>
All Implemented Interfaces:
BasePacketPayload, ServerboundPacketPayload, net.minecraft.network.protocol.common.custom.CustomPacketPayload

public class ServerboundConfigPacket<T> extends Object implements ServerboundPacketPayload
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.createmod.catnip.net.base.BasePacketPayload

    BasePacketPayload.PacketTypeProvider

    Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload

    net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,ServerboundConfigPacket>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ServerboundConfigPacket(String modID, String path, T value)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Object
    deserialize(Object type, String sValue)
     
     
    void
    handle(net.minecraft.server.level.ServerPlayer player)
    Called on the main client thread.
    serialize(T value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.createmod.catnip.net.base.BasePacketPayload

    type

    Methods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload

    toVanillaClientbound, toVanillaServerbound