ForgeFlower icon indicating copy to clipboard operation
ForgeFlower copied to clipboard

More Enhanced For loop issues

Open LexManos opened this issue 7 years ago • 1 comments

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();

LexManos avatar Sep 19 '18 20:09 LexManos

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;

kashike avatar Sep 19 '18 22:09 kashike