Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Cadiboo

Members
  • Posts

    3624
  • Joined

  • Last visited

  • Days Won

    58

Posts posted by Cadiboo

  1. 9 hours ago, rcrosbyti said:

    RenderingRegistry.registerEntityRenderingHandler(RubyFireballEntity.class, new IRenderFactory<RubyFireballEntity>() { @Override public EntityRenderer<? super RubyFireballEntity> createRenderFor(EntityRendererManager manager) { return new SpriteRenderer<RubyFireballEntity>(manager, Minecraft.getInstance().getItemRenderer()); } });

    You can use a lambda for this


    Also, use @Override

    https://stackoverflow.com/questions/94361/when-do-you-use-javas-override-annotation-and-why

     

    Your subscription looks right, place a breakpoint to make sure it gets called though. 

    • Thanks 1
  2. I’ve done this (badly) before, let me try and find my forum article.

    The way I would do it if I did it now is have a chunk capability that has a list of energy networks (one for each group of connected pipes) that allow the cables in the network to draw from a collective power supply. In addition to this each network could store a list of other networks it’s connected to (via entry/exit positions?) to speed up the transfer between networks & allow energy to travel over unloaded chunks.

  3. So you can either use a library mod that enables you to do this (DynamicLights/OptiFine) or write your own implementation. The common way to do this without a library is to place and destroy invisible blocks that emit light. This doesn’t work underwater though and is pretty bad for performance and has other issues like how to remove the block.

  4. 4 hours ago, MCRM said:

    The problem is that when I ran the .bat, it didn't make anything show up, when I ran it through eclipse it didn't make anything show up

    Did you refresh your project In eclipse afterwards? Eclipse is notoriously bad and handling changes made outside its editor.

    The eclipse task should have downloaded and set up Forge which includes Minecrafts patched code and all the libraries.

    The genEclipseRuns task should have downloaded all the (extra) files necessary to run the client (translations etc.) and set up your launch configs. The launch configs require your to refresh your workspace for eclipse to notice them.

     

    Please post the output of running (Or trying to run) your runClient launch config.

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.