Posted April 2, 20169 yr There is a mod that I decided to update to 1.9 as a learning exercise to get my feet wet with minecraft modding. I currently get these errors when I compile: warning: [options] bootstrap class path not set in conjunction with -source 1.6 D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\ClientProxy.java:5: error: cannot find symbol import net.minecraft.client.renderer.WorldRenderer; ^ symbol: class WorldRenderer location: package net.minecraft.client.renderer D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\DimensionProcessor.java:9: error: cannot find symbol import net.minecraft.world.gen.ChunkProviderGenerate; ^ symbol: class ChunkProviderGenerate location: package net.minecraft.world.gen D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\BoundingBox.java:54: error: cannot find symbol AxisAlignedBB axisAlignedBB = AxisAlignedBB.fromBounds(minBlockPos.getX(), minBlockPos.getY(), ^ symbol: method fromBounds(int,int,int,int,int,int) location: class AxisAlignedBB D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\CommonProxy.java:28: error: cannot find symbol int dimensionId = world.provider.getDimensionId(); ^ symbol: method getDimensionId() location: variable provider of type WorldProvider D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\CommonProxy.java:35: error: cannot find symbol int dimensionId = chunk.getWorld().provider.getDimensionId(); ^ symbol: method getDimensionId() location: variable provider of type WorldProvider D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\ClientProxy.java:74: error: cannot find symbol int activeDimensionId = entityPlayer.worldObj.provider.getDimensionId(); ^ symbol: method getDimensionId() location: variable provider of type WorldProvider D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\ClientProxy.java:381: error: cannot find symbol WorldRenderer worldRenderer = tessellator.getWorldRenderer(); ^ symbol: class WorldRenderer location: class ClientProxy D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\ClientProxy.java:381: error: cannot find symbol WorldRenderer worldRenderer = tessellator.getWorldRenderer(); ^ symbol: method getWorldRenderer() location: variable tessellator of type Tessellator D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\ClientProxy.java:422: error: cannot find symbol WorldRenderer worldRenderer = tessellator.getWorldRenderer(); ^ symbol: class WorldRenderer location: class ClientProxy D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\ClientProxy.java:422: error: cannot find symbol WorldRenderer worldRenderer = tessellator.getWorldRenderer(); ^ symbol: method getWorldRenderer() location: variable tessellator of type Tessellator D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\ClientProxy.java:486: error: cannot find symbol WorldRenderer worldRenderer = tessellator.getWorldRenderer(); ^ symbol: class WorldRenderer location: class ClientProxy D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\ClientProxy.java:486: error: cannot find symbol WorldRenderer worldRenderer = tessellator.getWorldRenderer(); ^ symbol: method getWorldRenderer() location: variable tessellator of type Tessellator D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\ClientProxy.java:552: error: cannot find symbol int dimensionId = world.provider.getDimensionId(); ^ symbol: method getDimensionId() location: variable provider of type WorldProvider D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\DimensionProcessor.java:65: error: cannot find symbol if (chunkProvider instanceof ChunkProviderGenerate) { ^ symbol: class ChunkProviderGenerate location: class DimensionProcessor D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\DimensionProcessor.java:102: error: cannot find symbol if (structure.getComponents().getFirst().getClass().equals(structureComponent)) { ^ symbol: method getComponents() location: variable structure of type StructureStart D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\DimensionProcessor.java:120: error: cannot find symbol Iterator structureComponents = structureStart.getComponents().iterator(); ^ symbol: method getComponents() location: variable structureStart of type StructureStart D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\forge\ForgeCommonProxy.java:96: error: non-static method getServer() cannot be referenced from a static context MinecraftServer mc = MinecraftServer.getServer(); ^ D:\Development\Forge\build\sources\main\java\com\irtimaled\bbor\forge\ForgeCommonProxy.java:97: error: cannot find symbol if (!mc.getConfigurationManager().playerEntityList.contains(player)) { ^ symbol: method getConfigurationManager() location: variable mc of type MinecraftServer I've managed to track down most the errors before this, but these all seem to be about changes to the code. I don't just want someone to tell me the changes I need to make, I'd also like to learn how to figure it out for myself. Any help is apprciated!
April 2, 20169 yr These are mostly classes that have been renamed in recent versions. You can search the issues of this repository for the old class name to find out what it was renamed to. This will work for most classes that were renamed in 1.9, but may not work for earlier versions. AxisAlignedBB#fromBounds was removed when the class's constructor was made public. Use the constructor instead of fromBounds . Vanilla removed the WorldProvider#dimensionId field and its getter method in 1.9 and replaced them with the DimensionType enum and the WorldProvider#getDimensionType method. Forge re-adds the WorldProvider#dimensionId field, but the getter is now called getDimension instead of getDimensionId . WorldRenderer was renamed to VertexBuffer , so Tessellator#getWorldRenderer was renamed to Tessellator#getBuffer . MCPBot tells me that the SRG name of StructureStart#getComponents in 1.9 is func_186161_c and it was given the name getComponents two days after Forge's default 1.9 MCP mappings were generated. Either use the SRG name or update your mappings. MinecraftServer.getServer is no longer a static method. There are several methods that you can use to get the MinecraftServer instance now, use IDEA's Find Usages (or Eclipse's equivalent) feature to search for methods with return type MinecraftServer . In particular, you can use World#getMinecraftServer on a server-side World or FMLCommonHandler#getMinecraftServerInstance (prefer using the World method when possible). ServerConfigurationManager was renamed to PlayerList , so MinecraftServer#getConfigurationManager was renamed to MinecraftServer#getPlayerList . The PlayerList#playerEntityList field is now private, use the PlayerList#getPlayerList method to get it. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
April 2, 20169 yr So your looking for sb who's helping you updating ur mod? Yea, I could probably help you
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.