Jump to content

jasonmbrown

Members
  • Posts

    4
  • Joined

  • Last visited

jasonmbrown's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I need to modify my server to produce image renders from the viewpoint of an entity. Is there any HeadlessRendering code available that works on the server, or do I manually have to implement rendering logic from scratch? Unfortunately the mod I am working on requires the rendering to be done server side... Essentially the mod I am working on won't require a client to be connected to the server, but requires the server to run multiple rendering streams at 640x400. Any tips or information that might help me out? I would prefer not to have to reimplement a rendering engine.
  2. Ah thank you very much for that information. I haven't done any Minecraft modding since back in 1.12, things have changed quite a bit in a good way. I just wish more guides had the version number they were written for. On a side note, it seems like what I thought was Obfuscation was actually just IntelliJ's weird way of generating variable names. So in essence part of my issue was due to my stupidity, and part of it was due to the confusion over the imports.
  3. I cant find the Imports based on all the guides I am reading. Im not new to programming, I just don't usually use java. Usually I code in C# or Python. Again the issue isnt with the code itself, its the seemingly missing imports. Also that's basically the entire Class for my custom Entity. (I haven't started coding it yet as Im encountering Issues with the Imports as I previously stated. It seems like the Default Forge Installation for IntelliJ using genIntellijRuns is Either missing Mappings for some classes, or I messed up the install of the IDE. If Its the Latter I will go and fix it on my own, if its the former then I have an issue that needs to be addressed) import net.minecraft.entity.player.PlayerEntity; import net.minecraft.world.World; public class FakePlayerEntity extends PlayerEntity { // Constructor public FakePlayerEntity(World worldIn) { super(worldIn, worldIn.getGameRules().getBoolean(GameRules.NATURAL_REGENERATION)); } Both of those imports don't exist. Im posting here specifically because in the Forge tutorials and documentation I can't find anything relating to Entity classes. Hence yes, it is an IDE error but given that I can't find any information on making a custom Entity (Using the latest version of forge), Where exactly should I ask this? Am I Supposed to have those two Imports? EG: Are those imports normally accessible or am I missing something? (The ExampleMod works and launches fine).
  4. I am trying to spawn a fake player entity using forge, however apparently a bunch of the imports are obfuscated still? public class FakePlayerEntity extends Entity { public FakePlayerEntity(World worldIn) { super(worldIn, worldIn.getGameRules().getBoolean(GameRules.NATURAL_REGENERATION)); // Additional setup for your fake player entity } World is not found, when I auto implement the required super. IntelliJ sets the code to the following public FakePlayerEntity(EntityType<?> p_19870_, Level p_19871_) { super(p_19870_, p_19871_); } The example mod works fine and all the imports for it are accurate. Just wondering If I am going about creating an Entity the wrong way
×
×
  • Create New...

Important Information

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