@Override
public IMessage onMessage(PacketSendDust message, MessageContext ctx) {
// Always use a construct like this to actually handle your message. This ensures that
// your 'handle' code is run on the main Minecraft thread. 'onMessage' itself
// is called on the networking thread so it is not safe to do a lot of things
// here.
int breakP = 0;
FMLCommonHandler.instance().getWorldThread(ctx.netHandler).addScheduledTask(() -> handle(message, ctx));
return null;
}
PacketSendDust.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:RunicArcana
作者:
评论列表
文章目录