Package | Description |
---|---|
net.minecraftforge.fml.common.network | |
net.minecraftforge.fml.common.network.handshake | |
net.minecraftforge.fml.common.network.internal |
Modifier and Type | Field and Description |
---|---|
private FMLProxyPacket |
FMLNetworkEvent.CustomPacketEvent.packet |
private FMLProxyPacket |
FMLNetworkEvent.CustomPacketEvent.reply |
Modifier and Type | Field and Description |
---|---|
static io.netty.util.AttributeKey<java.lang.ThreadLocal<java.lang.ref.WeakReference<FMLProxyPacket>>> |
FMLIndexedMessageToMessageCodec.INBOUNDPACKETTRACKER
Make this accessible to subclasses
|
Modifier and Type | Method and Description |
---|---|
FMLProxyPacket |
FMLNetworkEvent.CustomPacketEvent.getPacket()
The packet that generated the event
|
FMLProxyPacket |
FMLNetworkEvent.CustomPacketEvent.getReply()
Set this packet to reply to the originator
|
Modifier and Type | Method and Description |
---|---|
protected void |
NetworkEventFiringHandler.channelRead0(io.netty.channel.ChannelHandlerContext ctx,
FMLProxyPacket msg) |
protected void |
FMLIndexedMessageToMessageCodec.decode(io.netty.channel.ChannelHandlerContext ctx,
FMLProxyPacket msg,
java.util.List<java.lang.Object> out) |
(package private) void |
FMLEventChannel.fireRead(FMLProxyPacket msg,
io.netty.channel.ChannelHandlerContext ctx) |
(package private) abstract FMLNetworkEvent.CustomPacketEvent<?> |
FMLEventChannel.EventFactory.make(FMLProxyPacket msg) |
abstract java.util.List<NetworkDispatcher> |
FMLOutboundHandler.OutboundTarget.selectNetworks(java.lang.Object args,
io.netty.channel.ChannelHandlerContext context,
FMLProxyPacket packet) |
void |
FMLEventChannel.sendTo(FMLProxyPacket pkt,
EntityPlayerMP player)
Send to a specific player
|
void |
FMLEventChannel.sendToAll(FMLProxyPacket pkt)
Send a packet to all on the server
|
void |
FMLEventChannel.sendToAllAround(FMLProxyPacket pkt,
NetworkRegistry.TargetPoint point)
Send to all around a point
|
void |
FMLEventChannel.sendToAllTracking(FMLProxyPacket pkt,
Entity entity)
Send to all tracking the entity
This is not equivalent to
FMLEventChannel.sendToAllTracking(FMLProxyPacket, NetworkRegistry.TargetPoint)
because entities have different tracking distances based on their type. |
void |
FMLEventChannel.sendToAllTracking(FMLProxyPacket pkt,
NetworkRegistry.TargetPoint point)
Send to all tracking the point
The
range field of the NetworkRegistry.TargetPoint is ignored. |
void |
FMLEventChannel.sendToDimension(FMLProxyPacket pkt,
int dimensionId)
Send to all in a dimension
|
void |
FMLEventChannel.sendToServer(FMLProxyPacket pkt)
Send to the server
|
void |
FMLNetworkEvent.CustomPacketEvent.setReply(FMLProxyPacket reply) |
protected void |
FMLIndexedMessageToMessageCodec.testMessageValidity(FMLProxyPacket msg)
Called to verify the message received.
|
Constructor and Description |
---|
ClientCustomPacketEvent(NetworkManager manager,
FMLProxyPacket packet) |
CustomPacketEvent(S thing,
java.lang.Class<S> type,
NetworkManager manager,
FMLProxyPacket packet) |
ServerCustomPacketEvent(NetworkManager manager,
FMLProxyPacket packet) |
Modifier and Type | Method and Description |
---|---|
static FMLProxyPacket |
FMLHandshakeMessage.makeCustomChannelRegistration(java.util.Set<java.lang.String> channels) |
Modifier and Type | Method and Description |
---|---|
protected void |
ChannelRegistrationHandler.channelRead0(io.netty.channel.ChannelHandlerContext ctx,
FMLProxyPacket msg) |
void |
NetworkDispatcher.sendProxy(FMLProxyPacket msg) |
Modifier and Type | Method and Description |
---|---|
FMLProxyPacket |
FMLProxyPacket.copy() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<FMLProxyPacket> |
FMLNetworkHandler.forwardHandshake(FMLMessage.CompleteHandshake push,
NetworkDispatcher target,
Side side) |
Modifier and Type | Method and Description |
---|---|
protected void |
FMLRuntimeCodec.testMessageValidity(FMLProxyPacket msg) |