More Enhanced For loop issues

Open
#30 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
compilers

Research direction

Start with the referenced 1.13.1 EntityPlayerSP func_71007_a method and inspect how ForgeFlower renders the Iterator, flatMap, and while loop shown in the example. Determine the intended enhanced-for output and verify that the decompiled result is corrected for this case.

Written by the indexing model from the issue text.

Description

See 1.13.1 EntityPlayerSP func_71007_a

                        Iterator<AxisAlignedBB> iterator = this.field_70170_p.func_212388_b(this, axisalignedbb).<AxisAlignedBB>flatMap((p_212329_0_) -> {
                           return p_212329_0_.func_197756_d().stream();
                        }).iterator();
                        float f11 = Float.MIN_VALUE;

                        while(iterator.hasNext()) {
                           AxisAlignedBB axisalignedbb1 = iterator.next();
Dominant language
No language data
Stars
110
Forks
49
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MinecraftForge/ForgeFlower

All issues in MinecraftForge/ForgeFlower

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.