Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Enhanced For loop issues #30

Open
LexManos opened this issue Sep 19, 2018 · 1 comment
Open

More Enhanced For loop issues #30

LexManos opened this issue Sep 19, 2018 · 1 comment

Comments

@LexManos
Copy link
Member

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();
@kashike
Copy link
Contributor

kashike commented Sep 19, 2018

From obfuscated client JAR:

       626: invokevirtual #1152               // Method axx.b:(Laer;Lcdz;)Ljava/util/stream/Stream;
       629: invokedynamic #1170,  0           // InvokeDynamic #0:apply:()Ljava/util/function/Function;
       634: invokeinterface #1176,  2         // InterfaceMethod java/util/stream/Stream.flatMap:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
       639: invokeinterface #1177,  1         // InterfaceMethod java/util/stream/Stream.iterator:()Ljava/util/Iterator;
       644: astore        30
       646: ldc_w         #1178               // float 1.4E-45f
       649: fstore        32
       651: aload         30
       653: invokeinterface #278,  1          // InterfaceMethod java/util/Iterator.hasNext:()Z
       658: ifeq          870
       661: aload         30
       663: invokeinterface #282,  1          // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants