小编use*_*869的帖子

对于参数类型boolean,int,运算符!=未定义

我一直得到错误运算符!=未定义参数类型boolean,int在我的代码上,我不知道如何解决它.错误出现在eclipse和启动时

一些帮助将不胜感激:)谢谢!

  private boolean[] ctexture = new boolean[16]; 

  public boolean[] flipTopBottom = new boolean[16];

      this.ctexture[id] = connectedTexture;

  @SideOnly(Side.CLIENT)
  public Icon getIcon(int par1, int par2)
  {
    if ((par1 <= 1) && (this.flipTopBottom[(par2 & 0xF)] != 0)  //The error occurs here// && ((this.icons[(par2 & 0xF)] instanceof IconConnectedTexture))) {
      return new IconConnectedTextureFlipped((IconConnectedTexture)this.icons[(par2 & 0xF)]);
    }
    return this.icons[(par2 & 0xF)];
  }


  @SideOnly(Side.CLIENT)
  public void registerIcons(IconRegister par1IconRegister)
  {
    for (int i = 0; i < 16; i++) {
      if ((this.texture[i] != null) && (this.texture[i] != …
Run Code Online (Sandbox Code Playgroud)

java minecraft

1
推荐指数
1
解决办法
7830
查看次数

标签 统计

java ×1

minecraft ×1