Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save primetoxinz/3701e218c2bc04b9ec3e0224290440ca to your computer and use it in GitHub Desktop.
Save primetoxinz/3701e218c2bc04b9ec3e0224290440ca to your computer and use it in GitHub Desktop.
public static get(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lbetterwithmods/common/registry/heat/BWMHeatRegistry$HeatSource;
L0
LINENUMBER 31 L0
GETSTATIC betterwithmods/common/registry/heat/BWMHeatRegistry.HEAT_SOURCES : Ljava/util/List;
INVOKEINTERFACE java/util/List.iterator ()Ljava/util/Iterator;
ASTORE 2
L1
FRAME APPEND [java/util/Iterator]
ALOAD 2
INVOKEINTERFACE java/util/Iterator.hasNext ()Z
IFEQ L2
ALOAD 2
INVOKEINTERFACE java/util/Iterator.next ()Ljava/lang/Object;
CHECKCAST betterwithmods/common/registry/heat/BWMHeatRegistry$HeatSource
ASTORE 3
L3
LINENUMBER 32 L3
ALOAD 3
ALOAD 0
ALOAD 1
INVOKEVIRTUAL betterwithmods/common/registry/heat/BWMHeatRegistry$HeatSource.matches (Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
IFEQ L4
L5
LINENUMBER 33 L5
ALOAD 3
ARETURN
L4
LINENUMBER 34 L4
FRAME SAME
GOTO L1
L2
LINENUMBER 35 L2
FRAME CHOP 1
ACONST_NULL
ARETURN
L6
LOCALVARIABLE bm Lbetterwithmods/common/registry/heat/BWMHeatRegistry$HeatSource; L3 L4 3
LOCALVARIABLE world Lnet/minecraft/world/World; L0 L6 0
LOCALVARIABLE pos Lnet/minecraft/util/math/BlockPos; L0 L6 1
MAXSTACK = 3
MAXLOCALS = 4
// access flags 0x9
public static getStream(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lbetterwithmods/common/registry/heat/BWMHeatRegistry$HeatSource;
L0
LINENUMBER 39 L0
GETSTATIC betterwithmods/common/registry/heat/BWMHeatRegistry.HEAT_SOURCES : Ljava/util/List;
INVOKEINTERFACE java/util/List.stream ()Ljava/util/stream/Stream;
ALOAD 0
ALOAD 1
INVOKEDYNAMIC test(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Ljava/util/function/Predicate; [
// handle kind 0x6 : INVOKESTATIC
java/lang/invoke/LambdaMetafactory.metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
// arguments:
(Ljava/lang/Object;)Z,
// handle kind 0x6 : INVOKESTATIC
betterwithmods/common/registry/heat/BWMHeatRegistry.lambda$getStream$0(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lbetterwithmods/common/registry/heat/BWMHeatRegistry$HeatSource;)Z,
(Lbetterwithmods/common/registry/heat/BWMHeatRegistry$HeatSource;)Z
]
INVOKEINTERFACE java/util/stream/Stream.filter (Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
INVOKEINTERFACE java/util/stream/Stream.findFirst ()Ljava/util/Optional;
ACONST_NULL
INVOKEVIRTUAL java/util/Optional.orElse (Ljava/lang/Object;)Ljava/lang/Object;
CHECKCAST betterwithmods/common/registry/heat/BWMHeatRegistry$HeatSource
ARETURN
L1
LOCALVARIABLE world Lnet/minecraft/world/World; L0 L1 0
LOCALVARIABLE pos Lnet/minecraft/util/math/BlockPos; L0 L1 1
MAXSTACK = 3
MAXLOCALS = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment