Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/01/18 in all areas

  1. Either. With an I. Afraid? I think this is supposed to be "afraid." With an I and a D.
    1 point
  2. I think you can handle the EntityJoinWorld (or possibly the EntityConstructing) event and create your your new entity, copy the position and direction of motion and kill the original one.
    1 point
  3. You can think of a "registry" as simply a map. It might be implemented a bit more complicatedly but basically there are "entries" that have instances of a thing (which you are registering) and some sort of key (ID) to look it up. The point is that then you don't have to reference instances directly unless needed. The entries can be simple in case of singleton classes. For an Item or Block, there is only one instance (per side) in the game so the registry for those references that instance directly. For things like Entities which have many instances in the game, there is the need to build a more complicaed entry which acts more like a factory -- when you get an entity from the registry you get a new one. But for the purposes here, just think of the registries as a list of things (dimensions in this case) associated with a list of IDs. In most of the modern Forge registries the key/ID is actually a resource location made up of your modID plus the registry name. So the rest is just regular Java. You can grab the registries from anywhere in your code since the classes are public. You should literally be able to write ForgeRegistries.BIOMES and your IDE should be able to use it provided your build paths are correct. I personally have Eclipse set up to automatically find the imports on saving, but you can also hover over anything and it should suggest an import. Is that what you mean when you say you can't get the classes? So if you want a list of all biomes, you just say List<Biome> myList = ForgeRegistries.BIOMES.getValues(). Then you can do anything you would normally do with a Java list -- iterate through it, check if it contains() a value you care about and so forth. The list will contain actual Biome instances. Anyway, bit confused on what the problem is. You have classes available with methods that we already explained give standard Java collections as return value. The rest is standard Java.
    1 point
  4. Everything works: i install fml, delete the meta-inf MOJANG files, exit everything (with nothing else installed and nothing installed before it), minecraft boots up with fml "MOJANG" and then crash report ---> any help will be appreciated ---- Minecraft Crash Report ---- // There are four lights! Time: 2/10/13 6:35 PM Description: Failed to start game cpw.mods.fml.common.LoaderException: java.lang.RuntimeException: Unknown character ' ' in 'C:/Users/max/AppData/Roaming/.minecraft/config/forge.cfg:1' at cpw.mods.fml.common.Loader.identifyMods(Loader.java:323) at cpw.mods.fml.common.Loader.loadMods(Loader.java:458) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161) at net.minecraft.client.Minecraft.a(Minecraft.java:410) at asq.a(SourceFile:56) at net.minecraft.client.Minecraft.run(Minecraft.java:744) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: Unknown character ' ' in 'C:/Users/max/AppData/Roaming/.minecraft/config/forge.cfg:1' at net.minecraftforge.common.Configuration.load(Configuration.java:612) at net.minecraftforge.common.Configuration.<init>(Configuration.java:89) at net.minecraftforge.common.ForgeDummyContainer.<init>(ForgeDummyContainer.java:44) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at cpw.mods.fml.common.Loader.identifyMods(Loader.java:318) ... 6 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.4.7 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_03, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 355932720 bytes (339 MB) / 514523136 bytes (490 MB) up to 954466304 bytes (910 MB) JVM Flags: 2 total; -Xms512m -Xmx1024m AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v7.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 2 mods loaded, 0 mods active mcp [Minecraft Coder Pack] (minecraft.jar) FML [Forge Mod Loader] (coremods) LWJGL: 2.4.2 OpenGL: GeForce GT 420M/PCI/SSE2 GL version 4.1.0, NVIDIA Corporation Is Modded: Definitely; Client brand changed to 'forge,fml' Type: Client (map_client.txt) Texture Pack: Default Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.