类 VanillaPacketFilter
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToMessageEncoder<Packet<?>>
net.minecraftforge.network.filters.VanillaPacketFilter
- 所有已实现的接口:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelOutboundHandler
- 直接已知子类:
VanillaConnectionNetworkFilter
public abstract class VanillaPacketFilter
extends io.netty.handler.codec.MessageToMessageEncoder<Packet<?>>
A filter for vanilla impl packets.
-
嵌套类概要
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protected
VanillaPacketFilter
(Map<Class<? extends Packet<?>>, BiConsumer<Packet<?>, List<? super Packet<?>>>> handlers) -
方法概要
修饰符和类型方法说明protected void
protected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>, BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.protected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>, BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.protected abstract boolean
isNecessary
(Connection manager) Whether this filter is necessary on the given connection.从类继承的方法 io.netty.handler.codec.MessageToMessageEncoder
acceptOutboundMessage, write
从类继承的方法 io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
从类继承的方法 io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
字段详细资料
-
handlers
-
-
构造器详细资料
-
VanillaPacketFilter
-
-
方法详细资料
-
handler
@NotNull protected static <T extends Packet<?>> Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, handlerList<? super Packet<?>>>> (Class<T> cls, Function<T, ? extends Packet<?>> function) Helper function for building the handler map. -
handler
@NotNull protected static <T extends Packet<?>> Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, handlerList<? super Packet<?>>>> (Class<T> cls, BiConsumer<Packet<?>, List<? super Packet<?>>> consumer) Helper function for building the handler map. -
isNecessary
Whether this filter is necessary on the given connection. -
encode
- 指定者:
encode
在类中io.netty.handler.codec.MessageToMessageEncoder<Packet<?>>
-