error: no suitable constructor found for

て烟熏妆下的殇ゞ 提交于 2019-11-28 12:53:55

The Java compiler is telling you that cannot construct a Packet2ClientProtocol object, because your call to the constructor does not match any known constructor.

Specifically, the compiler found two constructors:

Packet2ClientProtocol.Packet2ClientProtocol(int,String,int)
Packet2ClientProtocol.Packet2ClientProtocol()

but your call to:

new Packet2ClientProtocol(51, GuiConnecting.func_74254_c(this.connectingGui), this.Username, this.ip, this.port)

matches none of them.

new Packet2ClientProtocol(51, GuiConnecting.func_74254_c(this.connectingGui), this.Username, this.ip, this.port)

The error indicates that such a constructor does not exist.

There are only 2 options

Packet2ClientProtocol.Packet2ClientProtocol(int,String,int)
Packet2ClientProtocol.Packet2ClientProtocol()
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!