1495 lines
78 KiB
Plaintext
1495 lines
78 KiB
Plaintext
Compiled from "SupplyContainerBlock.java"
|
|
public class com.ogaba.sacore.content.block.SupplyContainerBlock extends net.minecraft.world.level.block.HorizontalDirectionalBlock {
|
|
public static final net.minecraft.world.level.block.state.properties.DirectionProperty FACING;
|
|
|
|
public static final net.minecraft.world.level.block.state.properties.IntegerProperty CONTENTS;
|
|
|
|
private final net.minecraft.world.phys.shapes.VoxelShape northShape;
|
|
|
|
private final net.minecraft.world.phys.shapes.VoxelShape eastShape;
|
|
|
|
private final net.minecraft.world.phys.shapes.VoxelShape southShape;
|
|
|
|
private final net.minecraft.world.phys.shapes.VoxelShape westShape;
|
|
|
|
public com.ogaba.sacore.content.block.SupplyContainerBlock(net.minecraft.world.level.block.state.BlockBehaviour$Properties, net.minecraft.world.phys.shapes.VoxelShape);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: invokespecial #45 // Method net/minecraft/world/level/block/HorizontalDirectionalBlock."<init>":(Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;)V
|
|
5: aload_0
|
|
6: aload_2
|
|
7: invokevirtual #51 // Method net/minecraft/world/phys/shapes/VoxelShape.m_83296_:()Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
10: putfield #53 // Field northShape:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
13: aload_0
|
|
14: aload_0
|
|
15: getfield #53 // Field northShape:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
18: invokestatic #57 // Method rotateClockwise:(Lnet/minecraft/world/phys/shapes/VoxelShape;)Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
21: putfield #59 // Field eastShape:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
24: aload_0
|
|
25: aload_0
|
|
26: getfield #59 // Field eastShape:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
29: invokestatic #57 // Method rotateClockwise:(Lnet/minecraft/world/phys/shapes/VoxelShape;)Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
32: putfield #61 // Field southShape:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
35: aload_0
|
|
36: aload_0
|
|
37: getfield #61 // Field southShape:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
40: invokestatic #57 // Method rotateClockwise:(Lnet/minecraft/world/phys/shapes/VoxelShape;)Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
43: putfield #63 // Field westShape:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
46: aload_0
|
|
47: aload_0
|
|
48: getfield #67 // Field f_49792_:Lnet/minecraft/world/level/block/state/StateDefinition;
|
|
51: invokevirtual #71 // Method net/minecraft/world/level/block/state/StateDefinition.m_61090_:()Lnet/minecraft/world/level/block/state/StateHolder;
|
|
54: checkcast #73 // class net/minecraft/world/level/block/state/BlockState
|
|
57: getstatic #75 // Field FACING:Lnet/minecraft/world/level/block/state/properties/DirectionProperty;
|
|
60: getstatic #81 // Field net/minecraft/core/Direction.NORTH:Lnet/minecraft/core/Direction;
|
|
63: invokevirtual #85 // Method net/minecraft/world/level/block/state/BlockState.m_61124_:(Lnet/minecraft/world/level/block/state/properties/Property;Ljava/lang/Comparable;)Ljava/lang/Object;
|
|
66: checkcast #73 // class net/minecraft/world/level/block/state/BlockState
|
|
69: getstatic #87 // Field CONTENTS:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;
|
|
72: iconst_0
|
|
73: invokestatic #93 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
|
|
76: invokevirtual #85 // Method net/minecraft/world/level/block/state/BlockState.m_61124_:(Lnet/minecraft/world/level/block/state/properties/Property;Ljava/lang/Comparable;)Ljava/lang/Object;
|
|
79: checkcast #73 // class net/minecraft/world/level/block/state/BlockState
|
|
82: invokevirtual #97 // Method m_49959_:(Lnet/minecraft/world/level/block/state/BlockState;)V
|
|
85: return
|
|
|
|
private static net.minecraft.world.phys.shapes.VoxelShape rotateClockwise(net.minecraft.world.phys.shapes.VoxelShape);
|
|
Code:
|
|
0: iconst_1
|
|
1: anewarray #47 // class net/minecraft/world/phys/shapes/VoxelShape
|
|
4: dup
|
|
5: iconst_0
|
|
6: invokestatic #104 // Method net/minecraft/world/phys/shapes/Shapes.m_83040_:()Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
9: aastore
|
|
10: astore_1
|
|
11: aload_0
|
|
12: aload_1
|
|
13: invokedynamic #122, 0 // InvokeDynamic #0:m_83161_:([Lnet/minecraft/world/phys/shapes/VoxelShape;)Lnet/minecraft/world/phys/shapes/Shapes$DoubleLineConsumer;
|
|
18: invokevirtual #126 // Method net/minecraft/world/phys/shapes/VoxelShape.m_83286_:(Lnet/minecraft/world/phys/shapes/Shapes$DoubleLineConsumer;)V
|
|
21: aload_1
|
|
22: iconst_0
|
|
23: aaload
|
|
24: invokevirtual #51 // Method net/minecraft/world/phys/shapes/VoxelShape.m_83296_:()Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
27: areturn
|
|
|
|
private com.ogaba.sacore.content.item.tool.SupplyContainerItem containerItem();
|
|
Code:
|
|
0: aload_0
|
|
1: invokevirtual #135 // Method m_5456_:()Lnet/minecraft/world/item/Item;
|
|
4: checkcast #137 // class com/ogaba/sacore/content/item/tool/SupplyContainerItem
|
|
7: areturn
|
|
|
|
public net.minecraft.world.level.block.state.BlockState m_5573_(net.minecraft.world.item.context.BlockPlaceContext);
|
|
Code:
|
|
0: aload_0
|
|
1: invokevirtual #142 // Method containerItem:()Lcom/ogaba/sacore/content/item/tool/SupplyContainerItem;
|
|
4: astore_2
|
|
5: aload_2
|
|
6: aload_1
|
|
7: invokevirtual #148 // Method net/minecraft/world/item/context/BlockPlaceContext.m_43722_:()Lnet/minecraft/world/item/ItemStack;
|
|
10: invokevirtual #152 // Method com/ogaba/sacore/content/item/tool/SupplyContainerItem.getCharges:(Lnet/minecraft/world/item/ItemStack;)I
|
|
13: iconst_0
|
|
14: aload_2
|
|
15: invokevirtual #156 // Method com/ogaba/sacore/content/item/tool/SupplyContainerItem.getCapacity:()I
|
|
18: invokestatic #162 // Method net/minecraft/util/Mth.m_14045_:(III)I
|
|
21: istore_3
|
|
22: aload_0
|
|
23: invokevirtual #166 // Method m_49966_:()Lnet/minecraft/world/level/block/state/BlockState;
|
|
26: getstatic #75 // Field FACING:Lnet/minecraft/world/level/block/state/properties/DirectionProperty;
|
|
29: aload_1
|
|
30: invokevirtual #170 // Method net/minecraft/world/item/context/BlockPlaceContext.m_8125_:()Lnet/minecraft/core/Direction;
|
|
33: invokevirtual #173 // Method net/minecraft/core/Direction.m_122424_:()Lnet/minecraft/core/Direction;
|
|
36: invokevirtual #85 // Method net/minecraft/world/level/block/state/BlockState.m_61124_:(Lnet/minecraft/world/level/block/state/properties/Property;Ljava/lang/Comparable;)Ljava/lang/Object;
|
|
39: checkcast #73 // class net/minecraft/world/level/block/state/BlockState
|
|
42: getstatic #87 // Field CONTENTS:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;
|
|
45: iload_3
|
|
46: invokestatic #93 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
|
|
49: invokevirtual #85 // Method net/minecraft/world/level/block/state/BlockState.m_61124_:(Lnet/minecraft/world/level/block/state/properties/Property;Ljava/lang/Comparable;)Ljava/lang/Object;
|
|
52: checkcast #73 // class net/minecraft/world/level/block/state/BlockState
|
|
55: areturn
|
|
|
|
public boolean accepts(net.minecraft.world.item.ItemStack);
|
|
Code:
|
|
0: aload_1
|
|
1: aload_0
|
|
2: invokevirtual #142 // Method containerItem:()Lcom/ogaba/sacore/content/item/tool/SupplyContainerItem;
|
|
5: invokevirtual #184 // Method com/ogaba/sacore/content/item/tool/SupplyContainerItem.getContainedItem:()Lnet/minecraft/world/item/Item;
|
|
8: invokevirtual #190 // Method net/minecraft/world/item/ItemStack.m_150930_:(Lnet/minecraft/world/item/Item;)Z
|
|
11: ireturn
|
|
|
|
public net.minecraft.world.InteractionResult insertFromHand(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.world.entity.player.Player, net.minecraft.world.InteractionHand, boolean);
|
|
Code:
|
|
0: aload 4
|
|
2: aload 5
|
|
4: invokevirtual #200 // Method net/minecraft/world/entity/player/Player.m_21120_:(Lnet/minecraft/world/InteractionHand;)Lnet/minecraft/world/item/ItemStack;
|
|
7: astore 7
|
|
9: aload_0
|
|
10: invokevirtual #142 // Method containerItem:()Lcom/ogaba/sacore/content/item/tool/SupplyContainerItem;
|
|
13: astore 8
|
|
15: aload 7
|
|
17: aload 8
|
|
19: invokevirtual #184 // Method com/ogaba/sacore/content/item/tool/SupplyContainerItem.getContainedItem:()Lnet/minecraft/world/item/Item;
|
|
22: invokevirtual #190 // Method net/minecraft/world/item/ItemStack.m_150930_:(Lnet/minecraft/world/item/Item;)Z
|
|
25: ifne 32
|
|
28: getstatic #206 // Field net/minecraft/world/InteractionResult.PASS:Lnet/minecraft/world/InteractionResult;
|
|
31: areturn
|
|
32: aload 8
|
|
34: invokevirtual #156 // Method com/ogaba/sacore/content/item/tool/SupplyContainerItem.getCapacity:()I
|
|
37: istore 9
|
|
39: aload_1
|
|
40: getstatic #87 // Field CONTENTS:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;
|
|
43: invokevirtual #210 // Method net/minecraft/world/level/block/state/BlockState.m_61143_:(Lnet/minecraft/world/level/block/state/properties/Property;)Ljava/lang/Comparable;
|
|
46: checkcast #89 // class java/lang/Integer
|
|
49: invokevirtual #213 // Method java/lang/Integer.intValue:()I
|
|
52: istore 10
|
|
54: iload 10
|
|
56: iconst_0
|
|
57: iload 9
|
|
59: invokestatic #162 // Method net/minecraft/util/Mth.m_14045_:(III)I
|
|
62: istore 11
|
|
64: aload_2
|
|
65: invokevirtual #219 // Method net/minecraft/world/level/Level.m_5776_:()Z
|
|
68: ifne 102
|
|
71: iload 10
|
|
73: iload 11
|
|
75: if_icmpeq 102
|
|
78: aload_1
|
|
79: getstatic #87 // Field CONTENTS:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;
|
|
82: iload 11
|
|
84: invokestatic #93 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
|
|
87: invokevirtual #85 // Method net/minecraft/world/level/block/state/BlockState.m_61124_:(Lnet/minecraft/world/level/block/state/properties/Property;Ljava/lang/Comparable;)Ljava/lang/Object;
|
|
90: checkcast #73 // class net/minecraft/world/level/block/state/BlockState
|
|
93: astore_1
|
|
94: aload_2
|
|
95: aload_3
|
|
96: aload_1
|
|
97: iconst_2
|
|
98: invokevirtual #223 // Method net/minecraft/world/level/Level.m_7731_:(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;I)Z
|
|
101: pop
|
|
102: iload 11
|
|
104: iload 9
|
|
106: if_icmplt 113
|
|
109: getstatic #206 // Field net/minecraft/world/InteractionResult.PASS:Lnet/minecraft/world/InteractionResult;
|
|
112: areturn
|
|
113: aload_2
|
|
114: invokevirtual #219 // Method net/minecraft/world/level/Level.m_5776_:()Z
|
|
117: ifne 218
|
|
120: iload 6
|
|
122: ifeq 133
|
|
125: aload 7
|
|
127: invokevirtual #226 // Method net/minecraft/world/item/ItemStack.m_41613_:()I
|
|
130: goto 134
|
|
133: iconst_1
|
|
134: istore 12
|
|
136: iload 12
|
|
138: iload 9
|
|
140: iload 11
|
|
142: isub
|
|
143: invokestatic #232 // Method java/lang/Math.min:(II)I
|
|
146: istore 13
|
|
148: iload 13
|
|
150: ifgt 157
|
|
153: getstatic #206 // Field net/minecraft/world/InteractionResult.PASS:Lnet/minecraft/world/InteractionResult;
|
|
156: areturn
|
|
157: aload 4
|
|
159: invokevirtual #236 // Method net/minecraft/world/entity/player/Player.m_150110_:()Lnet/minecraft/world/entity/player/Abilities;
|
|
162: getfield #242 // Field net/minecraft/world/entity/player/Abilities.f_35937_:Z
|
|
165: ifne 175
|
|
168: aload 7
|
|
170: iload 13
|
|
172: invokevirtual #246 // Method net/minecraft/world/item/ItemStack.m_41774_:(I)V
|
|
175: aload_2
|
|
176: aload_3
|
|
177: aload_1
|
|
178: getstatic #87 // Field CONTENTS:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;
|
|
181: iload 11
|
|
183: iload 13
|
|
185: iadd
|
|
186: invokestatic #93 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
|
|
189: invokevirtual #85 // Method net/minecraft/world/level/block/state/BlockState.m_61124_:(Lnet/minecraft/world/level/block/state/properties/Property;Ljava/lang/Comparable;)Ljava/lang/Object;
|
|
192: checkcast #73 // class net/minecraft/world/level/block/state/BlockState
|
|
195: iconst_2
|
|
196: invokevirtual #223 // Method net/minecraft/world/level/Level.m_7731_:(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;I)Z
|
|
199: pop
|
|
200: aload_2
|
|
201: aconst_null
|
|
202: aload_3
|
|
203: getstatic #252 // Field net/minecraft/sounds/SoundEvents.f_12019_:Lnet/minecraft/sounds/SoundEvent;
|
|
206: getstatic #258 // Field net/minecraft/sounds/SoundSource.BLOCKS:Lnet/minecraft/sounds/SoundSource;
|
|
209: ldc_w #259 // float 0.35f
|
|
212: ldc_w #260 // float 0.8f
|
|
215: invokevirtual #264 // Method net/minecraft/world/level/Level.m_5594_:(Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/core/BlockPos;Lnet/minecraft/sounds/SoundEvent;Lnet/minecraft/sounds/SoundSource;FF)V
|
|
218: aload_2
|
|
219: invokevirtual #219 // Method net/minecraft/world/level/Level.m_5776_:()Z
|
|
222: invokestatic #268 // Method net/minecraft/world/InteractionResult.m_19078_:(Z)Lnet/minecraft/world/InteractionResult;
|
|
225: areturn
|
|
|
|
public net.minecraft.world.InteractionResult m_6227_(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.world.entity.player.Player, net.minecraft.world.InteractionHand, net.minecraft.world.phys.BlockHitResult);
|
|
Code:
|
|
0: aload 4
|
|
2: aload 5
|
|
4: invokevirtual #200 // Method net/minecraft/world/entity/player/Player.m_21120_:(Lnet/minecraft/world/InteractionHand;)Lnet/minecraft/world/item/ItemStack;
|
|
7: astore 7
|
|
9: aload_0
|
|
10: invokevirtual #142 // Method containerItem:()Lcom/ogaba/sacore/content/item/tool/SupplyContainerItem;
|
|
13: astore 8
|
|
15: aload_0
|
|
16: aload_1
|
|
17: aload_2
|
|
18: aload_3
|
|
19: aload 4
|
|
21: aload 5
|
|
23: aload 4
|
|
25: invokevirtual #290 // Method net/minecraft/world/entity/player/Player.m_6144_:()Z
|
|
28: invokevirtual #292 // Method insertFromHand:(Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/world/InteractionHand;Z)Lnet/minecraft/world/InteractionResult;
|
|
31: astore 9
|
|
33: aload 9
|
|
35: getstatic #206 // Field net/minecraft/world/InteractionResult.PASS:Lnet/minecraft/world/InteractionResult;
|
|
38: if_acmpeq 44
|
|
41: aload 9
|
|
43: areturn
|
|
44: aload 8
|
|
46: invokevirtual #156 // Method com/ogaba/sacore/content/item/tool/SupplyContainerItem.getCapacity:()I
|
|
49: istore 10
|
|
51: aload_1
|
|
52: getstatic #87 // Field CONTENTS:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;
|
|
55: invokevirtual #210 // Method net/minecraft/world/level/block/state/BlockState.m_61143_:(Lnet/minecraft/world/level/block/state/properties/Property;)Ljava/lang/Comparable;
|
|
58: checkcast #89 // class java/lang/Integer
|
|
61: invokevirtual #213 // Method java/lang/Integer.intValue:()I
|
|
64: istore 11
|
|
66: iload 11
|
|
68: iconst_0
|
|
69: iload 10
|
|
71: invokestatic #162 // Method net/minecraft/util/Mth.m_14045_:(III)I
|
|
74: istore 12
|
|
76: aload_2
|
|
77: invokevirtual #219 // Method net/minecraft/world/level/Level.m_5776_:()Z
|
|
80: ifne 114
|
|
83: iload 11
|
|
85: iload 12
|
|
87: if_icmpeq 114
|
|
90: aload_1
|
|
91: getstatic #87 // Field CONTENTS:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;
|
|
94: iload 12
|
|
96: invokestatic #93 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
|
|
99: invokevirtual #85 // Method net/minecraft/world/level/block/state/BlockState.m_61124_:(Lnet/minecraft/world/level/block/state/properties/Property;Ljava/lang/Comparable;)Ljava/lang/Object;
|
|
102: checkcast #73 // class net/minecraft/world/level/block/state/BlockState
|
|
105: astore_1
|
|
106: aload_2
|
|
107: aload_3
|
|
108: aload_1
|
|
109: iconst_2
|
|
110: invokevirtual #223 // Method net/minecraft/world/level/Level.m_7731_:(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;I)Z
|
|
113: pop
|
|
114: aload 7
|
|
116: invokevirtual #295 // Method net/minecraft/world/item/ItemStack.m_41619_:()Z
|
|
119: ifeq 235
|
|
122: iload 12
|
|
124: ifle 235
|
|
127: aload_2
|
|
128: invokevirtual #219 // Method net/minecraft/world/level/Level.m_5776_:()Z
|
|
131: ifne 227
|
|
134: aload 4
|
|
136: invokevirtual #290 // Method net/minecraft/world/entity/player/Player.m_6144_:()Z
|
|
139: ifeq 158
|
|
142: iload 12
|
|
144: aload 8
|
|
146: invokevirtual #184 // Method com/ogaba/sacore/content/item/tool/SupplyContainerItem.getContainedItem:()Lnet/minecraft/world/item/Item;
|
|
149: invokevirtual #300 // Method net/minecraft/world/item/Item.m_41459_:()I
|
|
152: invokestatic #232 // Method java/lang/Math.min:(II)I
|
|
155: goto 159
|
|
158: iconst_1
|
|
159: istore 13
|
|
161: aload 4
|
|
163: aload 8
|
|
165: invokevirtual #184 // Method com/ogaba/sacore/content/item/tool/SupplyContainerItem.getContainedItem:()Lnet/minecraft/world/item/Item;
|
|
168: iload 13
|
|
170: invokestatic #304 // Method addToInventory:(Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/world/item/Item;I)I
|
|
173: istore 14
|
|
175: iload 14
|
|
177: ifgt 184
|
|
180: getstatic #307 // Field net/minecraft/world/InteractionResult.CONSUME:Lnet/minecraft/world/InteractionResult;
|
|
183: areturn
|
|
184: aload_2
|
|
185: aload_3
|
|
186: aload_1
|
|
187: getstatic #87 // Field CONTENTS:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;
|
|
190: iload 12
|
|
192: iload 14
|
|
194: isub
|
|
195: invokestatic #93 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
|
|
198: invokevirtual #85 // Method net/minecraft/world/level/block/state/BlockState.m_61124_:(Lnet/minecraft/world/level/block/state/properties/Property;Ljava/lang/Comparable;)Ljava/lang/Object;
|
|
201: checkcast #73 // class net/minecraft/world/level/block/state/BlockState
|
|
204: iconst_2
|
|
205: invokevirtual #223 // Method net/minecraft/world/level/Level.m_7731_:(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;I)Z
|
|
208: pop
|
|
209: aload_2
|
|
210: aconst_null
|
|
211: aload_3
|
|
212: getstatic #252 // Field net/minecraft/sounds/SoundEvents.f_12019_:Lnet/minecraft/sounds/SoundEvent;
|
|
215: getstatic #258 // Field net/minecraft/sounds/SoundSource.BLOCKS:Lnet/minecraft/sounds/SoundSource;
|
|
218: ldc_w #259 // float 0.35f
|
|
221: ldc_w #308 // float 1.15f
|
|
224: invokevirtual #264 // Method net/minecraft/world/level/Level.m_5594_:(Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/core/BlockPos;Lnet/minecraft/sounds/SoundEvent;Lnet/minecraft/sounds/SoundSource;FF)V
|
|
227: aload_2
|
|
228: invokevirtual #219 // Method net/minecraft/world/level/Level.m_5776_:()Z
|
|
231: invokestatic #268 // Method net/minecraft/world/InteractionResult.m_19078_:(Z)Lnet/minecraft/world/InteractionResult;
|
|
234: areturn
|
|
235: getstatic #206 // Field net/minecraft/world/InteractionResult.PASS:Lnet/minecraft/world/InteractionResult;
|
|
238: areturn
|
|
|
|
public java.util.List<net.minecraft.world.item.ItemStack> m_49635_(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.storage.loot.LootParams$Builder);
|
|
Code:
|
|
0: new #186 // class net/minecraft/world/item/ItemStack
|
|
3: dup
|
|
4: aload_0
|
|
5: invokevirtual #135 // Method m_5456_:()Lnet/minecraft/world/item/Item;
|
|
8: invokespecial #317 // Method net/minecraft/world/item/ItemStack."<init>":(Lnet/minecraft/world/level/ItemLike;)V
|
|
11: astore_3
|
|
12: aload_0
|
|
13: invokevirtual #142 // Method containerItem:()Lcom/ogaba/sacore/content/item/tool/SupplyContainerItem;
|
|
16: astore 4
|
|
18: aload_1
|
|
19: getstatic #87 // Field CONTENTS:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;
|
|
22: invokevirtual #210 // Method net/minecraft/world/level/block/state/BlockState.m_61143_:(Lnet/minecraft/world/level/block/state/properties/Property;)Ljava/lang/Comparable;
|
|
25: checkcast #89 // class java/lang/Integer
|
|
28: invokevirtual #213 // Method java/lang/Integer.intValue:()I
|
|
31: iconst_0
|
|
32: aload 4
|
|
34: invokevirtual #156 // Method com/ogaba/sacore/content/item/tool/SupplyContainerItem.getCapacity:()I
|
|
37: invokestatic #162 // Method net/minecraft/util/Mth.m_14045_:(III)I
|
|
40: istore 5
|
|
42: aload_3
|
|
43: iload 5
|
|
45: invokestatic #321 // Method com/ogaba/sacore/content/item/tool/SupplyContainerItem.setCharges:(Lnet/minecraft/world/item/ItemStack;I)V
|
|
48: aload_3
|
|
49: invokestatic #327 // InterfaceMethod java/util/List.of:(Ljava/lang/Object;)Ljava/util/List;
|
|
52: areturn
|
|
|
|
private static int addToInventory(net.minecraft.world.entity.player.Player, net.minecraft.world.item.Item, int);
|
|
Code:
|
|
0: iload_2
|
|
1: ifgt 6
|
|
4: iconst_0
|
|
5: ireturn
|
|
6: new #186 // class net/minecraft/world/item/ItemStack
|
|
9: dup
|
|
10: aload_1
|
|
11: iload_2
|
|
12: invokespecial #333 // Method net/minecraft/world/item/ItemStack."<init>":(Lnet/minecraft/world/level/ItemLike;I)V
|
|
15: astore_3
|
|
16: aload_3
|
|
17: invokevirtual #226 // Method net/minecraft/world/item/ItemStack.m_41613_:()I
|
|
20: istore 4
|
|
22: aload_0
|
|
23: invokevirtual #337 // Method net/minecraft/world/entity/player/Player.m_150109_:()Lnet/minecraft/world/entity/player/Inventory;
|
|
26: aload_3
|
|
27: invokevirtual #342 // Method net/minecraft/world/entity/player/Inventory.m_36054_:(Lnet/minecraft/world/item/ItemStack;)Z
|
|
30: pop
|
|
31: iload 4
|
|
33: aload_3
|
|
34: invokevirtual #226 // Method net/minecraft/world/item/ItemStack.m_41613_:()I
|
|
37: isub
|
|
38: ireturn
|
|
|
|
public net.minecraft.world.phys.shapes.VoxelShape m_5940_(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.BlockGetter, net.minecraft.core.BlockPos, net.minecraft.world.phys.shapes.CollisionContext);
|
|
Code:
|
|
0: getstatic #352 // Field com/ogaba/sacore/content/block/SupplyContainerBlock$1.$SwitchMap$net$minecraft$core$Direction:[I
|
|
3: aload_1
|
|
4: getstatic #75 // Field FACING:Lnet/minecraft/world/level/block/state/properties/DirectionProperty;
|
|
7: invokevirtual #210 // Method net/minecraft/world/level/block/state/BlockState.m_61143_:(Lnet/minecraft/world/level/block/state/properties/Property;)Ljava/lang/Comparable;
|
|
10: checkcast #77 // class net/minecraft/core/Direction
|
|
13: invokevirtual #355 // Method net/minecraft/core/Direction.ordinal:()I
|
|
16: iaload
|
|
17: tableswitch { // 1 to 3
|
|
|
|
1: 44
|
|
|
|
2: 51
|
|
|
|
3: 58
|
|
default: 65
|
|
}
|
|
44: aload_0
|
|
45: getfield #59 // Field eastShape:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
48: goto 69
|
|
51: aload_0
|
|
52: getfield #61 // Field southShape:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
55: goto 69
|
|
58: aload_0
|
|
59: getfield #63 // Field westShape:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
62: goto 69
|
|
65: aload_0
|
|
66: getfield #53 // Field northShape:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
69: areturn
|
|
|
|
protected void m_7926_(net.minecraft.world.level.block.state.StateDefinition$Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState>);
|
|
Code:
|
|
0: aload_1
|
|
1: iconst_2
|
|
2: anewarray #362 // class net/minecraft/world/level/block/state/properties/Property
|
|
5: dup
|
|
6: iconst_0
|
|
7: getstatic #75 // Field FACING:Lnet/minecraft/world/level/block/state/properties/DirectionProperty;
|
|
10: aastore
|
|
11: dup
|
|
12: iconst_1
|
|
13: getstatic #87 // Field CONTENTS:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;
|
|
16: aastore
|
|
17: invokevirtual #366 // Method net/minecraft/world/level/block/state/StateDefinition$Builder.m_61104_:([Lnet/minecraft/world/level/block/state/properties/Property;)Lnet/minecraft/world/level/block/state/StateDefinition$Builder;
|
|
20: pop
|
|
21: return
|
|
|
|
private static void lambda$rotateClockwise$0(net.minecraft.world.phys.shapes.VoxelShape[], double, double, double, double, double, double);
|
|
Code:
|
|
0: aload_0
|
|
1: iconst_0
|
|
2: aload_0
|
|
3: iconst_0
|
|
4: aaload
|
|
5: dconst_1
|
|
6: dload 11
|
|
8: dsub
|
|
9: dload_3
|
|
10: dload_1
|
|
11: dconst_1
|
|
12: dload 5
|
|
14: dsub
|
|
15: dload 9
|
|
17: dload 7
|
|
19: invokestatic #372 // Method net/minecraft/world/phys/shapes/Shapes.m_83048_:(DDDDDD)Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
22: invokestatic #376 // Method net/minecraft/world/phys/shapes/Shapes.m_83110_:(Lnet/minecraft/world/phys/shapes/VoxelShape;Lnet/minecraft/world/phys/shapes/VoxelShape;)Lnet/minecraft/world/phys/shapes/VoxelShape;
|
|
25: aastore
|
|
26: return
|
|
|
|
static {};
|
|
Code:
|
|
0: getstatic #388 // Field net/minecraft/world/level/block/HorizontalDirectionalBlock.f_54117_:Lnet/minecraft/world/level/block/state/properties/DirectionProperty;
|
|
3: putstatic #75 // Field FACING:Lnet/minecraft/world/level/block/state/properties/DirectionProperty;
|
|
6: ldc_w #390 // String contents
|
|
9: iconst_0
|
|
10: bipush 64
|
|
12: invokestatic #396 // Method net/minecraft/world/level/block/state/properties/IntegerProperty.m_61631_:(Ljava/lang/String;II)Lnet/minecraft/world/level/block/state/properties/IntegerProperty;
|
|
15: putstatic #87 // Field CONTENTS:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;
|
|
18: return
|
|
}
|
|
Compiled from "SupplyContainerItem.java"
|
|
public class com.ogaba.sacore.content.item.tool.SupplyContainerItem extends net.minecraft.world.item.BlockItem {
|
|
private final java.util.function.Supplier<? extends net.minecraft.world.item.Item> containedItem;
|
|
|
|
private final int capacity;
|
|
|
|
public com.ogaba.sacore.content.item.tool.SupplyContainerItem(net.minecraft.world.level.block.Block, net.minecraft.world.item.Item$Properties, java.util.function.Supplier<? extends net.minecraft.world.item.Item>, int);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: aload_2
|
|
3: iconst_1
|
|
4: invokevirtual #22 // Method net/minecraft/world/item/Item$Properties.m_41487_:(I)Lnet/minecraft/world/item/Item$Properties;
|
|
7: iload 4
|
|
9: invokevirtual #25 // Method net/minecraft/world/item/Item$Properties.m_41503_:(I)Lnet/minecraft/world/item/Item$Properties;
|
|
12: invokespecial #28 // Method net/minecraft/world/item/BlockItem."<init>":(Lnet/minecraft/world/level/block/Block;Lnet/minecraft/world/item/Item$Properties;)V
|
|
15: iload 4
|
|
17: ifgt 30
|
|
20: new #30 // class java/lang/IllegalArgumentException
|
|
23: dup
|
|
24: ldc #32 // String Supply container capacity must be greater than zero
|
|
26: invokespecial #35 // Method java/lang/IllegalArgumentException."<init>":(Ljava/lang/String;)V
|
|
29: athrow
|
|
30: aload_0
|
|
31: aload_3
|
|
32: putfield #41 // Field containedItem:Ljava/util/function/Supplier;
|
|
35: aload_0
|
|
36: iload 4
|
|
38: putfield #43 // Field capacity:I
|
|
41: return
|
|
|
|
public net.minecraft.world.item.Item getContainedItem();
|
|
Code:
|
|
0: aload_0
|
|
1: getfield #41 // Field containedItem:Ljava/util/function/Supplier;
|
|
4: invokeinterface #55, 1 // InterfaceMethod java/util/function/Supplier.get:()Ljava/lang/Object;
|
|
9: checkcast #9 // class net/minecraft/world/item/Item
|
|
12: areturn
|
|
|
|
public int getCapacity();
|
|
Code:
|
|
0: aload_0
|
|
1: getfield #43 // Field capacity:I
|
|
4: ireturn
|
|
|
|
public int getCharges(net.minecraft.world.item.ItemStack);
|
|
Code:
|
|
0: aload_0
|
|
1: getfield #43 // Field capacity:I
|
|
4: aload_1
|
|
5: invokevirtual #64 // Method net/minecraft/world/item/ItemStack.m_41773_:()I
|
|
8: isub
|
|
9: iconst_0
|
|
10: aload_0
|
|
11: getfield #43 // Field capacity:I
|
|
14: invokestatic #70 // Method net/minecraft/util/Mth.m_14045_:(III)I
|
|
17: ireturn
|
|
|
|
public int getFreeSpace(net.minecraft.world.item.ItemStack);
|
|
Code:
|
|
0: iconst_0
|
|
1: aload_0
|
|
2: getfield #43 // Field capacity:I
|
|
5: aload_0
|
|
6: aload_1
|
|
7: invokevirtual #75 // Method getCharges:(Lnet/minecraft/world/item/ItemStack;)I
|
|
10: isub
|
|
11: invokestatic #81 // Method java/lang/Math.max:(II)I
|
|
14: ireturn
|
|
|
|
public static void setCharges(net.minecraft.world.item.ItemStack, int);
|
|
Code:
|
|
0: aload_0
|
|
1: invokevirtual #86 // Method net/minecraft/world/item/ItemStack.m_41776_:()I
|
|
4: istore_2
|
|
5: iload_1
|
|
6: iconst_0
|
|
7: iload_2
|
|
8: invokestatic #70 // Method net/minecraft/util/Mth.m_14045_:(III)I
|
|
11: istore_3
|
|
12: aload_0
|
|
13: iload_2
|
|
14: iload_3
|
|
15: isub
|
|
16: invokevirtual #90 // Method net/minecraft/world/item/ItemStack.m_41721_:(I)V
|
|
19: return
|
|
|
|
public static net.minecraft.world.item.ItemStack withCharges(net.minecraft.world.item.ItemStack, int);
|
|
Code:
|
|
0: aload_0
|
|
1: invokevirtual #99 // Method net/minecraft/world/item/ItemStack.m_41777_:()Lnet/minecraft/world/item/ItemStack;
|
|
4: astore_2
|
|
5: aload_2
|
|
6: iconst_1
|
|
7: invokevirtual #102 // Method net/minecraft/world/item/ItemStack.m_41764_:(I)V
|
|
10: aload_2
|
|
11: iload_1
|
|
12: invokestatic #104 // Method setCharges:(Lnet/minecraft/world/item/ItemStack;I)V
|
|
15: aload_2
|
|
16: areturn
|
|
|
|
public int insert(net.minecraft.world.item.ItemStack, int);
|
|
Code:
|
|
0: iconst_0
|
|
1: iload_2
|
|
2: invokestatic #81 // Method java/lang/Math.max:(II)I
|
|
5: aload_0
|
|
6: aload_1
|
|
7: invokevirtual #109 // Method getFreeSpace:(Lnet/minecraft/world/item/ItemStack;)I
|
|
10: invokestatic #112 // Method java/lang/Math.min:(II)I
|
|
13: istore_3
|
|
14: iload_3
|
|
15: ifle 29
|
|
18: aload_1
|
|
19: aload_0
|
|
20: aload_1
|
|
21: invokevirtual #75 // Method getCharges:(Lnet/minecraft/world/item/ItemStack;)I
|
|
24: iload_3
|
|
25: iadd
|
|
26: invokestatic #104 // Method setCharges:(Lnet/minecraft/world/item/ItemStack;I)V
|
|
29: iload_3
|
|
30: ireturn
|
|
|
|
public net.minecraft.world.item.ItemStack extractOne(net.minecraft.world.item.ItemStack);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: iconst_1
|
|
3: invokevirtual #120 // Method extract:(Lnet/minecraft/world/item/ItemStack;I)Lnet/minecraft/world/item/ItemStack;
|
|
6: areturn
|
|
|
|
public net.minecraft.world.item.ItemStack extract(net.minecraft.world.item.ItemStack, int);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: invokevirtual #75 // Method getCharges:(Lnet/minecraft/world/item/ItemStack;)I
|
|
5: istore_3
|
|
6: iconst_0
|
|
7: iload_2
|
|
8: invokestatic #81 // Method java/lang/Math.max:(II)I
|
|
11: iload_3
|
|
12: invokestatic #112 // Method java/lang/Math.min:(II)I
|
|
15: istore 4
|
|
17: iload 4
|
|
19: aload_0
|
|
20: invokevirtual #122 // Method getContainedItem:()Lnet/minecraft/world/item/Item;
|
|
23: invokevirtual #125 // Method net/minecraft/world/item/Item.m_41459_:()I
|
|
26: invokestatic #112 // Method java/lang/Math.min:(II)I
|
|
29: istore 4
|
|
31: iload 4
|
|
33: ifgt 40
|
|
36: getstatic #128 // Field net/minecraft/world/item/ItemStack.f_41583_:Lnet/minecraft/world/item/ItemStack;
|
|
39: areturn
|
|
40: aload_1
|
|
41: iload_3
|
|
42: iload 4
|
|
44: isub
|
|
45: invokestatic #104 // Method setCharges:(Lnet/minecraft/world/item/ItemStack;I)V
|
|
48: new #61 // class net/minecraft/world/item/ItemStack
|
|
51: dup
|
|
52: aload_0
|
|
53: invokevirtual #122 // Method getContainedItem:()Lnet/minecraft/world/item/Item;
|
|
56: iload 4
|
|
58: invokespecial #131 // Method net/minecraft/world/item/ItemStack."<init>":(Lnet/minecraft/world/level/ItemLike;I)V
|
|
61: areturn
|
|
|
|
public boolean m_142207_(net.minecraft.world.item.ItemStack, net.minecraft.world.inventory.Slot, net.minecraft.world.inventory.ClickAction, net.minecraft.world.entity.player.Player);
|
|
Code:
|
|
0: aload_3
|
|
1: getstatic #140 // Field net/minecraft/world/inventory/ClickAction.SECONDARY:Lnet/minecraft/world/inventory/ClickAction;
|
|
4: if_acmpne 24
|
|
7: aload_1
|
|
8: invokevirtual #143 // Method net/minecraft/world/item/ItemStack.m_41613_:()I
|
|
11: iconst_1
|
|
12: if_icmpne 24
|
|
15: aload_2
|
|
16: aload 4
|
|
18: invokevirtual #149 // Method net/minecraft/world/inventory/Slot.m_150651_:(Lnet/minecraft/world/entity/player/Player;)Z
|
|
21: ifne 26
|
|
24: iconst_0
|
|
25: ireturn
|
|
26: aload_2
|
|
27: invokevirtual #152 // Method net/minecraft/world/inventory/Slot.m_7993_:()Lnet/minecraft/world/item/ItemStack;
|
|
30: astore 5
|
|
32: aload 5
|
|
34: aload_0
|
|
35: invokevirtual #122 // Method getContainedItem:()Lnet/minecraft/world/item/Item;
|
|
38: invokevirtual #156 // Method net/minecraft/world/item/ItemStack.m_150930_:(Lnet/minecraft/world/item/Item;)Z
|
|
41: ifeq 80
|
|
44: aload 5
|
|
46: invokevirtual #143 // Method net/minecraft/world/item/ItemStack.m_41613_:()I
|
|
49: istore 6
|
|
51: aload_0
|
|
52: aload_1
|
|
53: iload 6
|
|
55: invokevirtual #158 // Method insert:(Lnet/minecraft/world/item/ItemStack;I)I
|
|
58: istore 7
|
|
60: iload 7
|
|
62: ifgt 67
|
|
65: iconst_0
|
|
66: ireturn
|
|
67: aload 5
|
|
69: iload 7
|
|
71: invokevirtual #161 // Method net/minecraft/world/item/ItemStack.m_41774_:(I)V
|
|
74: aload_2
|
|
75: invokevirtual #165 // Method net/minecraft/world/inventory/Slot.m_6654_:()V
|
|
78: iconst_1
|
|
79: ireturn
|
|
80: aload 5
|
|
82: invokevirtual #169 // Method net/minecraft/world/item/ItemStack.m_41619_:()Z
|
|
85: ifeq 152
|
|
88: aload_0
|
|
89: aload_1
|
|
90: invokevirtual #75 // Method getCharges:(Lnet/minecraft/world/item/ItemStack;)I
|
|
93: ifle 152
|
|
96: aload_0
|
|
97: aload_1
|
|
98: invokevirtual #75 // Method getCharges:(Lnet/minecraft/world/item/ItemStack;)I
|
|
101: aload_0
|
|
102: invokevirtual #122 // Method getContainedItem:()Lnet/minecraft/world/item/Item;
|
|
105: invokevirtual #125 // Method net/minecraft/world/item/Item.m_41459_:()I
|
|
108: invokestatic #112 // Method java/lang/Math.min:(II)I
|
|
111: istore 6
|
|
113: new #61 // class net/minecraft/world/item/ItemStack
|
|
116: dup
|
|
117: aload_0
|
|
118: invokevirtual #122 // Method getContainedItem:()Lnet/minecraft/world/item/Item;
|
|
121: iload 6
|
|
123: invokespecial #131 // Method net/minecraft/world/item/ItemStack."<init>":(Lnet/minecraft/world/level/ItemLike;I)V
|
|
126: astore 7
|
|
128: aload_2
|
|
129: aload 7
|
|
131: invokevirtual #173 // Method net/minecraft/world/inventory/Slot.m_5857_:(Lnet/minecraft/world/item/ItemStack;)Z
|
|
134: ifne 139
|
|
137: iconst_0
|
|
138: ireturn
|
|
139: aload_2
|
|
140: aload_0
|
|
141: aload_1
|
|
142: iload 6
|
|
144: invokevirtual #120 // Method extract:(Lnet/minecraft/world/item/ItemStack;I)Lnet/minecraft/world/item/ItemStack;
|
|
147: invokevirtual #177 // Method net/minecraft/world/inventory/Slot.m_5852_:(Lnet/minecraft/world/item/ItemStack;)V
|
|
150: iconst_1
|
|
151: ireturn
|
|
152: iconst_0
|
|
153: ireturn
|
|
|
|
public boolean m_142305_(net.minecraft.world.item.ItemStack, net.minecraft.world.item.ItemStack, net.minecraft.world.inventory.Slot, net.minecraft.world.inventory.ClickAction, net.minecraft.world.entity.player.Player, net.minecraft.world.entity.SlotAccess);
|
|
Code:
|
|
0: aload 4
|
|
2: getstatic #140 // Field net/minecraft/world/inventory/ClickAction.SECONDARY:Lnet/minecraft/world/inventory/ClickAction;
|
|
5: if_acmpne 25
|
|
8: aload_1
|
|
9: invokevirtual #143 // Method net/minecraft/world/item/ItemStack.m_41613_:()I
|
|
12: iconst_1
|
|
13: if_icmpne 25
|
|
16: aload_3
|
|
17: aload 5
|
|
19: invokevirtual #149 // Method net/minecraft/world/inventory/Slot.m_150651_:(Lnet/minecraft/world/entity/player/Player;)Z
|
|
22: ifne 27
|
|
25: iconst_0
|
|
26: ireturn
|
|
27: aload_2
|
|
28: aload_0
|
|
29: invokevirtual #122 // Method getContainedItem:()Lnet/minecraft/world/item/Item;
|
|
32: invokevirtual #156 // Method net/minecraft/world/item/ItemStack.m_150930_:(Lnet/minecraft/world/item/Item;)Z
|
|
35: ifeq 72
|
|
38: aload_2
|
|
39: invokevirtual #143 // Method net/minecraft/world/item/ItemStack.m_41613_:()I
|
|
42: istore 7
|
|
44: aload_0
|
|
45: aload_1
|
|
46: iload 7
|
|
48: invokevirtual #158 // Method insert:(Lnet/minecraft/world/item/ItemStack;I)I
|
|
51: istore 8
|
|
53: iload 8
|
|
55: ifgt 60
|
|
58: iconst_0
|
|
59: ireturn
|
|
60: aload_2
|
|
61: iload 8
|
|
63: invokevirtual #161 // Method net/minecraft/world/item/ItemStack.m_41774_:(I)V
|
|
66: aload_3
|
|
67: invokevirtual #165 // Method net/minecraft/world/inventory/Slot.m_6654_:()V
|
|
70: iconst_1
|
|
71: ireturn
|
|
72: aload_2
|
|
73: invokevirtual #169 // Method net/minecraft/world/item/ItemStack.m_41619_:()Z
|
|
76: ifeq 125
|
|
79: aload_0
|
|
80: aload_1
|
|
81: invokevirtual #75 // Method getCharges:(Lnet/minecraft/world/item/ItemStack;)I
|
|
84: ifle 125
|
|
87: aload_0
|
|
88: aload_1
|
|
89: invokevirtual #75 // Method getCharges:(Lnet/minecraft/world/item/ItemStack;)I
|
|
92: aload_0
|
|
93: invokevirtual #122 // Method getContainedItem:()Lnet/minecraft/world/item/Item;
|
|
96: invokevirtual #125 // Method net/minecraft/world/item/Item.m_41459_:()I
|
|
99: invokestatic #112 // Method java/lang/Math.min:(II)I
|
|
102: istore 7
|
|
104: aload 6
|
|
106: aload_0
|
|
107: aload_1
|
|
108: iload 7
|
|
110: invokevirtual #120 // Method extract:(Lnet/minecraft/world/item/ItemStack;I)Lnet/minecraft/world/item/ItemStack;
|
|
113: invokeinterface #192, 2 // InterfaceMethod net/minecraft/world/entity/SlotAccess.m_142104_:(Lnet/minecraft/world/item/ItemStack;)Z
|
|
118: pop
|
|
119: aload_3
|
|
120: invokevirtual #165 // Method net/minecraft/world/inventory/Slot.m_6654_:()V
|
|
123: iconst_1
|
|
124: ireturn
|
|
125: iconst_0
|
|
126: ireturn
|
|
|
|
public void m_7373_(net.minecraft.world.item.ItemStack, net.minecraft.world.level.Level, java.util.List<net.minecraft.network.chat.Component>, net.minecraft.world.item.TooltipFlag);
|
|
Code:
|
|
0: aload_3
|
|
1: ldc #200 // String tooltip.sa_core.supply_container.contains
|
|
3: iconst_1
|
|
4: anewarray #202 // class java/lang/Object
|
|
7: dup
|
|
8: iconst_0
|
|
9: new #61 // class net/minecraft/world/item/ItemStack
|
|
12: dup
|
|
13: aload_0
|
|
14: getfield #41 // Field containedItem:Ljava/util/function/Supplier;
|
|
17: invokeinterface #55, 1 // InterfaceMethod java/util/function/Supplier.get:()Ljava/lang/Object;
|
|
22: checkcast #204 // class net/minecraft/world/level/ItemLike
|
|
25: invokespecial #207 // Method net/minecraft/world/item/ItemStack."<init>":(Lnet/minecraft/world/level/ItemLike;)V
|
|
28: invokevirtual #211 // Method net/minecraft/world/item/ItemStack.m_41786_:()Lnet/minecraft/network/chat/Component;
|
|
31: aastore
|
|
32: invokestatic #217 // InterfaceMethod net/minecraft/network/chat/Component.m_237110_:(Ljava/lang/String;[Ljava/lang/Object;)Lnet/minecraft/network/chat/MutableComponent;
|
|
35: getstatic #223 // Field net/minecraft/ChatFormatting.GRAY:Lnet/minecraft/ChatFormatting;
|
|
38: invokevirtual #229 // Method net/minecraft/network/chat/MutableComponent.m_130940_:(Lnet/minecraft/ChatFormatting;)Lnet/minecraft/network/chat/MutableComponent;
|
|
41: invokeinterface #235, 2 // InterfaceMethod java/util/List.add:(Ljava/lang/Object;)Z
|
|
46: pop
|
|
47: aload_3
|
|
48: ldc #237 // String tooltip.sa_core.supply_container.stored
|
|
50: iconst_2
|
|
51: anewarray #202 // class java/lang/Object
|
|
54: dup
|
|
55: iconst_0
|
|
56: aload_0
|
|
57: aload_1
|
|
58: invokevirtual #75 // Method getCharges:(Lnet/minecraft/world/item/ItemStack;)I
|
|
61: invokestatic #243 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
|
|
64: aastore
|
|
65: dup
|
|
66: iconst_1
|
|
67: aload_0
|
|
68: getfield #43 // Field capacity:I
|
|
71: invokestatic #243 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
|
|
74: aastore
|
|
75: invokestatic #217 // InterfaceMethod net/minecraft/network/chat/Component.m_237110_:(Ljava/lang/String;[Ljava/lang/Object;)Lnet/minecraft/network/chat/MutableComponent;
|
|
78: getstatic #246 // Field net/minecraft/ChatFormatting.DARK_GRAY:Lnet/minecraft/ChatFormatting;
|
|
81: invokevirtual #229 // Method net/minecraft/network/chat/MutableComponent.m_130940_:(Lnet/minecraft/ChatFormatting;)Lnet/minecraft/network/chat/MutableComponent;
|
|
84: invokeinterface #235, 2 // InterfaceMethod java/util/List.add:(Ljava/lang/Object;)Z
|
|
89: pop
|
|
90: return
|
|
|
|
public boolean m_8120_(net.minecraft.world.item.ItemStack);
|
|
Code:
|
|
0: iconst_0
|
|
1: ireturn
|
|
|
|
public boolean isBookEnchantable(net.minecraft.world.item.ItemStack, net.minecraft.world.item.ItemStack);
|
|
Code:
|
|
0: iconst_0
|
|
1: ireturn
|
|
|
|
public boolean m_6832_(net.minecraft.world.item.ItemStack, net.minecraft.world.item.ItemStack);
|
|
Code:
|
|
0: iconst_0
|
|
1: ireturn
|
|
|
|
public boolean isDamageable(net.minecraft.world.item.ItemStack);
|
|
Code:
|
|
0: iconst_1
|
|
1: ireturn
|
|
}
|
|
Compiled from "SupplyContainerCraftRecipe.java"
|
|
public class com.ogaba.sacore.content.recipe.SupplyContainerCraftRecipe implements net.minecraft.world.item.crafting.CraftingRecipe {
|
|
private final net.minecraft.resources.ResourceLocation id;
|
|
|
|
private final net.minecraft.world.item.Item containerItem;
|
|
|
|
private final net.minecraft.world.item.Item packagingItem;
|
|
|
|
private final net.minecraft.world.item.Item contentItem;
|
|
|
|
private final net.minecraft.world.item.Item sealItem;
|
|
|
|
private final int packagingCount;
|
|
|
|
public com.ogaba.sacore.content.recipe.SupplyContainerCraftRecipe(net.minecraft.resources.ResourceLocation, net.minecraft.world.item.Item, net.minecraft.world.item.Item, net.minecraft.world.item.Item, net.minecraft.world.item.Item, int);
|
|
Code:
|
|
0: aload_0
|
|
1: invokespecial #24 // Method java/lang/Object."<init>":()V
|
|
4: aload_0
|
|
5: aload_1
|
|
6: putfield #26 // Field id:Lnet/minecraft/resources/ResourceLocation;
|
|
9: aload_0
|
|
10: aload_2
|
|
11: putfield #28 // Field containerItem:Lnet/minecraft/world/item/Item;
|
|
14: aload_0
|
|
15: aload_3
|
|
16: putfield #30 // Field packagingItem:Lnet/minecraft/world/item/Item;
|
|
19: aload_0
|
|
20: aload 4
|
|
22: putfield #32 // Field contentItem:Lnet/minecraft/world/item/Item;
|
|
25: aload_0
|
|
26: aload 5
|
|
28: putfield #34 // Field sealItem:Lnet/minecraft/world/item/Item;
|
|
31: aload_0
|
|
32: iconst_1
|
|
33: iload 6
|
|
35: invokestatic #40 // Method java/lang/Math.max:(II)I
|
|
38: putfield #42 // Field packagingCount:I
|
|
41: return
|
|
|
|
public boolean matches(net.minecraft.world.inventory.CraftingContainer, net.minecraft.world.level.Level);
|
|
Code:
|
|
0: aload_0
|
|
1: getfield #42 // Field packagingCount:I
|
|
4: iconst_2
|
|
5: if_icmpne 88
|
|
8: aload_1
|
|
9: invokeinterface #52, 1 // InterfaceMethod net/minecraft/world/inventory/CraftingContainer.m_39347_:()I
|
|
14: istore_3
|
|
15: aload_1
|
|
16: invokeinterface #55, 1 // InterfaceMethod net/minecraft/world/inventory/CraftingContainer.m_39346_:()I
|
|
21: istore 4
|
|
23: iconst_0
|
|
24: istore 5
|
|
26: iload 5
|
|
28: iload 4
|
|
30: iconst_2
|
|
31: isub
|
|
32: if_icmpgt 86
|
|
35: iconst_0
|
|
36: istore 6
|
|
38: iload 6
|
|
40: iload_3
|
|
41: iconst_2
|
|
42: isub
|
|
43: if_icmpgt 80
|
|
46: aload_0
|
|
47: aload_1
|
|
48: iload 6
|
|
50: iload 5
|
|
52: iconst_0
|
|
53: invokevirtual #59 // Method matchesTwoByTwo:(Lnet/minecraft/world/inventory/CraftingContainer;IIZ)Z
|
|
56: ifne 72
|
|
59: aload_0
|
|
60: aload_1
|
|
61: iload 6
|
|
63: iload 5
|
|
65: iconst_1
|
|
66: invokevirtual #59 // Method matchesTwoByTwo:(Lnet/minecraft/world/inventory/CraftingContainer;IIZ)Z
|
|
69: ifeq 74
|
|
72: iconst_1
|
|
73: ireturn
|
|
74: iinc 6, 1
|
|
77: goto 38
|
|
80: iinc 5, 1
|
|
83: goto 26
|
|
86: iconst_0
|
|
87: ireturn
|
|
88: iconst_0
|
|
89: istore_3
|
|
90: iconst_0
|
|
91: istore 4
|
|
93: iconst_0
|
|
94: istore 5
|
|
96: iconst_0
|
|
97: istore 6
|
|
99: iconst_0
|
|
100: istore 7
|
|
102: iload 7
|
|
104: aload_1
|
|
105: invokeinterface #64, 1 // InterfaceMethod net/minecraft/world/inventory/CraftingContainer.m_6643_:()I
|
|
110: if_icmpge 217
|
|
113: aload_1
|
|
114: iload 7
|
|
116: invokeinterface #68, 2 // InterfaceMethod net/minecraft/world/inventory/CraftingContainer.m_8020_:(I)Lnet/minecraft/world/item/ItemStack;
|
|
121: astore 8
|
|
123: aload 8
|
|
125: invokevirtual #74 // Method net/minecraft/world/item/ItemStack.m_41619_:()Z
|
|
128: ifeq 134
|
|
131: goto 211
|
|
134: iinc 6, 1
|
|
137: aload 8
|
|
139: aload_0
|
|
140: getfield #30 // Field packagingItem:Lnet/minecraft/world/item/Item;
|
|
143: invokevirtual #78 // Method net/minecraft/world/item/ItemStack.m_150930_:(Lnet/minecraft/world/item/Item;)Z
|
|
146: ifeq 163
|
|
149: iload_3
|
|
150: aload_0
|
|
151: getfield #42 // Field packagingCount:I
|
|
154: if_icmpge 163
|
|
157: iinc 3, 1
|
|
160: goto 211
|
|
163: iload 4
|
|
165: ifne 186
|
|
168: aload 8
|
|
170: aload_0
|
|
171: getfield #32 // Field contentItem:Lnet/minecraft/world/item/Item;
|
|
174: invokevirtual #78 // Method net/minecraft/world/item/ItemStack.m_150930_:(Lnet/minecraft/world/item/Item;)Z
|
|
177: ifeq 186
|
|
180: iconst_1
|
|
181: istore 4
|
|
183: goto 211
|
|
186: iload 5
|
|
188: ifne 209
|
|
191: aload 8
|
|
193: aload_0
|
|
194: getfield #34 // Field sealItem:Lnet/minecraft/world/item/Item;
|
|
197: invokevirtual #78 // Method net/minecraft/world/item/ItemStack.m_150930_:(Lnet/minecraft/world/item/Item;)Z
|
|
200: ifeq 209
|
|
203: iconst_1
|
|
204: istore 5
|
|
206: goto 211
|
|
209: iconst_0
|
|
210: ireturn
|
|
211: iinc 7, 1
|
|
214: goto 102
|
|
217: iload 6
|
|
219: aload_0
|
|
220: getfield #42 // Field packagingCount:I
|
|
223: iconst_2
|
|
224: iadd
|
|
225: if_icmpne 250
|
|
228: iload_3
|
|
229: aload_0
|
|
230: getfield #42 // Field packagingCount:I
|
|
233: if_icmpne 250
|
|
236: iload 4
|
|
238: ifeq 250
|
|
241: iload 5
|
|
243: ifeq 250
|
|
246: iconst_1
|
|
247: goto 251
|
|
250: iconst_0
|
|
251: ireturn
|
|
|
|
private boolean matchesTwoByTwo(net.minecraft.world.inventory.CraftingContainer, int, int, boolean);
|
|
Code:
|
|
0: aload_1
|
|
1: invokeinterface #52, 1 // InterfaceMethod net/minecraft/world/inventory/CraftingContainer.m_39347_:()I
|
|
6: istore 5
|
|
8: aload_1
|
|
9: invokeinterface #55, 1 // InterfaceMethod net/minecraft/world/inventory/CraftingContainer.m_39346_:()I
|
|
14: istore 6
|
|
16: iconst_0
|
|
17: istore 7
|
|
19: iload 7
|
|
21: iload 6
|
|
23: if_icmpge 171
|
|
26: iconst_0
|
|
27: istore 8
|
|
29: iload 8
|
|
31: iload 5
|
|
33: if_icmpge 165
|
|
36: aconst_null
|
|
37: astore 9
|
|
39: iload 8
|
|
41: iload_2
|
|
42: isub
|
|
43: istore 10
|
|
45: iload 7
|
|
47: iload_3
|
|
48: isub
|
|
49: istore 11
|
|
51: iload 10
|
|
53: iflt 116
|
|
56: iload 10
|
|
58: iconst_2
|
|
59: if_icmpge 116
|
|
62: iload 11
|
|
64: iflt 116
|
|
67: iload 11
|
|
69: iconst_2
|
|
70: if_icmpge 116
|
|
73: iload 11
|
|
75: ifne 110
|
|
78: iload 10
|
|
80: ifne 87
|
|
83: iconst_1
|
|
84: goto 88
|
|
87: iconst_0
|
|
88: iload 4
|
|
90: ixor
|
|
91: ifeq 101
|
|
94: aload_0
|
|
95: getfield #34 // Field sealItem:Lnet/minecraft/world/item/Item;
|
|
98: goto 105
|
|
101: aload_0
|
|
102: getfield #32 // Field contentItem:Lnet/minecraft/world/item/Item;
|
|
105: astore 9
|
|
107: goto 116
|
|
110: aload_0
|
|
111: getfield #30 // Field packagingItem:Lnet/minecraft/world/item/Item;
|
|
114: astore 9
|
|
116: aload_1
|
|
117: iload 8
|
|
119: iload 7
|
|
121: iload 5
|
|
123: imul
|
|
124: iadd
|
|
125: invokeinterface #68, 2 // InterfaceMethod net/minecraft/world/inventory/CraftingContainer.m_8020_:(I)Lnet/minecraft/world/item/ItemStack;
|
|
130: astore 12
|
|
132: aload 9
|
|
134: ifnonnull 147
|
|
137: aload 12
|
|
139: invokevirtual #74 // Method net/minecraft/world/item/ItemStack.m_41619_:()Z
|
|
142: ifne 159
|
|
145: iconst_0
|
|
146: ireturn
|
|
147: aload 12
|
|
149: aload 9
|
|
151: invokevirtual #78 // Method net/minecraft/world/item/ItemStack.m_150930_:(Lnet/minecraft/world/item/Item;)Z
|
|
154: ifne 159
|
|
157: iconst_0
|
|
158: ireturn
|
|
159: iinc 8, 1
|
|
162: goto 29
|
|
165: iinc 7, 1
|
|
168: goto 19
|
|
171: iconst_1
|
|
172: ireturn
|
|
|
|
public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.inventory.CraftingContainer, net.minecraft.core.RegistryAccess);
|
|
Code:
|
|
0: aload_0
|
|
1: invokevirtual #108 // Method createResult:()Lnet/minecraft/world/item/ItemStack;
|
|
4: areturn
|
|
|
|
private net.minecraft.world.item.ItemStack createResult();
|
|
Code:
|
|
0: new #70 // class net/minecraft/world/item/ItemStack
|
|
3: dup
|
|
4: aload_0
|
|
5: getfield #28 // Field containerItem:Lnet/minecraft/world/item/Item;
|
|
8: invokespecial #113 // Method net/minecraft/world/item/ItemStack."<init>":(Lnet/minecraft/world/level/ItemLike;)V
|
|
11: iconst_1
|
|
12: invokestatic #119 // Method com/ogaba/sacore/content/item/tool/SupplyContainerItem.withCharges:(Lnet/minecraft/world/item/ItemStack;I)Lnet/minecraft/world/item/ItemStack;
|
|
15: areturn
|
|
|
|
public boolean m_8004_(int, int);
|
|
Code:
|
|
0: iload_1
|
|
1: iload_2
|
|
2: imul
|
|
3: aload_0
|
|
4: getfield #42 // Field packagingCount:I
|
|
7: iconst_2
|
|
8: iadd
|
|
9: if_icmplt 16
|
|
12: iconst_1
|
|
13: goto 17
|
|
16: iconst_0
|
|
17: ireturn
|
|
|
|
public net.minecraft.world.item.ItemStack m_8043_(net.minecraft.core.RegistryAccess);
|
|
Code:
|
|
0: aload_0
|
|
1: invokevirtual #108 // Method createResult:()Lnet/minecraft/world/item/ItemStack;
|
|
4: areturn
|
|
|
|
public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> m_7527_();
|
|
Code:
|
|
0: invokestatic #131 // Method net/minecraft/core/NonNullList.m_122779_:()Lnet/minecraft/core/NonNullList;
|
|
3: astore_1
|
|
4: aload_0
|
|
5: getfield #42 // Field packagingCount:I
|
|
8: iconst_2
|
|
9: if_icmpne 90
|
|
12: aload_1
|
|
13: iconst_1
|
|
14: anewarray #133 // class net/minecraft/world/level/ItemLike
|
|
17: dup
|
|
18: iconst_0
|
|
19: aload_0
|
|
20: getfield #34 // Field sealItem:Lnet/minecraft/world/item/Item;
|
|
23: aastore
|
|
24: invokestatic #139 // Method net/minecraft/world/item/crafting/Ingredient.m_43929_:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/world/item/crafting/Ingredient;
|
|
27: invokevirtual #143 // Method net/minecraft/core/NonNullList.add:(Ljava/lang/Object;)Z
|
|
30: pop
|
|
31: aload_1
|
|
32: iconst_1
|
|
33: anewarray #133 // class net/minecraft/world/level/ItemLike
|
|
36: dup
|
|
37: iconst_0
|
|
38: aload_0
|
|
39: getfield #32 // Field contentItem:Lnet/minecraft/world/item/Item;
|
|
42: aastore
|
|
43: invokestatic #139 // Method net/minecraft/world/item/crafting/Ingredient.m_43929_:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/world/item/crafting/Ingredient;
|
|
46: invokevirtual #143 // Method net/minecraft/core/NonNullList.add:(Ljava/lang/Object;)Z
|
|
49: pop
|
|
50: aload_1
|
|
51: iconst_1
|
|
52: anewarray #133 // class net/minecraft/world/level/ItemLike
|
|
55: dup
|
|
56: iconst_0
|
|
57: aload_0
|
|
58: getfield #30 // Field packagingItem:Lnet/minecraft/world/item/Item;
|
|
61: aastore
|
|
62: invokestatic #139 // Method net/minecraft/world/item/crafting/Ingredient.m_43929_:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/world/item/crafting/Ingredient;
|
|
65: invokevirtual #143 // Method net/minecraft/core/NonNullList.add:(Ljava/lang/Object;)Z
|
|
68: pop
|
|
69: aload_1
|
|
70: iconst_1
|
|
71: anewarray #133 // class net/minecraft/world/level/ItemLike
|
|
74: dup
|
|
75: iconst_0
|
|
76: aload_0
|
|
77: getfield #30 // Field packagingItem:Lnet/minecraft/world/item/Item;
|
|
80: aastore
|
|
81: invokestatic #139 // Method net/minecraft/world/item/crafting/Ingredient.m_43929_:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/world/item/crafting/Ingredient;
|
|
84: invokevirtual #143 // Method net/minecraft/core/NonNullList.add:(Ljava/lang/Object;)Z
|
|
87: pop
|
|
88: aload_1
|
|
89: areturn
|
|
90: iconst_0
|
|
91: istore_2
|
|
92: iload_2
|
|
93: aload_0
|
|
94: getfield #42 // Field packagingCount:I
|
|
97: if_icmpge 125
|
|
100: aload_1
|
|
101: iconst_1
|
|
102: anewarray #133 // class net/minecraft/world/level/ItemLike
|
|
105: dup
|
|
106: iconst_0
|
|
107: aload_0
|
|
108: getfield #30 // Field packagingItem:Lnet/minecraft/world/item/Item;
|
|
111: aastore
|
|
112: invokestatic #139 // Method net/minecraft/world/item/crafting/Ingredient.m_43929_:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/world/item/crafting/Ingredient;
|
|
115: invokevirtual #143 // Method net/minecraft/core/NonNullList.add:(Ljava/lang/Object;)Z
|
|
118: pop
|
|
119: iinc 2, 1
|
|
122: goto 92
|
|
125: aload_1
|
|
126: iconst_1
|
|
127: anewarray #133 // class net/minecraft/world/level/ItemLike
|
|
130: dup
|
|
131: iconst_0
|
|
132: aload_0
|
|
133: getfield #32 // Field contentItem:Lnet/minecraft/world/item/Item;
|
|
136: aastore
|
|
137: invokestatic #139 // Method net/minecraft/world/item/crafting/Ingredient.m_43929_:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/world/item/crafting/Ingredient;
|
|
140: invokevirtual #143 // Method net/minecraft/core/NonNullList.add:(Ljava/lang/Object;)Z
|
|
143: pop
|
|
144: aload_1
|
|
145: iconst_1
|
|
146: anewarray #133 // class net/minecraft/world/level/ItemLike
|
|
149: dup
|
|
150: iconst_0
|
|
151: aload_0
|
|
152: getfield #34 // Field sealItem:Lnet/minecraft/world/item/Item;
|
|
155: aastore
|
|
156: invokestatic #139 // Method net/minecraft/world/item/crafting/Ingredient.m_43929_:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/world/item/crafting/Ingredient;
|
|
159: invokevirtual #143 // Method net/minecraft/core/NonNullList.add:(Ljava/lang/Object;)Z
|
|
162: pop
|
|
163: aload_1
|
|
164: areturn
|
|
|
|
public java.lang.String m_6076_();
|
|
Code:
|
|
0: ldc #151 // String supply_container_craft
|
|
2: areturn
|
|
|
|
public net.minecraft.world.item.crafting.CraftingBookCategory m_245232_();
|
|
Code:
|
|
0: getstatic #159 // Field net/minecraft/world/item/crafting/CraftingBookCategory.MISC:Lnet/minecraft/world/item/crafting/CraftingBookCategory;
|
|
3: areturn
|
|
|
|
public net.minecraft.resources.ResourceLocation m_6423_();
|
|
Code:
|
|
0: aload_0
|
|
1: getfield #26 // Field id:Lnet/minecraft/resources/ResourceLocation;
|
|
4: areturn
|
|
|
|
public net.minecraft.world.item.crafting.RecipeSerializer<?> m_7707_();
|
|
Code:
|
|
0: getstatic #168 // Field com/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe$Serializer.INSTANCE:Lcom/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe$Serializer;
|
|
3: areturn
|
|
|
|
public net.minecraft.world.item.ItemStack m_5874_(net.minecraft.world.Container, net.minecraft.core.RegistryAccess);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: checkcast #48 // class net/minecraft/world/inventory/CraftingContainer
|
|
5: aload_2
|
|
6: invokevirtual #172 // Method assemble:(Lnet/minecraft/world/inventory/CraftingContainer;Lnet/minecraft/core/RegistryAccess;)Lnet/minecraft/world/item/ItemStack;
|
|
9: areturn
|
|
|
|
public boolean m_5818_(net.minecraft.world.Container, net.minecraft.world.level.Level);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: checkcast #48 // class net/minecraft/world/inventory/CraftingContainer
|
|
5: aload_2
|
|
6: invokevirtual #176 // Method matches:(Lnet/minecraft/world/inventory/CraftingContainer;Lnet/minecraft/world/level/Level;)Z
|
|
9: ireturn
|
|
}
|
|
Compiled from "SupplyContainerCraftRecipe.java"
|
|
public class com.ogaba.sacore.content.recipe.SupplyContainerCraftRecipe$Serializer implements net.minecraft.world.item.crafting.RecipeSerializer<com.ogaba.sacore.content.recipe.SupplyContainerCraftRecipe> {
|
|
public static final com.ogaba.sacore.content.recipe.SupplyContainerCraftRecipe$Serializer INSTANCE;
|
|
|
|
public static final net.minecraft.resources.ResourceLocation ID;
|
|
|
|
public com.ogaba.sacore.content.recipe.SupplyContainerCraftRecipe$Serializer();
|
|
Code:
|
|
0: aload_0
|
|
1: invokespecial #24 // Method java/lang/Object."<init>":()V
|
|
4: return
|
|
|
|
public com.ogaba.sacore.content.recipe.SupplyContainerCraftRecipe fromJson(net.minecraft.resources.ResourceLocation, com.google.gson.JsonObject);
|
|
Code:
|
|
0: aload_2
|
|
1: ldc #29 // String container
|
|
3: invokestatic #33 // Method readItem:(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lnet/minecraft/world/item/Item;
|
|
6: astore_3
|
|
7: aload_2
|
|
8: ldc #35 // String packaging
|
|
10: invokestatic #33 // Method readItem:(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lnet/minecraft/world/item/Item;
|
|
13: astore 4
|
|
15: aload_2
|
|
16: ldc #37 // String content
|
|
18: invokestatic #33 // Method readItem:(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lnet/minecraft/world/item/Item;
|
|
21: astore 5
|
|
23: aload_2
|
|
24: ldc #39 // String seal
|
|
26: invokestatic #33 // Method readItem:(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lnet/minecraft/world/item/Item;
|
|
29: astore 6
|
|
31: aload_2
|
|
32: ldc #41 // String packaging_count
|
|
34: iconst_1
|
|
35: invokestatic #47 // Method net/minecraft/util/GsonHelper.m_13824_:(Lcom/google/gson/JsonObject;Ljava/lang/String;I)I
|
|
38: istore 7
|
|
40: aload_3
|
|
41: aload_1
|
|
42: invokestatic #51 // Method validateContainer:(Lnet/minecraft/world/item/Item;Lnet/minecraft/resources/ResourceLocation;)V
|
|
45: new #10 // class com/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe
|
|
48: dup
|
|
49: aload_1
|
|
50: aload_3
|
|
51: aload 4
|
|
53: aload 5
|
|
55: aload 6
|
|
57: iload 7
|
|
59: invokespecial #54 // Method com/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe."<init>":(Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/world/item/Item;Lnet/minecraft/world/item/Item;Lnet/minecraft/world/item/Item;Lnet/minecraft/world/item/Item;I)V
|
|
62: areturn
|
|
|
|
public com.ogaba.sacore.content.recipe.SupplyContainerCraftRecipe fromNetwork(net.minecraft.resources.ResourceLocation, net.minecraft.network.FriendlyByteBuf);
|
|
Code:
|
|
0: getstatic #68 // Field net/minecraft/core/registries/BuiltInRegistries.f_257033_:Lnet/minecraft/core/DefaultedRegistry;
|
|
3: aload_2
|
|
4: invokevirtual #74 // Method net/minecraft/network/FriendlyByteBuf.m_130281_:()Lnet/minecraft/resources/ResourceLocation;
|
|
7: invokeinterface #80, 2 // InterfaceMethod net/minecraft/core/DefaultedRegistry.m_7745_:(Lnet/minecraft/resources/ResourceLocation;)Ljava/lang/Object;
|
|
12: checkcast #82 // class net/minecraft/world/item/Item
|
|
15: astore_3
|
|
16: getstatic #68 // Field net/minecraft/core/registries/BuiltInRegistries.f_257033_:Lnet/minecraft/core/DefaultedRegistry;
|
|
19: aload_2
|
|
20: invokevirtual #74 // Method net/minecraft/network/FriendlyByteBuf.m_130281_:()Lnet/minecraft/resources/ResourceLocation;
|
|
23: invokeinterface #80, 2 // InterfaceMethod net/minecraft/core/DefaultedRegistry.m_7745_:(Lnet/minecraft/resources/ResourceLocation;)Ljava/lang/Object;
|
|
28: checkcast #82 // class net/minecraft/world/item/Item
|
|
31: astore 4
|
|
33: getstatic #68 // Field net/minecraft/core/registries/BuiltInRegistries.f_257033_:Lnet/minecraft/core/DefaultedRegistry;
|
|
36: aload_2
|
|
37: invokevirtual #74 // Method net/minecraft/network/FriendlyByteBuf.m_130281_:()Lnet/minecraft/resources/ResourceLocation;
|
|
40: invokeinterface #80, 2 // InterfaceMethod net/minecraft/core/DefaultedRegistry.m_7745_:(Lnet/minecraft/resources/ResourceLocation;)Ljava/lang/Object;
|
|
45: checkcast #82 // class net/minecraft/world/item/Item
|
|
48: astore 5
|
|
50: getstatic #68 // Field net/minecraft/core/registries/BuiltInRegistries.f_257033_:Lnet/minecraft/core/DefaultedRegistry;
|
|
53: aload_2
|
|
54: invokevirtual #74 // Method net/minecraft/network/FriendlyByteBuf.m_130281_:()Lnet/minecraft/resources/ResourceLocation;
|
|
57: invokeinterface #80, 2 // InterfaceMethod net/minecraft/core/DefaultedRegistry.m_7745_:(Lnet/minecraft/resources/ResourceLocation;)Ljava/lang/Object;
|
|
62: checkcast #82 // class net/minecraft/world/item/Item
|
|
65: astore 6
|
|
67: aload_2
|
|
68: invokevirtual #86 // Method net/minecraft/network/FriendlyByteBuf.m_130242_:()I
|
|
71: istore 7
|
|
73: aload_3
|
|
74: aload_1
|
|
75: invokestatic #51 // Method validateContainer:(Lnet/minecraft/world/item/Item;Lnet/minecraft/resources/ResourceLocation;)V
|
|
78: new #10 // class com/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe
|
|
81: dup
|
|
82: aload_1
|
|
83: aload_3
|
|
84: aload 4
|
|
86: aload 5
|
|
88: aload 6
|
|
90: iload 7
|
|
92: invokespecial #54 // Method com/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe."<init>":(Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/world/item/Item;Lnet/minecraft/world/item/Item;Lnet/minecraft/world/item/Item;Lnet/minecraft/world/item/Item;I)V
|
|
95: areturn
|
|
|
|
public void toNetwork(net.minecraft.network.FriendlyByteBuf, com.ogaba.sacore.content.recipe.SupplyContainerCraftRecipe);
|
|
Code:
|
|
0: aload_1
|
|
1: getstatic #68 // Field net/minecraft/core/registries/BuiltInRegistries.f_257033_:Lnet/minecraft/core/DefaultedRegistry;
|
|
4: aload_2
|
|
5: getfield #93 // Field com/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe.containerItem:Lnet/minecraft/world/item/Item;
|
|
8: invokeinterface #97, 2 // InterfaceMethod net/minecraft/core/DefaultedRegistry.m_7981_:(Ljava/lang/Object;)Lnet/minecraft/resources/ResourceLocation;
|
|
13: invokevirtual #101 // Method net/minecraft/network/FriendlyByteBuf.m_130085_:(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;
|
|
16: pop
|
|
17: aload_1
|
|
18: getstatic #68 // Field net/minecraft/core/registries/BuiltInRegistries.f_257033_:Lnet/minecraft/core/DefaultedRegistry;
|
|
21: aload_2
|
|
22: getfield #104 // Field com/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe.packagingItem:Lnet/minecraft/world/item/Item;
|
|
25: invokeinterface #97, 2 // InterfaceMethod net/minecraft/core/DefaultedRegistry.m_7981_:(Ljava/lang/Object;)Lnet/minecraft/resources/ResourceLocation;
|
|
30: invokevirtual #101 // Method net/minecraft/network/FriendlyByteBuf.m_130085_:(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;
|
|
33: pop
|
|
34: aload_1
|
|
35: getstatic #68 // Field net/minecraft/core/registries/BuiltInRegistries.f_257033_:Lnet/minecraft/core/DefaultedRegistry;
|
|
38: aload_2
|
|
39: getfield #107 // Field com/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe.contentItem:Lnet/minecraft/world/item/Item;
|
|
42: invokeinterface #97, 2 // InterfaceMethod net/minecraft/core/DefaultedRegistry.m_7981_:(Ljava/lang/Object;)Lnet/minecraft/resources/ResourceLocation;
|
|
47: invokevirtual #101 // Method net/minecraft/network/FriendlyByteBuf.m_130085_:(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;
|
|
50: pop
|
|
51: aload_1
|
|
52: getstatic #68 // Field net/minecraft/core/registries/BuiltInRegistries.f_257033_:Lnet/minecraft/core/DefaultedRegistry;
|
|
55: aload_2
|
|
56: getfield #110 // Field com/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe.sealItem:Lnet/minecraft/world/item/Item;
|
|
59: invokeinterface #97, 2 // InterfaceMethod net/minecraft/core/DefaultedRegistry.m_7981_:(Ljava/lang/Object;)Lnet/minecraft/resources/ResourceLocation;
|
|
64: invokevirtual #101 // Method net/minecraft/network/FriendlyByteBuf.m_130085_:(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;
|
|
67: pop
|
|
68: aload_1
|
|
69: aload_2
|
|
70: getfield #112 // Field com/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe.packagingCount:I
|
|
73: invokevirtual #116 // Method net/minecraft/network/FriendlyByteBuf.m_130130_:(I)Lnet/minecraft/network/FriendlyByteBuf;
|
|
76: pop
|
|
77: return
|
|
|
|
private static net.minecraft.world.item.Item readItem(com.google.gson.JsonObject, java.lang.String);
|
|
Code:
|
|
0: new #120 // class net/minecraft/resources/ResourceLocation
|
|
3: dup
|
|
4: aload_0
|
|
5: aload_1
|
|
6: invokestatic #124 // Method net/minecraft/util/GsonHelper.m_13906_:(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
|
|
9: invokespecial #127 // Method net/minecraft/resources/ResourceLocation."<init>":(Ljava/lang/String;)V
|
|
12: astore_2
|
|
13: getstatic #68 // Field net/minecraft/core/registries/BuiltInRegistries.f_257033_:Lnet/minecraft/core/DefaultedRegistry;
|
|
16: aload_2
|
|
17: invokeinterface #131, 2 // InterfaceMethod net/minecraft/core/DefaultedRegistry.m_6612_:(Lnet/minecraft/resources/ResourceLocation;)Ljava/util/Optional;
|
|
22: astore_3
|
|
23: aload_3
|
|
24: aload_2
|
|
25: invokedynamic #151, 0 // InvokeDynamic #0:get:(Lnet/minecraft/resources/ResourceLocation;)Ljava/util/function/Supplier;
|
|
30: invokevirtual #157 // Method java/util/Optional.orElseThrow:(Ljava/util/function/Supplier;)Ljava/lang/Object;
|
|
33: checkcast #82 // class net/minecraft/world/item/Item
|
|
36: areturn
|
|
|
|
private static void validateContainer(net.minecraft.world.item.Item, net.minecraft.resources.ResourceLocation);
|
|
Code:
|
|
0: aload_0
|
|
1: instanceof #165 // class com/ogaba/sacore/content/item/tool/SupplyContainerItem
|
|
4: ifne 24
|
|
7: new #167 // class java/lang/IllegalArgumentException
|
|
10: dup
|
|
11: aload_1
|
|
12: invokestatic #173 // Method java/lang/String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
|
|
15: invokedynamic #185, 0 // InvokeDynamic #1:makeConcatWithConstants:(Ljava/lang/String;)Ljava/lang/String;
|
|
20: invokespecial #186 // Method java/lang/IllegalArgumentException."<init>":(Ljava/lang/String;)V
|
|
23: athrow
|
|
24: return
|
|
|
|
public void m_6178_(net.minecraft.network.FriendlyByteBuf, net.minecraft.world.item.crafting.Recipe);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: aload_2
|
|
3: checkcast #10 // class com/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe
|
|
6: invokevirtual #191 // Method toNetwork:(Lnet/minecraft/network/FriendlyByteBuf;Lcom/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe;)V
|
|
9: return
|
|
|
|
public net.minecraft.world.item.crafting.Recipe m_8005_(net.minecraft.resources.ResourceLocation, net.minecraft.network.FriendlyByteBuf);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: aload_2
|
|
3: invokevirtual #195 // Method fromNetwork:(Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/network/FriendlyByteBuf;)Lcom/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe;
|
|
6: areturn
|
|
|
|
public net.minecraft.world.item.crafting.Recipe m_6729_(net.minecraft.resources.ResourceLocation, com.google.gson.JsonObject);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: aload_2
|
|
3: invokevirtual #199 // Method fromJson:(Lnet/minecraft/resources/ResourceLocation;Lcom/google/gson/JsonObject;)Lcom/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe;
|
|
6: areturn
|
|
|
|
private static java.lang.IllegalArgumentException lambda$readItem$0(net.minecraft.resources.ResourceLocation);
|
|
Code:
|
|
0: new #167 // class java/lang/IllegalArgumentException
|
|
3: dup
|
|
4: aload_0
|
|
5: invokestatic #173 // Method java/lang/String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
|
|
8: invokedynamic #202, 0 // InvokeDynamic #2:makeConcatWithConstants:(Ljava/lang/String;)Ljava/lang/String;
|
|
13: invokespecial #186 // Method java/lang/IllegalArgumentException."<init>":(Ljava/lang/String;)V
|
|
16: areturn
|
|
|
|
static {};
|
|
Code:
|
|
0: new #2 // class com/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe$Serializer
|
|
3: dup
|
|
4: invokespecial #204 // Method "<init>":()V
|
|
7: putstatic #206 // Field INSTANCE:Lcom/ogaba/sacore/content/recipe/SupplyContainerCraftRecipe$Serializer;
|
|
10: new #120 // class net/minecraft/resources/ResourceLocation
|
|
13: dup
|
|
14: ldc #208 // String sa_core
|
|
16: ldc #210 // String supply_container_craft
|
|
18: invokespecial #213 // Method net/minecraft/resources/ResourceLocation."<init>":(Ljava/lang/String;Ljava/lang/String;)V
|
|
21: putstatic #215 // Field ID:Lnet/minecraft/resources/ResourceLocation;
|
|
24: return
|
|
}
|