Jump to content

Recommended Posts

Posted (edited)

Hi all!

I want to change the nether's biome provider, but the way that worked in 1.9.4 isn't good. Here's what I found:
 

    @Mod.EventHandler
    public void onWorldLoad(WorldEvent.Load event)
    {
        World world = event.getWorld();

        if(world.provider instanceof WorldProviderHell)
        {
           world./*(How to set?)*/ = new BiomeProviderSingle(Biomes.FROZEN_OCEAN);
        }
    }

 

Edited by Legenes
procedure WakeMeUp(Integer plusTime);
var
  I: Integer;
begin
  for I := 0 to plusTime do begin
    println('One more minute!');
    Sleep(1000);
  end;
  println('Okay, nothing to worry, I''m alive!');
  println('So... somebody can give me a coffee?');
  println('I know it''s Pascal, and not Java, but I love it :D.');
end;
Posted

I don't know how reflections work, could you give me an example please? I searched on google but I just can't manage to do it.

procedure WakeMeUp(Integer plusTime);
var
  I: Integer;
begin
  for I := 0 to plusTime do begin
    println('One more minute!');
    Sleep(1000);
  end;
  println('Okay, nothing to worry, I''m alive!');
  println('So... somebody can give me a coffee?');
  println('I know it''s Pascal, and not Java, but I love it :D.');
end;
Posted
56 minutes ago, Legenes said:

I don't know how reflections work, could you give me an example please? I searched on google but I just can't manage to do it.

You should show what you tried, people are more likely to help debug some already written code than to write some up for you :)

Posted
1 minute ago, Ugdhar said:

You should show what you tried

Yeah, that's the problem... because I didn't understood at all the tutorials about reflection, they were all different and I made no change, this is the same as the code in the main post.

procedure WakeMeUp(Integer plusTime);
var
  I: Integer;
begin
  for I := 0 to plusTime do begin
    println('One more minute!');
    Sleep(1000);
  end;
  println('Okay, nothing to worry, I''m alive!');
  println('So... somebody can give me a coffee?');
  println('I know it''s Pascal, and not Java, but I love it :D.');
end;
Posted

I think I found another solution to do this.

procedure WakeMeUp(Integer plusTime);
var
  I: Integer;
begin
  for I := 0 to plusTime do begin
    println('One more minute!');
    Sleep(1000);
  end;
  println('Okay, nothing to worry, I''m alive!');
  println('So... somebody can give me a coffee?');
  println('I know it''s Pascal, and not Java, but I love it :D.');
end;

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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