Package codechicken.lib.packet
Interface StreamNetworkChannel.ClientPacketHandle
- All Known Subinterfaces:
StreamNetworkChannel.BidirectionalPacketHandle
- Enclosing class:
StreamNetworkChannel
public static interface StreamNetworkChannel.ClientPacketHandle
A handle for constructing client-bound packets.
-
Method Summary
Modifier and TypeMethodDescriptiontoClient(net.minecraft.core.RegistryAccess registryAccess) Construct a packet bound for a client.default StreamPacket.ToClienttoClient(net.minecraft.world.entity.Entity entity) Construct a packet bound for a client.default StreamPacket.ToClienttoClient(net.minecraft.world.entity.player.Player player) Construct a packet bound for a client.default StreamPacket.ToClienttoClient(net.minecraft.world.level.block.entity.BlockEntity tile) Construct a packet bound for a client.default StreamPacket.ToClienttoClient(net.minecraft.world.level.Level level) Construct a packet bound for a client.
-
Method Details
-
toClient
Construct a packet bound for a client.- Parameters:
registryAccess- TheRegistryAccessinstance.- Returns:
- The packet.
-
toClient
Construct a packet bound for a client.- Parameters:
level- A level to grab theRegistryAccessfrom.- Returns:
- The packet.
-
toClient
Construct a packet bound for a client.- Parameters:
player- A player to grab theRegistryAccessfrom.- Returns:
- The packet.
-
toClient
Construct a packet bound for a client.- Parameters:
tile- A BlockEntity to grab theRegistryAccessfrom.- Returns:
- The packet.
-
toClient
Construct a packet bound for a client.- Parameters:
entity- An entity to grab theRegistryAccessfrom.- Returns:
- The packet.
-