Package net.createmod.catnip.net
Class ServerboundConfigPacket<T>
java.lang.Object
net.createmod.catnip.net.ServerboundConfigPacket<T>
- All Implemented Interfaces:
BasePacket,ServerboundPacket
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServerboundConfigPacket(String modID, String path, T value) ServerboundConfigPacket(net.minecraft.network.FriendlyByteBuf buffer) -
Method Summary
Modifier and TypeMethodDescriptionstatic Objectdeserialize(Object type, String sValue) net.minecraft.resources.ResourceLocationgetId()voidhandle(net.minecraft.server.MinecraftServer server, net.minecraft.server.level.ServerPlayer player) voidwrite(net.minecraft.network.FriendlyByteBuf buffer)
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
ServerboundConfigPacket
-
ServerboundConfigPacket
public ServerboundConfigPacket(net.minecraft.network.FriendlyByteBuf buffer)
-
-
Method Details
-
write
public void write(net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
writein interfaceBasePacket
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfaceBasePacket
-
handle
public void handle(@Nullable net.minecraft.server.MinecraftServer server, @Nullable net.minecraft.server.level.ServerPlayer player) - Specified by:
handlein interfaceServerboundPacket
-
serialize
-
deserialize
-