类 VanillaConnectionNetworkFilter
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToMessageEncoder<Packet<?>>
net.minecraftforge.network.filters.VanillaPacketFilter
net.minecraftforge.network.filters.VanillaConnectionNetworkFilter
- 所有已实现的接口:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelOutboundHandler
A filter for impl packets, used to filter/modify parts of vanilla impl messages that
will cause errors or warnings on vanilla clients, for example entity attributes that are added by Forge or mods.
-
嵌套类概要
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
字段概要
从类继承的字段 net.minecraftforge.network.filters.VanillaPacketFilter
handlers
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static @NotNull ClientboundCommandsPacket
Filter for SCommandListPacket.private static @NotNull ClientboundUpdateAttributesPacket
Filter for SEntityPropertiesPacket.protected boolean
isNecessary
(Connection connection) Whether this filter is necessary on the given connection.从类继承的方法 net.minecraftforge.network.filters.VanillaPacketFilter
encode, handler, handler
从类继承的方法 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
-
构造器详细资料
-
VanillaConnectionNetworkFilter
public VanillaConnectionNetworkFilter()
-
-
方法详细资料
-
isNecessary
从类复制的说明:VanillaPacketFilter
Whether this filter is necessary on the given connection.- 指定者:
isNecessary
在类中VanillaPacketFilter
-
filterEntityProperties
@NotNull private static @NotNull ClientboundUpdateAttributesPacket filterEntityProperties(ClientboundUpdateAttributesPacket msg) Filter for SEntityPropertiesPacket. Filters out any entity attributes that are not in the "minecraft" namespace. A vanilla client would ignore these with an error log. -
filterCommandList
@NotNull private static @NotNull ClientboundCommandsPacket filterCommandList(ClientboundCommandsPacket packet) Filter for SCommandListPacket. UsesCommandTreeCleaner
to filter out any ArgumentTypes that are not in the "minecraft" or "brigadier" namespace. A vanilla client would fail to deserialize the packet and disconnect with an error message if these were sent.
-