Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/350.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Mod Coder Pack在重新编译时抛出23个错误_Java_Minecraft - Fatal编程技术网

Java Mod Coder Pack在重新编译时抛出23个错误

Java Mod Coder Pack在重新编译时抛出23个错误,java,minecraft,Java,Minecraft,我设法让Mod Coder包工作起来,但不是真的。在“重新编译”阶段,它抛出了大量错误 来自Decompile.sh的输出: src/minecraft/net/minecraft/util/ObjectIntIdentityMap.java:18: error: no suitable method found for add(Object) this.objectList.add((Object)null); ^ m

我设法让Mod Coder包工作起来,但不是真的。在“重新编译”阶段,它抛出了大量错误

来自Decompile.sh的输出:

src/minecraft/net/minecraft/util/ObjectIntIdentityMap.java:18: error: no suitable method found for add(Object)
         this.objectList.add((Object)null);
                        ^

    method Collection.add(T) is not applicable
      (argument mismatch; Object cannot be converted to T)
    method List.add(T) is not applicable
      (argument mismatch; Object cannot be converted to T)
  where T is a type-variable:
    T extends Object declared in class ObjectIntIdentityMap
src/minecraft/net/minecraft/inventory/Container.java:28: error: no suitable method found for add(Object)
      this.inventoryItemStacks.add((Object)null);
                              ^

    method Collection.add(ItemStack) is not applicable
      (argument mismatch; Object cannot be converted to ItemStack)
    method List.add(ItemStack) is not applicable
      (argument mismatch; Object cannot be converted to ItemStack)
src/minecraft/net/minecraft/network/NetHandlerPlayServer.java:352: error: incompatible types: Set<Object> cannot be converted to Set<EnumFlags>
      this.setPlayerLocation(x, y, z, yaw, pitch, Collections.emptySet());
                                                                      ^

src/minecraft/net/minecraft/network/NetworkSystem.java:67: error: incompatible types: List<Object> cannot be converted to List<ChannelFuture>
   private final List<ChannelFuture> endpoints = Collections.synchronizedList(Lists.newArrayList());
                                                                             ^

src/minecraft/net/minecraft/network/NetworkSystem.java:68: error: incompatible types: List<Object> cannot be converted to List<NetworkManager>
   private final List<NetworkManager> networkManagers = Collections.synchronizedList(Lists.newArrayList());
                                                                                    ^

src/minecraft/net/minecraft/client/Minecraft.java:629: error: incompatible types: List<Object> cannot be converted to List<ResourcePackRepository.Entry>
         this.mcResourcePackRepository.setRepositories(Collections.emptyList());
                                                                            ^

src/minecraft/net/minecraft/client/gui/GuiScreenRealmsProxy.java:16: error: incompatible types: List<Object> cannot be converted to List<GuiButton>
      super.buttonList = Collections.synchronizedList(Lists.newArrayList());
                                                     ^

src/minecraft/net/minecraft/client/renderer/texture/TextureAtlasSprite.java:283: error: no suitable method found for add(Object)
            this.framesTextureData.add((Object)null);
                                  ^

    method Collection.add(int[][]) is not applicable
      (argument mismatch; Object cannot be converted to int[][])
    method List.add(int[][]) is not applicable
      (argument mismatch; Object cannot be converted to int[][])
src/minecraft/net/minecraft/realms/RealmsServerStatusPinger.java:27: error: incompatible types: List<Object> cannot be converted to List<NetworkManager>
   private final List<NetworkManager> connections = Collections.synchronizedList(Lists.newArrayList());
                                                                                ^

src/minecraft/net/minecraft/client/renderer/block/model/ModelBlock.java:50: error: incompatible types: List<Object> cannot be converted to List<BlockPart>
      this(p_i46226_1_, Collections.emptyList(), p_i46226_2_, p_i46226_3_, p_i46226_4_, p_i46226_5_);
                                             ^

