代码初始化
This commit is contained in:
1 parent
c2f5cd98ff
commit
e3efeb74ad
2439 files changed
+305661
-1
No files matched your search
Binary file not shown.
@@ -0,0 +1,178 @@
|
||||
Compiled from "ConsumableEffectItem.java"
|
||||
public class com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder {
|
||||
private final net.minecraft.world.item.Item$Properties properties;
|
||||
|
||||
private net.minecraft.world.item.UseAnim useAnim;
|
||||
|
||||
private int duration;
|
||||
|
||||
private java.util.List<net.minecraft.world.effect.MobEffectInstance> effects;
|
||||
|
||||
private net.minecraft.sounds.SoundEvent finishSound;
|
||||
|
||||
private net.minecraft.sounds.SoundEvent eatingSound;
|
||||
|
||||
private net.minecraft.sounds.SoundEvent drinkingSound;
|
||||
|
||||
private java.util.function.Consumer<net.minecraft.world.entity.LivingEntity> extraAction;
|
||||
|
||||
private boolean removesPoisonTooltip;
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder(net.minecraft.world.item.Item$Properties);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: invokespecial #41 // Method java/lang/Object."<init>":()V
|
||||
4: aload_0
|
||||
5: getstatic #46 // Field net/minecraft/world/item/UseAnim.EAT:Lnet/minecraft/world/item/UseAnim;
|
||||
8: putfield #48 // Field useAnim:Lnet/minecraft/world/item/UseAnim;
|
||||
11: aload_0
|
||||
12: bipush 32
|
||||
14: putfield #50 // Field duration:I
|
||||
17: aload_0
|
||||
18: invokestatic #56 // Method java/util/Collections.emptyList:()Ljava/util/List;
|
||||
21: putfield #58 // Field effects:Ljava/util/List;
|
||||
24: aload_0
|
||||
25: getstatic #63 // Field net/minecraft/sounds/SoundEvents.f_11912_:Lnet/minecraft/sounds/SoundEvent;
|
||||
28: putfield #65 // Field finishSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
31: aload_0
|
||||
32: getstatic #63 // Field net/minecraft/sounds/SoundEvents.f_11912_:Lnet/minecraft/sounds/SoundEvent;
|
||||
35: putfield #67 // Field eatingSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
38: aload_0
|
||||
39: getstatic #70 // Field net/minecraft/sounds/SoundEvents.f_11911_:Lnet/minecraft/sounds/SoundEvent;
|
||||
42: putfield #72 // Field drinkingSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
45: aload_0
|
||||
46: aconst_null
|
||||
47: putfield #74 // Field extraAction:Ljava/util/function/Consumer;
|
||||
50: aload_0
|
||||
51: iconst_0
|
||||
52: putfield #76 // Field removesPoisonTooltip:Z
|
||||
55: aload_0
|
||||
56: aload_1
|
||||
57: putfield #78 // Field properties:Lnet/minecraft/world/item/Item$Properties;
|
||||
60: return
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder anim(net.minecraft.world.item.UseAnim);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: putfield #48 // Field useAnim:Lnet/minecraft/world/item/UseAnim;
|
||||
5: aload_0
|
||||
6: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder duration(int);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: iload_1
|
||||
2: putfield #50 // Field duration:I
|
||||
5: aload_0
|
||||
6: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder effect(net.minecraft.world.effect.MobEffectInstance);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: invokestatic #93 // InterfaceMethod java/util/List.of:(Ljava/lang/Object;)Ljava/util/List;
|
||||
5: putfield #58 // Field effects:Ljava/util/List;
|
||||
8: aload_0
|
||||
9: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder effects(net.minecraft.world.effect.MobEffectInstance...);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: invokestatic #99 // InterfaceMethod java/util/List.of:([Ljava/lang/Object;)Ljava/util/List;
|
||||
5: putfield #58 // Field effects:Ljava/util/List;
|
||||
8: aload_0
|
||||
9: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder effects(java.util.List<net.minecraft.world.effect.MobEffectInstance>);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: invokestatic #106 // InterfaceMethod java/util/List.copyOf:(Ljava/util/Collection;)Ljava/util/List;
|
||||
5: putfield #58 // Field effects:Ljava/util/List;
|
||||
8: aload_0
|
||||
9: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder finishSound(net.minecraft.sounds.SoundEvent);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: putfield #65 // Field finishSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
5: aload_0
|
||||
6: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder eatingSound(net.minecraft.sounds.SoundEvent);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: putfield #67 // Field eatingSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
5: aload_0
|
||||
6: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder drinkingSound(net.minecraft.sounds.SoundEvent);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: putfield #72 // Field drinkingSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
5: aload_0
|
||||
6: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder cooldown(int);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder removePoison();
|
||||
Code:
|
||||
0: aload_0
|
||||
1: getfield #74 // Field extraAction:Ljava/util/function/Consumer;
|
||||
4: astore_1
|
||||
5: aload_0
|
||||
6: aload_1
|
||||
7: invokedynamic #131, 0 // InvokeDynamic #0:accept:(Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
|
||||
12: putfield #74 // Field extraAction:Ljava/util/function/Consumer;
|
||||
15: aload_0
|
||||
16: iconst_1
|
||||
17: putfield #76 // Field removesPoisonTooltip:Z
|
||||
20: aload_0
|
||||
21: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder onApply(java.util.function.Consumer<net.minecraft.world.entity.LivingEntity>);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: getfield #74 // Field extraAction:Ljava/util/function/Consumer;
|
||||
4: astore_2
|
||||
5: aload_0
|
||||
6: aload_2
|
||||
7: ifnonnull 14
|
||||
10: aload_1
|
||||
11: goto 21
|
||||
14: aload_2
|
||||
15: aload_1
|
||||
16: invokeinterface #140, 2 // InterfaceMethod java/util/function/Consumer.andThen:(Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
|
||||
21: putfield #74 // Field extraAction:Ljava/util/function/Consumer;
|
||||
24: aload_0
|
||||
25: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableEffectItem build();
|
||||
Code:
|
||||
0: new #7 // class com/ogaba/sa_survival/item/common/ConsumableEffectItem
|
||||
3: dup
|
||||
4: aload_0
|
||||
5: invokespecial #146 // Method com/ogaba/sa_survival/item/common/ConsumableEffectItem."<init>":(Lcom/ogaba/sa_survival/item/common/ConsumableEffectItem$Builder;)V
|
||||
8: areturn
|
||||
|
||||
private static void lambda$removePoison$0(java.util.function.Consumer, net.minecraft.world.entity.LivingEntity);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: ifnull 11
|
||||
4: aload_0
|
||||
5: aload_1
|
||||
6: invokeinterface #148, 2 // InterfaceMethod java/util/function/Consumer.accept:(Ljava/lang/Object;)V
|
||||
11: aload_1
|
||||
12: getstatic #154 // Field net/minecraft/world/effect/MobEffects.f_19614_:Lnet/minecraft/world/effect/MobEffect;
|
||||
15: invokevirtual #160 // Method net/minecraft/world/entity/LivingEntity.m_21195_:(Lnet/minecraft/world/effect/MobEffect;)Z
|
||||
18: pop
|
||||
19: return
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,172 @@
|
||||
Compiled from "ConsumableEffectItem.java"
|
||||
public class com.ogaba.sa_survival.item.common.ConsumableEffectItem extends com.ogaba.sacore.content.item.custom.ConsumableItem implements com.ogaba.sa_survival.item.tooltip.EffectTooltipSource {
|
||||
private final java.util.List<net.minecraft.world.effect.MobEffectInstance> effects;
|
||||
|
||||
private final net.minecraft.sounds.SoundEvent finishSound;
|
||||
|
||||
private final net.minecraft.sounds.SoundEvent eatingSound;
|
||||
|
||||
private final net.minecraft.sounds.SoundEvent drinkingSound;
|
||||
|
||||
private final java.util.function.Consumer<net.minecraft.world.entity.LivingEntity> extraAction;
|
||||
|
||||
private final boolean removesPoisonTooltip;
|
||||
|
||||
protected com.ogaba.sa_survival.item.common.ConsumableEffectItem(com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: getfield #33 // Field com/ogaba/sa_survival/item/common/ConsumableEffectItem$Builder.properties:Lnet/minecraft/world/item/Item$Properties;
|
||||
5: aload_1
|
||||
6: getfield #37 // Field com/ogaba/sa_survival/item/common/ConsumableEffectItem$Builder.useAnim:Lnet/minecraft/world/item/UseAnim;
|
||||
9: aload_1
|
||||
10: getfield #41 // Field com/ogaba/sa_survival/item/common/ConsumableEffectItem$Builder.duration:I
|
||||
13: invokespecial #44 // Method com/ogaba/sacore/content/item/custom/ConsumableItem."<init>":(Lnet/minecraft/world/item/Item$Properties;Lnet/minecraft/world/item/UseAnim;I)V
|
||||
16: aload_0
|
||||
17: aload_1
|
||||
18: getfield #46 // Field com/ogaba/sa_survival/item/common/ConsumableEffectItem$Builder.effects:Ljava/util/List;
|
||||
21: putfield #47 // Field effects:Ljava/util/List;
|
||||
24: aload_0
|
||||
25: aload_1
|
||||
26: getfield #49 // Field com/ogaba/sa_survival/item/common/ConsumableEffectItem$Builder.finishSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
29: putfield #50 // Field finishSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
32: aload_0
|
||||
33: aload_1
|
||||
34: getfield #52 // Field com/ogaba/sa_survival/item/common/ConsumableEffectItem$Builder.eatingSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
37: putfield #53 // Field eatingSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
40: aload_0
|
||||
41: aload_1
|
||||
42: getfield #55 // Field com/ogaba/sa_survival/item/common/ConsumableEffectItem$Builder.drinkingSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
45: putfield #56 // Field drinkingSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
48: aload_0
|
||||
49: aload_1
|
||||
50: getfield #58 // Field com/ogaba/sa_survival/item/common/ConsumableEffectItem$Builder.extraAction:Ljava/util/function/Consumer;
|
||||
53: putfield #59 // Field extraAction:Ljava/util/function/Consumer;
|
||||
56: aload_0
|
||||
57: aload_1
|
||||
58: getfield #61 // Field com/ogaba/sa_survival/item/common/ConsumableEffectItem$Builder.removesPoisonTooltip:Z
|
||||
61: putfield #62 // Field removesPoisonTooltip:Z
|
||||
64: return
|
||||
|
||||
public boolean m_5812_(net.minecraft.world.item.ItemStack);
|
||||
Code:
|
||||
0: iconst_0
|
||||
1: ireturn
|
||||
|
||||
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 canApplyAtEnchantingTable(net.minecraft.world.item.ItemStack, net.minecraft.world.item.enchantment.Enchantment);
|
||||
Code:
|
||||
0: iconst_0
|
||||
1: ireturn
|
||||
|
||||
public java.util.List<net.minecraft.world.effect.MobEffectInstance> getTooltipEffects();
|
||||
Code:
|
||||
0: aload_0
|
||||
1: getfield #47 // Field effects:Ljava/util/List;
|
||||
4: areturn
|
||||
|
||||
public boolean tooltipRemovesPoison();
|
||||
Code:
|
||||
0: aload_0
|
||||
1: getfield #62 // Field removesPoisonTooltip:Z
|
||||
4: 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_0
|
||||
1: invokevirtual #89 // Method getTooltipEffects:()Ljava/util/List;
|
||||
4: aload_3
|
||||
5: fconst_1
|
||||
6: invokestatic #95 // Method com/ogaba/sa_survival/item/tooltip/EffectTooltipUtil.addEffectTooltip:(Ljava/util/List;Ljava/util/List;F)V
|
||||
9: aload_0
|
||||
10: aload_3
|
||||
11: invokestatic #99 // Method com/ogaba/sa_survival/item/tooltip/EffectTooltipUtil.addExtrasTooltip:(Lcom/ogaba/sa_survival/item/tooltip/EffectTooltipSource;Ljava/util/List;)V
|
||||
14: aload_0
|
||||
15: aload_1
|
||||
16: aload_2
|
||||
17: aload_3
|
||||
18: aload 4
|
||||
20: invokespecial #101 // Method com/ogaba/sacore/content/item/custom/ConsumableItem.m_7373_:(Lnet/minecraft/world/item/ItemStack;Lnet/minecraft/world/level/Level;Ljava/util/List;Lnet/minecraft/world/item/TooltipFlag;)V
|
||||
23: return
|
||||
|
||||
public net.minecraft.sounds.SoundEvent m_6061_();
|
||||
Code:
|
||||
0: aload_0
|
||||
1: getfield #53 // Field eatingSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
4: areturn
|
||||
|
||||
public net.minecraft.sounds.SoundEvent m_6023_();
|
||||
Code:
|
||||
0: aload_0
|
||||
1: getfield #56 // Field drinkingSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
4: areturn
|
||||
|
||||
protected void onConsumed(net.minecraft.world.item.ItemStack, net.minecraft.world.level.Level, net.minecraft.world.entity.LivingEntity);
|
||||
Code:
|
||||
0: aload_2
|
||||
1: getfield #117 // Field net/minecraft/world/level/Level.f_46443_:Z
|
||||
4: ifeq 8
|
||||
7: return
|
||||
8: aload_0
|
||||
9: getfield #47 // Field effects:Ljava/util/List;
|
||||
12: invokeinterface #123, 1 // InterfaceMethod java/util/List.iterator:()Ljava/util/Iterator;
|
||||
17: astore 4
|
||||
19: aload 4
|
||||
21: invokeinterface #128, 1 // InterfaceMethod java/util/Iterator.hasNext:()Z
|
||||
26: ifeq 58
|
||||
29: aload 4
|
||||
31: invokeinterface #132, 1 // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
|
||||
36: checkcast #134 // class net/minecraft/world/effect/MobEffectInstance
|
||||
39: astore 5
|
||||
41: aload_3
|
||||
42: new #134 // class net/minecraft/world/effect/MobEffectInstance
|
||||
45: dup
|
||||
46: aload 5
|
||||
48: invokespecial #137 // Method net/minecraft/world/effect/MobEffectInstance."<init>":(Lnet/minecraft/world/effect/MobEffectInstance;)V
|
||||
51: invokevirtual #143 // Method net/minecraft/world/entity/LivingEntity.m_7292_:(Lnet/minecraft/world/effect/MobEffectInstance;)Z
|
||||
54: pop
|
||||
55: goto 19
|
||||
58: aload_0
|
||||
59: getfield #59 // Field extraAction:Ljava/util/function/Consumer;
|
||||
62: ifnull 75
|
||||
65: aload_0
|
||||
66: getfield #59 // Field extraAction:Ljava/util/function/Consumer;
|
||||
69: aload_3
|
||||
70: invokeinterface #149, 2 // InterfaceMethod java/util/function/Consumer.accept:(Ljava/lang/Object;)V
|
||||
75: aload_0
|
||||
76: getfield #50 // Field finishSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
79: ifnull 110
|
||||
82: aload_2
|
||||
83: aconst_null
|
||||
84: aload_3
|
||||
85: invokevirtual #153 // Method net/minecraft/world/entity/LivingEntity.m_20185_:()D
|
||||
88: aload_3
|
||||
89: invokevirtual #156 // Method net/minecraft/world/entity/LivingEntity.m_20186_:()D
|
||||
92: aload_3
|
||||
93: invokevirtual #159 // Method net/minecraft/world/entity/LivingEntity.m_20189_:()D
|
||||
96: aload_0
|
||||
97: getfield #50 // Field finishSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
100: aload_3
|
||||
101: invokevirtual #163 // Method net/minecraft/world/entity/LivingEntity.m_5720_:()Lnet/minecraft/sounds/SoundSource;
|
||||
104: ldc #164 // float 0.5f
|
||||
106: fconst_1
|
||||
107: invokevirtual #168 // Method net/minecraft/world/level/Level.m_6263_:(Lnet/minecraft/world/entity/player/Player;DDDLnet/minecraft/sounds/SoundEvent;Lnet/minecraft/sounds/SoundSource;FF)V
|
||||
110: return
|
||||
|
||||
public static com.ogaba.sa_survival.item.common.ConsumableEffectItem$Builder builder(net.minecraft.world.item.Item$Properties);
|
||||
Code:
|
||||
0: new #9 // class com/ogaba/sa_survival/item/common/ConsumableEffectItem$Builder
|
||||
3: dup
|
||||
4: aload_0
|
||||
5: invokespecial #177 // Method com/ogaba/sa_survival/item/common/ConsumableEffectItem$Builder."<init>":(Lnet/minecraft/world/item/Item$Properties;)V
|
||||
8: areturn
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,99 @@
|
||||
Compiled from "ConsumableHerbBlockItem.java"
|
||||
public class com.ogaba.sa_survival.item.common.ConsumableHerbBlockItem$Builder {
|
||||
private final net.minecraft.world.level.block.Block block;
|
||||
|
||||
private final net.minecraft.world.item.Item$Properties properties;
|
||||
|
||||
private java.util.List<net.minecraft.world.effect.MobEffectInstance> effects;
|
||||
|
||||
private int duration;
|
||||
|
||||
private net.minecraft.sounds.SoundEvent chewSound;
|
||||
|
||||
private net.minecraft.sounds.SoundEvent eatSound;
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableHerbBlockItem$Builder(net.minecraft.world.level.block.Block, net.minecraft.world.item.Item$Properties);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: invokespecial #30 // Method java/lang/Object."<init>":()V
|
||||
4: aload_0
|
||||
5: invokestatic #36 // Method java/util/Collections.emptyList:()Ljava/util/List;
|
||||
8: putfield #38 // Field effects:Ljava/util/List;
|
||||
11: aload_0
|
||||
12: bipush 60
|
||||
14: putfield #40 // Field duration:I
|
||||
17: aload_0
|
||||
18: getstatic #45 // Field net/minecraft/sounds/SoundEvents.f_11992_:Lnet/minecraft/sounds/SoundEvent;
|
||||
21: putfield #47 // Field chewSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
24: aload_0
|
||||
25: getstatic #50 // Field net/minecraft/sounds/SoundEvents.f_11912_:Lnet/minecraft/sounds/SoundEvent;
|
||||
28: putfield #52 // Field eatSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
31: aload_0
|
||||
32: aload_1
|
||||
33: putfield #54 // Field block:Lnet/minecraft/world/level/block/Block;
|
||||
36: aload_0
|
||||
37: aload_2
|
||||
38: putfield #56 // Field properties:Lnet/minecraft/world/item/Item$Properties;
|
||||
41: return
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableHerbBlockItem$Builder effect(net.minecraft.world.effect.MobEffectInstance);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: invokestatic #66 // InterfaceMethod java/util/List.of:(Ljava/lang/Object;)Ljava/util/List;
|
||||
5: putfield #38 // Field effects:Ljava/util/List;
|
||||
8: aload_0
|
||||
9: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableHerbBlockItem$Builder effects(net.minecraft.world.effect.MobEffectInstance...);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: invokestatic #72 // InterfaceMethod java/util/List.of:([Ljava/lang/Object;)Ljava/util/List;
|
||||
5: putfield #38 // Field effects:Ljava/util/List;
|
||||
8: aload_0
|
||||
9: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableHerbBlockItem$Builder duration(int);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: iload_1
|
||||
2: putfield #40 // Field duration:I
|
||||
5: aload_0
|
||||
6: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableHerbBlockItem$Builder chewSound(net.minecraft.sounds.SoundEvent);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: putfield #47 // Field chewSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
5: aload_0
|
||||
6: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableHerbBlockItem$Builder eatSound(net.minecraft.sounds.SoundEvent);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: putfield #52 // Field eatSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
5: aload_0
|
||||
6: areturn
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableHerbBlockItem build();
|
||||
Code:
|
||||
0: new #7 // class com/ogaba/sa_survival/item/common/ConsumableHerbBlockItem
|
||||
3: dup
|
||||
4: aload_0
|
||||
5: getfield #54 // Field block:Lnet/minecraft/world/level/block/Block;
|
||||
8: aload_0
|
||||
9: getfield #56 // Field properties:Lnet/minecraft/world/item/Item$Properties;
|
||||
12: aload_0
|
||||
13: getfield #38 // Field effects:Ljava/util/List;
|
||||
16: aload_0
|
||||
17: getfield #40 // Field duration:I
|
||||
20: aload_0
|
||||
21: getfield #47 // Field chewSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
24: aload_0
|
||||
25: getfield #52 // Field eatSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
28: invokespecial #82 // Method com/ogaba/sa_survival/item/common/ConsumableHerbBlockItem."<init>":(Lnet/minecraft/world/level/block/Block;Lnet/minecraft/world/item/Item$Properties;Ljava/util/List;ILnet/minecraft/sounds/SoundEvent;Lnet/minecraft/sounds/SoundEvent;)V
|
||||
31: areturn
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,211 @@
|
||||
Compiled from "ConsumableHerbBlockItem.java"
|
||||
public class com.ogaba.sa_survival.item.common.ConsumableHerbBlockItem extends net.minecraft.world.item.BlockItem implements com.ogaba.sa_survival.item.tooltip.EffectTooltipSource {
|
||||
private final java.util.List<net.minecraft.world.effect.MobEffectInstance> effects;
|
||||
|
||||
private final int duration;
|
||||
|
||||
private final net.minecraft.sounds.SoundEvent chewSound;
|
||||
|
||||
private final net.minecraft.sounds.SoundEvent finishSound;
|
||||
|
||||
public com.ogaba.sa_survival.item.common.ConsumableHerbBlockItem(net.minecraft.world.level.block.Block, net.minecraft.world.item.Item$Properties, java.util.List<net.minecraft.world.effect.MobEffectInstance>, int, net.minecraft.sounds.SoundEvent, net.minecraft.sounds.SoundEvent);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: aload_2
|
||||
3: invokespecial #29 // Method net/minecraft/world/item/BlockItem."<init>":(Lnet/minecraft/world/level/block/Block;Lnet/minecraft/world/item/Item$Properties;)V
|
||||
6: aload_0
|
||||
7: aload_3
|
||||
8: ifnonnull 17
|
||||
11: invokestatic #35 // Method java/util/Collections.emptyList:()Ljava/util/List;
|
||||
14: goto 21
|
||||
17: aload_3
|
||||
18: invokestatic #45 // InterfaceMethod java/util/List.copyOf:(Ljava/util/Collection;)Ljava/util/List;
|
||||
21: putfield #47 // Field effects:Ljava/util/List;
|
||||
24: aload_0
|
||||
25: iload 4
|
||||
27: putfield #49 // Field duration:I
|
||||
30: aload_0
|
||||
31: aload 5
|
||||
33: putfield #51 // Field chewSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
36: aload_0
|
||||
37: aload 6
|
||||
39: putfield #53 // Field finishSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
42: return
|
||||
|
||||
public boolean m_5812_(net.minecraft.world.item.ItemStack);
|
||||
Code:
|
||||
0: iconst_0
|
||||
1: ireturn
|
||||
|
||||
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 canApplyAtEnchantingTable(net.minecraft.world.item.ItemStack, net.minecraft.world.item.enchantment.Enchantment);
|
||||
Code:
|
||||
0: iconst_0
|
||||
1: ireturn
|
||||
|
||||
public java.util.List<net.minecraft.world.effect.MobEffectInstance> getTooltipEffects();
|
||||
Code:
|
||||
0: aload_0
|
||||
1: getfield #47 // Field effects:Ljava/util/List;
|
||||
4: areturn
|
||||
|
||||
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_0
|
||||
1: invokevirtual #79 // Method getTooltipEffects:()Ljava/util/List;
|
||||
4: aload_3
|
||||
5: fconst_1
|
||||
6: invokestatic #85 // Method com/ogaba/sa_survival/item/tooltip/EffectTooltipUtil.addEffectTooltip:(Ljava/util/List;Ljava/util/List;F)V
|
||||
9: aload_0
|
||||
10: aload_1
|
||||
11: aload_2
|
||||
12: aload_3
|
||||
13: aload 4
|
||||
15: invokespecial #87 // Method net/minecraft/world/item/BlockItem.m_7373_:(Lnet/minecraft/world/item/ItemStack;Lnet/minecraft/world/level/Level;Ljava/util/List;Lnet/minecraft/world/item/TooltipFlag;)V
|
||||
18: return
|
||||
|
||||
public net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> m_7203_(net.minecraft.world.level.Level, net.minecraft.world.entity.player.Player, net.minecraft.world.InteractionHand);
|
||||
Code:
|
||||
0: aload_2
|
||||
1: invokevirtual #102 // Method net/minecraft/world/entity/player/Player.m_6144_:()Z
|
||||
4: ifeq 15
|
||||
7: aload_0
|
||||
8: aload_1
|
||||
9: aload_2
|
||||
10: aload_3
|
||||
11: invokespecial #104 // Method net/minecraft/world/item/BlockItem.m_7203_:(Lnet/minecraft/world/level/Level;Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/world/InteractionHand;)Lnet/minecraft/world/InteractionResultHolder;
|
||||
14: areturn
|
||||
15: aload_2
|
||||
16: aload_3
|
||||
17: invokevirtual #108 // Method net/minecraft/world/entity/player/Player.m_6672_:(Lnet/minecraft/world/InteractionHand;)V
|
||||
20: aload_2
|
||||
21: aload_3
|
||||
22: invokevirtual #112 // Method net/minecraft/world/entity/player/Player.m_21120_:(Lnet/minecraft/world/InteractionHand;)Lnet/minecraft/world/item/ItemStack;
|
||||
25: invokestatic #118 // Method net/minecraft/world/InteractionResultHolder.m_19096_:(Ljava/lang/Object;)Lnet/minecraft/world/InteractionResultHolder;
|
||||
28: areturn
|
||||
|
||||
public void m_5929_(net.minecraft.world.level.Level, net.minecraft.world.entity.LivingEntity, net.minecraft.world.item.ItemStack, int);
|
||||
Code:
|
||||
0: aload_1
|
||||
1: getfield #130 // Field net/minecraft/world/level/Level.f_46443_:Z
|
||||
4: ifne 14
|
||||
7: aload_0
|
||||
8: getfield #51 // Field chewSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
11: ifnonnull 15
|
||||
14: return
|
||||
15: iload 4
|
||||
17: bipush 12
|
||||
19: irem
|
||||
20: ifeq 24
|
||||
23: return
|
||||
24: aload_1
|
||||
25: aconst_null
|
||||
26: aload_2
|
||||
27: invokevirtual #136 // Method net/minecraft/world/entity/LivingEntity.m_20185_:()D
|
||||
30: aload_2
|
||||
31: invokevirtual #139 // Method net/minecraft/world/entity/LivingEntity.m_20186_:()D
|
||||
34: aload_2
|
||||
35: invokevirtual #142 // Method net/minecraft/world/entity/LivingEntity.m_20189_:()D
|
||||
38: aload_0
|
||||
39: getfield #51 // Field chewSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
42: aload_2
|
||||
43: invokevirtual #146 // Method net/minecraft/world/entity/LivingEntity.m_5720_:()Lnet/minecraft/sounds/SoundSource;
|
||||
46: ldc #147 // float 0.4f
|
||||
48: ldc #148 // float 0.9f
|
||||
50: aload_1
|
||||
51: getfield #152 // Field net/minecraft/world/level/Level.f_46441_:Lnet/minecraft/util/RandomSource;
|
||||
54: invokeinterface #158, 1 // InterfaceMethod net/minecraft/util/RandomSource.m_188501_:()F
|
||||
59: ldc #159 // float 0.2f
|
||||
61: fmul
|
||||
62: fadd
|
||||
63: invokevirtual #163 // Method net/minecraft/world/level/Level.m_6263_:(Lnet/minecraft/world/entity/player/Player;DDDLnet/minecraft/sounds/SoundEvent;Lnet/minecraft/sounds/SoundSource;FF)V
|
||||
66: return
|
||||
|
||||
public net.minecraft.world.item.ItemStack m_5922_(net.minecraft.world.item.ItemStack, net.minecraft.world.level.Level, net.minecraft.world.entity.LivingEntity);
|
||||
Code:
|
||||
0: aload_2
|
||||
1: getfield #130 // Field net/minecraft/world/level/Level.f_46443_:Z
|
||||
4: ifne 92
|
||||
7: aload_0
|
||||
8: getfield #47 // Field effects:Ljava/util/List;
|
||||
11: invokeinterface #172, 1 // InterfaceMethod java/util/List.iterator:()Ljava/util/Iterator;
|
||||
16: astore 4
|
||||
18: aload 4
|
||||
20: invokeinterface #177, 1 // InterfaceMethod java/util/Iterator.hasNext:()Z
|
||||
25: ifeq 57
|
||||
28: aload 4
|
||||
30: invokeinterface #181, 1 // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
|
||||
35: checkcast #183 // class net/minecraft/world/effect/MobEffectInstance
|
||||
38: astore 5
|
||||
40: aload_3
|
||||
41: new #183 // class net/minecraft/world/effect/MobEffectInstance
|
||||
44: dup
|
||||
45: aload 5
|
||||
47: invokespecial #186 // Method net/minecraft/world/effect/MobEffectInstance."<init>":(Lnet/minecraft/world/effect/MobEffectInstance;)V
|
||||
50: invokevirtual #190 // Method net/minecraft/world/entity/LivingEntity.m_7292_:(Lnet/minecraft/world/effect/MobEffectInstance;)Z
|
||||
53: pop
|
||||
54: goto 18
|
||||
57: aload_0
|
||||
58: getfield #53 // Field finishSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
61: ifnull 92
|
||||
64: aload_2
|
||||
65: aconst_null
|
||||
66: aload_3
|
||||
67: invokevirtual #136 // Method net/minecraft/world/entity/LivingEntity.m_20185_:()D
|
||||
70: aload_3
|
||||
71: invokevirtual #139 // Method net/minecraft/world/entity/LivingEntity.m_20186_:()D
|
||||
74: aload_3
|
||||
75: invokevirtual #142 // Method net/minecraft/world/entity/LivingEntity.m_20189_:()D
|
||||
78: aload_0
|
||||
79: getfield #53 // Field finishSound:Lnet/minecraft/sounds/SoundEvent;
|
||||
82: aload_3
|
||||
83: invokevirtual #146 // Method net/minecraft/world/entity/LivingEntity.m_5720_:()Lnet/minecraft/sounds/SoundSource;
|
||||
86: ldc #191 // float 0.6f
|
||||
88: fconst_1
|
||||
89: invokevirtual #163 // Method net/minecraft/world/level/Level.m_6263_:(Lnet/minecraft/world/entity/player/Player;DDDLnet/minecraft/sounds/SoundEvent;Lnet/minecraft/sounds/SoundSource;FF)V
|
||||
92: aload_3
|
||||
93: instanceof #98 // class net/minecraft/world/entity/player/Player
|
||||
96: ifeq 121
|
||||
99: aload_3
|
||||
100: checkcast #98 // class net/minecraft/world/entity/player/Player
|
||||
103: astore 4
|
||||
105: aload 4
|
||||
107: invokevirtual #195 // Method net/minecraft/world/entity/player/Player.m_150110_:()Lnet/minecraft/world/entity/player/Abilities;
|
||||
110: getfield #200 // Field net/minecraft/world/entity/player/Abilities.f_35937_:Z
|
||||
113: ifne 121
|
||||
116: aload_1
|
||||
117: iconst_1
|
||||
118: invokevirtual #206 // Method net/minecraft/world/item/ItemStack.m_41774_:(I)V
|
||||
121: aload_1
|
||||
122: areturn
|
||||
|
||||
public net.minecraft.world.item.UseAnim m_6164_(net.minecraft.world.item.ItemStack);
|
||||
Code:
|
||||
0: getstatic #216 // Field net/minecraft/world/item/UseAnim.EAT:Lnet/minecraft/world/item/UseAnim;
|
||||
3: areturn
|
||||
|
||||
public int m_8105_(net.minecraft.world.item.ItemStack);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: getfield #49 // Field duration:I
|
||||
4: ireturn
|
||||
|
||||
public static com.ogaba.sa_survival.item.common.ConsumableHerbBlockItem$Builder builder(net.minecraft.world.level.block.Block, net.minecraft.world.item.Item$Properties);
|
||||
Code:
|
||||
0: new #9 // class com/ogaba/sa_survival/item/common/ConsumableHerbBlockItem$Builder
|
||||
3: dup
|
||||
4: aload_0
|
||||
5: aload_1
|
||||
6: invokespecial #221 // Method com/ogaba/sa_survival/item/common/ConsumableHerbBlockItem$Builder."<init>":(Lnet/minecraft/world/level/block/Block;Lnet/minecraft/world/item/Item$Properties;)V
|
||||
9: areturn
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,95 @@
|
||||
Compiled from "HerbBlock.java"
|
||||
public class com.ogaba.sa_survival.block.custom.HerbBlock extends net.minecraft.world.level.block.HorizontalDirectionalBlock {
|
||||
public static final net.minecraft.world.level.block.state.properties.DirectionProperty FACING;
|
||||
|
||||
private static final net.minecraft.world.phys.shapes.VoxelShape NORTH_SHAPE;
|
||||
|
||||
public com.ogaba.sa_survival.block.custom.HerbBlock(net.minecraft.world.level.block.state.BlockBehaviour$Properties);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: invokespecial #28 // Method net/minecraft/world/level/block/HorizontalDirectionalBlock."<init>":(Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;)V
|
||||
5: aload_0
|
||||
6: aload_0
|
||||
7: getfield #32 // Field f_49792_:Lnet/minecraft/world/level/block/state/StateDefinition;
|
||||
10: invokevirtual #36 // Method net/minecraft/world/level/block/state/StateDefinition.m_61090_:()Lnet/minecraft/world/level/block/state/StateHolder;
|
||||
13: checkcast #38 // class net/minecraft/world/level/block/state/BlockState
|
||||
16: getstatic #40 // Field FACING:Lnet/minecraft/world/level/block/state/properties/DirectionProperty;
|
||||
19: getstatic #46 // Field net/minecraft/core/Direction.NORTH:Lnet/minecraft/core/Direction;
|
||||
22: invokevirtual #50 // Method net/minecraft/world/level/block/state/BlockState.m_61124_:(Lnet/minecraft/world/level/block/state/properties/Property;Ljava/lang/Comparable;)Ljava/lang/Object;
|
||||
25: checkcast #38 // class net/minecraft/world/level/block/state/BlockState
|
||||
28: invokevirtual #54 // Method m_49959_:(Lnet/minecraft/world/level/block/state/BlockState;)V
|
||||
31: return
|
||||
|
||||
public net.minecraft.world.level.block.state.BlockState m_5573_(net.minecraft.world.item.context.BlockPlaceContext);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: invokevirtual #64 // Method m_49966_:()Lnet/minecraft/world/level/block/state/BlockState;
|
||||
4: getstatic #40 // Field FACING:Lnet/minecraft/world/level/block/state/properties/DirectionProperty;
|
||||
7: aload_1
|
||||
8: invokevirtual #70 // Method net/minecraft/world/item/context/BlockPlaceContext.m_8125_:()Lnet/minecraft/core/Direction;
|
||||
11: invokevirtual #73 // Method net/minecraft/core/Direction.m_122424_:()Lnet/minecraft/core/Direction;
|
||||
14: invokevirtual #50 // Method net/minecraft/world/level/block/state/BlockState.m_61124_:(Lnet/minecraft/world/level/block/state/properties/Property;Ljava/lang/Comparable;)Ljava/lang/Object;
|
||||
17: checkcast #38 // class net/minecraft/world/level/block/state/BlockState
|
||||
20: 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_1
|
||||
2: anewarray #80 // class net/minecraft/world/level/block/state/properties/Property
|
||||
5: dup
|
||||
6: iconst_0
|
||||
7: getstatic #40 // Field FACING:Lnet/minecraft/world/level/block/state/properties/DirectionProperty;
|
||||
10: aastore
|
||||
11: invokevirtual #84 // 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;
|
||||
14: pop
|
||||
15: return
|
||||
|
||||
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 #91 // Field NORTH_SHAPE:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
||||
3: areturn
|
||||
|
||||
private static net.minecraft.world.phys.shapes.VoxelShape lambda$static$0(net.minecraft.world.phys.shapes.VoxelShape, net.minecraft.world.phys.shapes.VoxelShape);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: getstatic #106 // Field net/minecraft/world/phys/shapes/BooleanOp.f_82695_:Lnet/minecraft/world/phys/shapes/BooleanOp;
|
||||
5: invokestatic #112 // Method net/minecraft/world/phys/shapes/Shapes.m_83113_:(Lnet/minecraft/world/phys/shapes/VoxelShape;Lnet/minecraft/world/phys/shapes/VoxelShape;Lnet/minecraft/world/phys/shapes/BooleanOp;)Lnet/minecraft/world/phys/shapes/VoxelShape;
|
||||
8: areturn
|
||||
|
||||
static {};
|
||||
Code:
|
||||
0: getstatic #121 // Field net/minecraft/world/level/block/state/properties/BlockStateProperties.f_61374_:Lnet/minecraft/world/level/block/state/properties/DirectionProperty;
|
||||
3: putstatic #40 // Field FACING:Lnet/minecraft/world/level/block/state/properties/DirectionProperty;
|
||||
6: iconst_2
|
||||
7: anewarray #123 // class net/minecraft/world/phys/shapes/VoxelShape
|
||||
10: dup
|
||||
11: iconst_0
|
||||
12: ldc2_w #124 // double 5.0d
|
||||
15: dconst_0
|
||||
16: ldc2_w #124 // double 5.0d
|
||||
19: ldc2_w #126 // double 11.0d
|
||||
22: ldc2_w #124 // double 5.0d
|
||||
25: ldc2_w #126 // double 11.0d
|
||||
28: invokestatic #133 // Method net/minecraft/world/level/block/Block.m_49796_:(DDDDDD)Lnet/minecraft/world/phys/shapes/VoxelShape;
|
||||
31: aastore
|
||||
32: dup
|
||||
33: iconst_1
|
||||
34: ldc2_w #134 // double 4.0d
|
||||
37: ldc2_w #124 // double 5.0d
|
||||
40: ldc2_w #134 // double 4.0d
|
||||
43: ldc2_w #136 // double 12.0d
|
||||
46: ldc2_w #138 // double 7.0d
|
||||
49: ldc2_w #136 // double 12.0d
|
||||
52: invokestatic #133 // Method net/minecraft/world/level/block/Block.m_49796_:(DDDDDD)Lnet/minecraft/world/phys/shapes/VoxelShape;
|
||||
55: aastore
|
||||
56: invokestatic #145 // InterfaceMethod java/util/stream/Stream.of:([Ljava/lang/Object;)Ljava/util/stream/Stream;
|
||||
59: invokedynamic #162, 0 // InvokeDynamic #0:apply:()Ljava/util/function/BinaryOperator;
|
||||
64: invokeinterface #166, 2 // InterfaceMethod java/util/stream/Stream.reduce:(Ljava/util/function/BinaryOperator;)Ljava/util/Optional;
|
||||
69: invokevirtual #172 // Method java/util/Optional.get:()Ljava/lang/Object;
|
||||
72: checkcast #123 // class net/minecraft/world/phys/shapes/VoxelShape
|
||||
75: putstatic #91 // Field NORTH_SHAPE:Lnet/minecraft/world/phys/shapes/VoxelShape;
|
||||
78: return
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,122 @@
|
||||
Compiled from "HostileHerbLootModifier.java"
|
||||
public class com.ogaba.sa_survival.loot.HostileHerbLootModifier extends net.minecraftforge.common.loot.LootModifier {
|
||||
public static final com.mojang.serialization.Codec<com.ogaba.sa_survival.loot.HostileHerbLootModifier> CODEC;
|
||||
|
||||
public com.ogaba.sa_survival.loot.HostileHerbLootModifier(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[]);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: aload_1
|
||||
2: invokespecial #35 // Method net/minecraftforge/common/loot/LootModifier."<init>":([Lnet/minecraft/world/level/storage/loot/predicates/LootItemCondition;)V
|
||||
5: return
|
||||
|
||||
protected it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.world.item.ItemStack> doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.world.item.ItemStack>, net.minecraft.world.level.storage.loot.LootContext);
|
||||
Code:
|
||||
0: getstatic #48 // Field com/ogaba/sa_combat/config/MerchantCurrencyConfig.ENABLE_HOSTILE_HERB_DROPS:Lnet/minecraftforge/common/ForgeConfigSpec$BooleanValue;
|
||||
3: invokevirtual #52 // Method net/minecraftforge/common/ForgeConfigSpec$BooleanValue.get:()Ljava/lang/Object;
|
||||
6: checkcast #54 // class java/lang/Boolean
|
||||
9: invokevirtual #58 // Method java/lang/Boolean.booleanValue:()Z
|
||||
12: ifne 17
|
||||
15: aload_1
|
||||
16: areturn
|
||||
17: aload_2
|
||||
18: getstatic #64 // Field net/minecraft/world/level/storage/loot/parameters/LootContextParams.f_81455_:Lnet/minecraft/world/level/storage/loot/parameters/LootContextParam;
|
||||
21: invokevirtual #70 // Method net/minecraft/world/level/storage/loot/LootContext.m_78953_:(Lnet/minecraft/world/level/storage/loot/parameters/LootContextParam;)Ljava/lang/Object;
|
||||
24: checkcast #72 // class net/minecraft/world/entity/Entity
|
||||
27: astore_3
|
||||
28: aload_3
|
||||
29: instanceof #74 // class net/minecraft/world/entity/monster/Enemy
|
||||
32: ifne 37
|
||||
35: aload_1
|
||||
36: areturn
|
||||
37: getstatic #78 // Field com/ogaba/sa_combat/config/MerchantCurrencyConfig.HOSTILE_HERB_DROP_CHANCE:Lnet/minecraftforge/common/ForgeConfigSpec$DoubleValue;
|
||||
40: invokevirtual #79 // Method net/minecraftforge/common/ForgeConfigSpec$DoubleValue.get:()Ljava/lang/Object;
|
||||
43: checkcast #81 // class java/lang/Double
|
||||
46: invokevirtual #85 // Method java/lang/Double.doubleValue:()D
|
||||
49: dstore 4
|
||||
51: aload_2
|
||||
52: invokevirtual #89 // Method net/minecraft/world/level/storage/loot/LootContext.m_230907_:()Lnet/minecraft/util/RandomSource;
|
||||
55: invokeinterface #94, 1 // InterfaceMethod net/minecraft/util/RandomSource.m_188500_:()D
|
||||
60: dload 4
|
||||
62: dcmpl
|
||||
63: ifle 68
|
||||
66: aload_1
|
||||
67: areturn
|
||||
68: aload_2
|
||||
69: invokevirtual #89 // Method net/minecraft/world/level/storage/loot/LootContext.m_230907_:()Lnet/minecraft/util/RandomSource;
|
||||
72: invokeinterface #98, 1 // InterfaceMethod net/minecraft/util/RandomSource.m_188501_:()F
|
||||
77: fstore 6
|
||||
79: fload 6
|
||||
81: ldc #99 // float 0.55f
|
||||
83: fcmpg
|
||||
84: ifge 111
|
||||
87: aload_1
|
||||
88: new #101 // class net/minecraft/world/item/ItemStack
|
||||
91: dup
|
||||
92: getstatic #107 // Field com/ogaba/sa_survival/registry/SASurvivalItems.GREEN_HERB:Lnet/minecraftforge/registries/RegistryObject;
|
||||
95: invokevirtual #110 // Method net/minecraftforge/registries/RegistryObject.get:()Ljava/lang/Object;
|
||||
98: checkcast #112 // class net/minecraft/world/level/ItemLike
|
||||
101: invokespecial #115 // Method net/minecraft/world/item/ItemStack."<init>":(Lnet/minecraft/world/level/ItemLike;)V
|
||||
104: invokevirtual #121 // Method it/unimi/dsi/fastutil/objects/ObjectArrayList.add:(Ljava/lang/Object;)Z
|
||||
107: pop
|
||||
108: goto 196
|
||||
111: fload 6
|
||||
113: ldc #122 // float 0.8f
|
||||
115: fcmpg
|
||||
116: ifge 143
|
||||
119: aload_1
|
||||
120: new #101 // class net/minecraft/world/item/ItemStack
|
||||
123: dup
|
||||
124: getstatic #125 // Field com/ogaba/sa_survival/registry/SASurvivalItems.BLUE_HERB:Lnet/minecraftforge/registries/RegistryObject;
|
||||
127: invokevirtual #110 // Method net/minecraftforge/registries/RegistryObject.get:()Ljava/lang/Object;
|
||||
130: checkcast #112 // class net/minecraft/world/level/ItemLike
|
||||
133: invokespecial #115 // Method net/minecraft/world/item/ItemStack."<init>":(Lnet/minecraft/world/level/ItemLike;)V
|
||||
136: invokevirtual #121 // Method it/unimi/dsi/fastutil/objects/ObjectArrayList.add:(Ljava/lang/Object;)Z
|
||||
139: pop
|
||||
140: goto 196
|
||||
143: fload 6
|
||||
145: ldc #126 // float 0.95f
|
||||
147: fcmpg
|
||||
148: ifge 175
|
||||
151: aload_1
|
||||
152: new #101 // class net/minecraft/world/item/ItemStack
|
||||
155: dup
|
||||
156: getstatic #129 // Field com/ogaba/sa_survival/registry/SASurvivalItems.YELLOW_HERB:Lnet/minecraftforge/registries/RegistryObject;
|
||||
159: invokevirtual #110 // Method net/minecraftforge/registries/RegistryObject.get:()Ljava/lang/Object;
|
||||
162: checkcast #112 // class net/minecraft/world/level/ItemLike
|
||||
165: invokespecial #115 // Method net/minecraft/world/item/ItemStack."<init>":(Lnet/minecraft/world/level/ItemLike;)V
|
||||
168: invokevirtual #121 // Method it/unimi/dsi/fastutil/objects/ObjectArrayList.add:(Ljava/lang/Object;)Z
|
||||
171: pop
|
||||
172: goto 196
|
||||
175: aload_1
|
||||
176: new #101 // class net/minecraft/world/item/ItemStack
|
||||
179: dup
|
||||
180: getstatic #132 // Field com/ogaba/sa_survival/registry/SASurvivalItems.RED_HERB:Lnet/minecraftforge/registries/RegistryObject;
|
||||
183: invokevirtual #110 // Method net/minecraftforge/registries/RegistryObject.get:()Ljava/lang/Object;
|
||||
186: checkcast #112 // class net/minecraft/world/level/ItemLike
|
||||
189: invokespecial #115 // Method net/minecraft/world/item/ItemStack."<init>":(Lnet/minecraft/world/level/ItemLike;)V
|
||||
192: invokevirtual #121 // Method it/unimi/dsi/fastutil/objects/ObjectArrayList.add:(Ljava/lang/Object;)Z
|
||||
195: pop
|
||||
196: aload_1
|
||||
197: areturn
|
||||
|
||||
public com.mojang.serialization.Codec<? extends net.minecraftforge.common.loot.IGlobalLootModifier> codec();
|
||||
Code:
|
||||
0: getstatic #148 // Field CODEC:Lcom/mojang/serialization/Codec;
|
||||
3: areturn
|
||||
|
||||
private static com.mojang.datafixers.kinds.App lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance);
|
||||
Code:
|
||||
0: aload_0
|
||||
1: invokestatic #154 // Method codecStart:(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
|
||||
4: aload_0
|
||||
5: invokedynamic #171, 0 // InvokeDynamic #0:apply:()Ljava/util/function/Function;
|
||||
10: invokevirtual #174 // Method com/mojang/datafixers/Products$P1.apply:(Lcom/mojang/datafixers/kinds/Applicative;Ljava/util/function/Function;)Lcom/mojang/datafixers/kinds/App;
|
||||
13: areturn
|
||||
|
||||
static {};
|
||||
Code:
|
||||
0: invokedynamic #183, 0 // InvokeDynamic #1:apply:()Ljava/util/function/Function;
|
||||
5: invokestatic #187 // Method com/mojang/serialization/codecs/RecordCodecBuilder.create:(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
|
||||
8: putstatic #148 // Field CODEC:Lcom/mojang/serialization/Codec;
|
||||
11: return
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,113 @@
|
||||
Compiled from "SASurvivalBlocks.java"
|
||||
public class com.ogaba.sa_survival.registry.SASurvivalBlocks {
|
||||
public static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.level.block.Block> BLOCKS;
|
||||
|
||||
public static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> GREEN_HERB;
|
||||
|
||||
public static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> RED_HERB;
|
||||
|
||||
public static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> BLUE_HERB;
|
||||
|
||||
public static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> YELLOW_HERB;
|
||||
|
||||
public com.ogaba.sa_survival.registry.SASurvivalBlocks();
|
||||
Code:
|
||||
0: aload_0
|
||||
1: invokespecial #28 // Method java/lang/Object."<init>":()V
|
||||
4: return
|
||||
|
||||
public static void register(net.minecraftforge.eventbus.api.IEventBus);
|
||||
Code:
|
||||
0: getstatic #34 // Field BLOCKS:Lnet/minecraftforge/registries/DeferredRegister;
|
||||
3: aload_0
|
||||
4: invokevirtual #38 // Method net/minecraftforge/registries/DeferredRegister.register:(Lnet/minecraftforge/eventbus/api/IEventBus;)V
|
||||
7: return
|
||||
|
||||
private static net.minecraft.world.level.block.Block lambda$static$3();
|
||||
Code:
|
||||
0: new #44 // class com/ogaba/sa_survival/block/custom/HerbBlock
|
||||
3: dup
|
||||
4: invokestatic #48 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_284310_:()Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
7: getstatic #54 // Field net/minecraft/world/level/material/MapColor.f_283915_:Lnet/minecraft/world/level/material/MapColor;
|
||||
10: invokevirtual #58 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_284180_:(Lnet/minecraft/world/level/material/MapColor;)Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
13: ldc #59 // float 0.1f
|
||||
15: invokevirtual #63 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_60978_:(F)Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
18: getstatic #69 // Field net/minecraft/world/level/block/SoundType.f_154666_:Lnet/minecraft/world/level/block/SoundType;
|
||||
21: invokevirtual #73 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_60918_:(Lnet/minecraft/world/level/block/SoundType;)Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
24: invokevirtual #76 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_60955_:()Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
27: invokespecial #79 // Method com/ogaba/sa_survival/block/custom/HerbBlock."<init>":(Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;)V
|
||||
30: areturn
|
||||
|
||||
private static net.minecraft.world.level.block.Block lambda$static$2();
|
||||
Code:
|
||||
0: new #44 // class com/ogaba/sa_survival/block/custom/HerbBlock
|
||||
3: dup
|
||||
4: invokestatic #48 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_284310_:()Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
7: getstatic #54 // Field net/minecraft/world/level/material/MapColor.f_283915_:Lnet/minecraft/world/level/material/MapColor;
|
||||
10: invokevirtual #58 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_284180_:(Lnet/minecraft/world/level/material/MapColor;)Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
13: ldc #59 // float 0.1f
|
||||
15: invokevirtual #63 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_60978_:(F)Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
18: getstatic #69 // Field net/minecraft/world/level/block/SoundType.f_154666_:Lnet/minecraft/world/level/block/SoundType;
|
||||
21: invokevirtual #73 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_60918_:(Lnet/minecraft/world/level/block/SoundType;)Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
24: invokevirtual #76 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_60955_:()Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
27: invokespecial #79 // Method com/ogaba/sa_survival/block/custom/HerbBlock."<init>":(Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;)V
|
||||
30: areturn
|
||||
|
||||
private static net.minecraft.world.level.block.Block lambda$static$1();
|
||||
Code:
|
||||
0: new #44 // class com/ogaba/sa_survival/block/custom/HerbBlock
|
||||
3: dup
|
||||
4: invokestatic #48 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_284310_:()Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
7: getstatic #54 // Field net/minecraft/world/level/material/MapColor.f_283915_:Lnet/minecraft/world/level/material/MapColor;
|
||||
10: invokevirtual #58 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_284180_:(Lnet/minecraft/world/level/material/MapColor;)Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
13: ldc #59 // float 0.1f
|
||||
15: invokevirtual #63 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_60978_:(F)Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
18: getstatic #69 // Field net/minecraft/world/level/block/SoundType.f_154666_:Lnet/minecraft/world/level/block/SoundType;
|
||||
21: invokevirtual #73 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_60918_:(Lnet/minecraft/world/level/block/SoundType;)Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
24: invokevirtual #76 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_60955_:()Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
27: invokespecial #79 // Method com/ogaba/sa_survival/block/custom/HerbBlock."<init>":(Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;)V
|
||||
30: areturn
|
||||
|
||||
private static net.minecraft.world.level.block.Block lambda$static$0();
|
||||
Code:
|
||||
0: new #44 // class com/ogaba/sa_survival/block/custom/HerbBlock
|
||||
3: dup
|
||||
4: invokestatic #48 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_284310_:()Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
7: getstatic #54 // Field net/minecraft/world/level/material/MapColor.f_283915_:Lnet/minecraft/world/level/material/MapColor;
|
||||
10: invokevirtual #58 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_284180_:(Lnet/minecraft/world/level/material/MapColor;)Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
13: ldc #59 // float 0.1f
|
||||
15: invokevirtual #63 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_60978_:(F)Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
18: getstatic #69 // Field net/minecraft/world/level/block/SoundType.f_154666_:Lnet/minecraft/world/level/block/SoundType;
|
||||
21: invokevirtual #73 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_60918_:(Lnet/minecraft/world/level/block/SoundType;)Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
24: invokevirtual #76 // Method net/minecraft/world/level/block/state/BlockBehaviour$Properties.m_60955_:()Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;
|
||||
27: invokespecial #79 // Method com/ogaba/sa_survival/block/custom/HerbBlock."<init>":(Lnet/minecraft/world/level/block/state/BlockBehaviour$Properties;)V
|
||||
30: areturn
|
||||
|
||||
static {};
|
||||
Code:
|
||||
0: getstatic #88 // Field net/minecraftforge/registries/ForgeRegistries.BLOCKS:Lnet/minecraftforge/registries/IForgeRegistry;
|
||||
3: ldc #90 // String sa_combat
|
||||
5: invokestatic #94 // Method net/minecraftforge/registries/DeferredRegister.create:(Lnet/minecraftforge/registries/IForgeRegistry;Ljava/lang/String;)Lnet/minecraftforge/registries/DeferredRegister;
|
||||
8: putstatic #34 // Field BLOCKS:Lnet/minecraftforge/registries/DeferredRegister;
|
||||
11: getstatic #34 // Field BLOCKS:Lnet/minecraftforge/registries/DeferredRegister;
|
||||
14: ldc #96 // String green_herb
|
||||
16: invokedynamic #113, 0 // InvokeDynamic #0:get:()Ljava/util/function/Supplier;
|
||||
21: invokevirtual #116 // Method net/minecraftforge/registries/DeferredRegister.register:(Ljava/lang/String;Ljava/util/function/Supplier;)Lnet/minecraftforge/registries/RegistryObject;
|
||||
24: putstatic #118 // Field GREEN_HERB:Lnet/minecraftforge/registries/RegistryObject;
|
||||
27: getstatic #34 // Field BLOCKS:Lnet/minecraftforge/registries/DeferredRegister;
|
||||
30: ldc #120 // String red_herb
|
||||
32: invokedynamic #124, 0 // InvokeDynamic #1:get:()Ljava/util/function/Supplier;
|
||||
37: invokevirtual #116 // Method net/minecraftforge/registries/DeferredRegister.register:(Ljava/lang/String;Ljava/util/function/Supplier;)Lnet/minecraftforge/registries/RegistryObject;
|
||||
40: putstatic #126 // Field RED_HERB:Lnet/minecraftforge/registries/RegistryObject;
|
||||
43: getstatic #34 // Field BLOCKS:Lnet/minecraftforge/registries/DeferredRegister;
|
||||
46: ldc #128 // String blue_herb
|
||||
48: invokedynamic #132, 0 // InvokeDynamic #2:get:()Ljava/util/function/Supplier;
|
||||
53: invokevirtual #116 // Method net/minecraftforge/registries/DeferredRegister.register:(Ljava/lang/String;Ljava/util/function/Supplier;)Lnet/minecraftforge/registries/RegistryObject;
|
||||
56: putstatic #134 // Field BLUE_HERB:Lnet/minecraftforge/registries/RegistryObject;
|
||||
59: getstatic #34 // Field BLOCKS:Lnet/minecraftforge/registries/DeferredRegister;
|
||||
62: ldc #136 // String yellow_herb
|
||||
64: invokedynamic #140, 0 // InvokeDynamic #3:get:()Ljava/util/function/Supplier;
|
||||
69: invokevirtual #116 // Method net/minecraftforge/registries/DeferredRegister.register:(Ljava/lang/String;Ljava/util/function/Supplier;)Lnet/minecraftforge/registries/RegistryObject;
|
||||
72: putstatic #142 // Field YELLOW_HERB:Lnet/minecraftforge/registries/RegistryObject;
|
||||
75: return
|
||||
}
|
||||
Binary file not shown.
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user