MCNetworkManager.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:NOVA-Core 作者:
/**
 * @param packet the packet to send to the players in the dimension
 * @param dimId the dimension id to send to.
 */
public void sendToAllInDimension(PacketAbstract packet, int dimId) {
    this.channelEnumMap.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.DIMENSION);
    this.channelEnumMap.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(dimId);
    this.channelEnumMap.get(Side.SERVER).writeAndFlush(packet);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号