src/minecraft/net/minecraft/client/resources/FolderResourcePack.java:29: error: reference to listFiles is ambiguous
         for(File file2 : file1.listFiles(DirectoryFileFilter.DIRECTORY)) {
                               ^

  both method listFiles(FilenameFilter) in File and method listFiles(FileFilter) in File match
src/minecraft/net/minecraft/client/resources/model/SimpleBakedModel.java:97: error: no suitable method found for add(ArrayList<Object>)
            this.builderFaceQuads.add(Lists.newArrayList());
                                 ^

    method Collection.add(List<BakedQuad>) is not applicable
      (argument mismatch; ArrayList<Object> cannot be converted to List<BakedQuad>)
    method List.add(List<BakedQuad>) is not applicable
      (argument mismatch; ArrayList<Object> cannot be converted to List<BakedQuad>)
src/minecraft/net/minecraft/client/network/OldServerPinger.java:49: error: incompatible types: List<Object> cannot be converted to List<NetworkManager>
   private final List<NetworkManager> pingDestinations = Collections.synchronizedList(Lists.newArrayList());
                                                                                     ^

src/minecraft/net/minecraft/client/gui/GuiFlatPresets.java:125: error: incompatible types: HashMap<Object,Object> cannot be converted to Map<String,String>
            flatgeneratorinfo.getWorldFeatures().put(s, Maps.newHashMap());
                                                                       ^

src/minecraft/net/minecraft/world/gen/FlatGeneratorInfo.java:218: error: incompatible types: HashMap<Object,Object> cannot be converted to Map<String,String>
                  flatgeneratorinfo.getWorldFeatures().put("village", Maps.newHashMap());
                                                                                     ^

src/minecraft/net/minecraft/world/gen/FlatGeneratorInfo.java:238: error: incompatible types: HashMap<Object,Object> cannot be converted to Map<String,String>
      flatgeneratorinfo.getWorldFeatures().put("village", Maps.newHashMap());
                                                                         ^

src/minecraft/net/minecraft/command/CommandSpreadPlayers.java:97: error: no suitable method found for add(Object)
            set.add((Object)null);
               ^

    method Collection.add(Team) is not applicable
      (argument mismatch; Object cannot be converted to Team)
    method Set.add(Team) is not applicable
      (argument mismatch; Object cannot be converted to Team)
src/minecraft/net/minecraft/entity/ai/attributes/ModifiableAttributeInstance.java:27: error: incompatible types: HashSet<Object> cannot be converted to Set<AttributeModifier>
         this.mapByOperation.put(Integer.valueOf(i), Sets.newHashSet());
                                                                    ^

src/minecraft/net/minecraft/block/BlockRedstoneTorch.java:24: error: incompatible types: ArrayList<Object> cannot be converted to List<Toggle>
         toggles.put(worldIn, Lists.newArrayList());
                                                ^

src/minecraft/net/minecraft/block/state/pattern/FactoryBlockPattern.java:24: error: incompatible types: Predicate<Object> cannot be converted to Predicate<BlockWorldState>
      this.symbolMap.put(' ', Predicates.alwaysTrue());
                                                   ^

src/minecraft/net/minecraft/block/state/pattern/FactoryBlockPattern.java:44: error: incompatible types: Object cannot be converted to Predicate<BlockWorldState>
                     this.symbolMap.put(Character.valueOf(c0), (Object)null);
                                                               ^

src/minecraft/net/minecraft/world/storage/ThreadedFileIOBase.java:9: error: incompatible types: List<Object> cannot be converted to List<IThreadedFileIO>
   private List<IThreadedFileIO> threadedIOQueue = Collections.synchronizedList(Lists.newArrayList());
                                                                               ^

src/minecraft/net/minecraft/util/Cartesian.java:46: error: incompatible types: List<Object> cannot be converted to List<T>
         return Arrays.asList((Object[])p_apply_1_);
                             ^

  where T is a type-variable:
    T extends Object declared in class GetList
src/minecraft/net/minecraft/util/objectIdentityMap.java:18:错误:找不到适合添加(对象)的方法
this.objectList.add((Object)null);
^
方法集合。添加(T)不适用
(参数不匹配;对象无法转换为T)
方法列表。添加(T)不适用
(参数不匹配;对象无法转换为T)
其中T是一个类型变量:
T扩展类ObjectIdentityMap中声明的对象
src/minecraft/net/minecraft/inventory/Container.java:28:错误:找不到适合添加(对象)的方法
this.inventoryItemStacks.add((Object)null);
^
方法集合。添加(ItemStack)不适用
(参数不匹配;对象无法转换为ItemStack)
方法列表。添加(ItemStack)不适用
(参数不匹配;对象无法转换为ItemStack)
src/minecraft/net/minecraft/network/NetHandlerPlayServer.java:352:错误:不兼容的类型:无法将Set转换为Set
这个.setPlayerLocation(x,y,z,偏航,俯仰,Collections.emptySet());
^
src/minecraft/net/minecraft/NetworkSystem.java:67:错误:不兼容的类型:无法将列表转换为列表
私有最终列表端点=Collections.synchronizedList(Lists.newArrayList());
^
src/minecraft/net/minecraft/NetworkSystem.java:68:错误:不兼容的类型:无法将列表转换为列表
私有最终列表网络管理器=Collections.synchronizedList(Lists.newArrayList());
^
src/minecraft/net/minecraft/client/minecraft.java:629:错误:不兼容的类型:无法将列表转换为列表
this.mcResourcePackRepository.setRepositories(Collections.emptyList());
^
src/minecraft/net/minecraft/client/gui/GuiScreenRealmsProxy.java:16:错误:不兼容类型:无法将列表转换为列表
super.buttonList=Collections.synchronizedList(Lists.newArrayList());
^
src/minecraft/net/minecraft/client/renderer/texture/TextureAtlasSprite.java:283:错误:找不到适合添加(对象)的方法
this.framesTextureData.add((Object)null);
^
方法集合。添加(int[][])不适用
(参数不匹配;对象无法转换为int[])
方法列表。添加(int[][])不适用
(参数不匹配;对象无法转换为int[])
src/minecraft/net/minecraft/realms/realmserverstatuspinger.java:27:错误:不兼容的类型:无法将列表转换为列表
私有最终列表连接=Collections.synchronizedList(Lists.newArrayList());
^
src/minecraft/net/minecraft/client/renderer/block/model/ModelBlock.java:50:错误:不兼容的类型:无法将列表转换为列表
这(p_i46226_1_,Collections.emptyList(),p_i46226_2_,p_i46226_3_,p_i46226_4_,p_i46226_5_);
^
src/minecraft/net/minecraft/client/resources/FolderResourcePack.java:29:错误:对列表文件的引用不明确
对于(文件file2:file1.listFiles(DirectoryFileFilter.DIRECTORY)){
^
文件中的方法列表文件(FilenameFilter)和文件中的方法列表文件(FileFilter)都匹配
src/minecraft/net/minecraft/client/resources/model/SimpleBakedModel.java:97:错误:找不到适合添加的方法(ArrayList)
add(Lists.newArrayList());
^
方法集合。添加(列表)不适用
(参数不匹配;ArrayList无法转换为List)
方法列表。添加(列表)不适用
(参数不匹配;ArrayList无法转换为List)
src/minecraft/net/minecraft/client/network/OldServerPinger.java:49:错误:不兼容的类型:无法将列表转换为列表
私有最终列表pingDestinations=Collections.synchronizedList(Lists.newArrayList());
^
src/minecraft/net/minecraft/client/gui/GuiFlatPresets.java:125:错误:不兼容的类型:无法将HashMap转换为Map
flatgeneratorinfo.getWorldFeatures().put(s,Maps.newHashMap());
^
src/minecraft/net/minecraft/world/gen/FlatGeneratorInfo.java:218:错误:不兼容的类型:无法将HashMap转换为Map
flatgeneratorinfo.getWorldFeatures().put(“村庄”,Maps.newHashMap());
^
src/minecraft/net/minecraft/world/gen/FlatGeneratorInfo.java:238:错误:不兼容的类型:无法将HashMap转换为Map
flatgeneratorinfo.getWorldFeatures().put(“村庄”,Maps.newHashMap());
^
src/minecraft/net/minecraft/command/CommandSpreadPlayers.java:97:错误:找不到适合添加(对象)的方法
set.add((Object)null);
^
方法集合。添加(团队)不适用
(参数不匹配;对象无法转换为团队)
方法集。添加(团队)不适用
(参数不匹配;对象无法转换为团队)
src/minecraft/net/minecraft/entity/ai/attributes/ModifiableAttributeInstance.java:27:错误:不兼容的类型:哈希集不能是c