Package org.moddingx.libx.network
Class PacketHandler<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
java.lang.Object
org.moddingx.libx.network.PacketHandler<T>
public abstract class PacketHandler<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
extends Object
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PacketHandler
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.network.protocol.PacketFlow direction, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> codec, net.neoforged.neoforge.network.registration.HandlerThread thread) protected
PacketHandler
(net.minecraft.network.protocol.PacketFlow direction, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> codec, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type) -
Method Summary
Modifier and TypeMethodDescriptionfinal net.minecraft.network.codec.StreamCodec
<? super net.minecraft.network.RegistryFriendlyByteBuf, T> codec()
final net.minecraft.network.protocol.PacketFlow
void
final net.neoforged.neoforge.network.registration.HandlerThread
target()
net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type
<T> type()
-
Constructor Details
-
PacketHandler
-
PacketHandler
protected PacketHandler(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.network.protocol.PacketFlow direction, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> codec, net.neoforged.neoforge.network.registration.HandlerThread thread)
-
-
Method Details
-
type
-
direction
public final net.minecraft.network.protocol.PacketFlow direction() -
codec
public final net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,T> codec() -
target
public final net.neoforged.neoforge.network.registration.HandlerThread target() -
handle
-