类 CustomPayloadEvent.Context
java.lang.Object
net.minecraftforge.event.network.CustomPayloadEvent.Context
- 封闭类:
CustomPayloadEvent
Context for
CustomPayloadEvent
-
字段概要
字段修饰符和类型字段说明private final boolean
private final Connection
TheConnection
for this message.private boolean
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<T> io.netty.util.Attribute
<T> attr
(io.netty.util.AttributeKey<T> key) enqueueWork
(Runnable runnable) boolean
@Nullable ServerPlayer
When available, gets the sender for packets that are sent from a client to the server.boolean
boolean
void
setPacketHandled
(boolean packetHandled)
-
字段详细资料
-
connection
TheConnection
for this message. -
client
private final boolean client -
packetHandled
private boolean packetHandled
-
-
构造器详细资料
-
Context
-
-
方法详细资料
-
isClientSide
public boolean isClientSide() -
isServerSide
public boolean isServerSide() -
getConnection
-
attr
public <T> io.netty.util.Attribute<T> attr(io.netty.util.AttributeKey<T> key) -
setPacketHandled
public void setPacketHandled(boolean packetHandled) -
getPacketHandled
public boolean getPacketHandled() -
enqueueWork
-
getSender
When available, gets the sender for packets that are sent from a client to the server.
-