Elka, Glimmer, Deer Toned down alpha mantis spawns Increased uranium and titanium spawn by 25% Overhauled red ant nest and pale nyxite texture Fixed Ant Nests not spawning on Fabric Fixed armor trims not working on antarchy armors Fixed antarchy materials not working as armor trims Adding missing hanging sign gui texture files HFCS Root beer Elythia frog Roseate and Lumen froglight
433 lines
55 KiB
Plaintext
433 lines
55 KiB
Plaintext
Compiled from "ShootTongue.java"
|
|
public class net.minecraft.world.entity.animal.frog.ShootTongue extends net.minecraft.world.entity.ai.behavior.Behavior<net.minecraft.world.entity.animal.frog.Frog> {
|
|
public static final int TIME_OUT_DURATION;
|
|
|
|
public static final int CATCH_ANIMATION_DURATION;
|
|
|
|
public static final int TONGUE_ANIMATION_DURATION;
|
|
|
|
private static final float EATING_DISTANCE;
|
|
|
|
private static final float EATING_MOVEMENT_FACTOR;
|
|
|
|
public static final int UNREACHABLE_TONGUE_TARGETS_COOLDOWN_DURATION;
|
|
|
|
public static final int MAX_UNREACHBLE_TONGUE_TARGETS_IN_MEMORY;
|
|
|
|
private int eatAnimationTimer;
|
|
|
|
private int calculatePathCounter;
|
|
|
|
private final net.minecraft.sounds.SoundEvent tongueSound;
|
|
|
|
private final net.minecraft.sounds.SoundEvent eatSound;
|
|
|
|
private net.minecraft.world.phys.Vec3 itemSpawnPos;
|
|
|
|
private net.minecraft.world.entity.animal.frog.ShootTongue$State state;
|
|
|
|
public net.minecraft.world.entity.animal.frog.ShootTongue(net.minecraft.sounds.SoundEvent, net.minecraft.sounds.SoundEvent);
|
|
Code:
|
|
0: aload_0
|
|
1: getstatic #51 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.WALK_TARGET:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
4: getstatic #57 // Field net/minecraft/world/entity/ai/memory/MemoryStatus.VALUE_ABSENT:Lnet/minecraft/world/entity/ai/memory/MemoryStatus;
|
|
7: getstatic #60 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.LOOK_TARGET:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
10: getstatic #63 // Field net/minecraft/world/entity/ai/memory/MemoryStatus.REGISTERED:Lnet/minecraft/world/entity/ai/memory/MemoryStatus;
|
|
13: getstatic #66 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.ATTACK_TARGET:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
16: getstatic #69 // Field net/minecraft/world/entity/ai/memory/MemoryStatus.VALUE_PRESENT:Lnet/minecraft/world/entity/ai/memory/MemoryStatus;
|
|
19: getstatic #72 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.IS_PANICKING:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
22: getstatic #57 // Field net/minecraft/world/entity/ai/memory/MemoryStatus.VALUE_ABSENT:Lnet/minecraft/world/entity/ai/memory/MemoryStatus;
|
|
25: invokestatic #78 // Method com/google/common/collect/ImmutableMap.of:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;
|
|
28: bipush 100
|
|
30: invokespecial #81 // Method net/minecraft/world/entity/ai/behavior/Behavior."<init>":(Ljava/util/Map;I)V
|
|
33: aload_0
|
|
34: getstatic #84 // Field net/minecraft/world/entity/animal/frog/ShootTongue$State.DONE:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
37: putfield #86 // Field state:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
40: aload_0
|
|
41: aload_1
|
|
42: putfield #88 // Field tongueSound:Lnet/minecraft/sounds/SoundEvent;
|
|
45: aload_0
|
|
46: aload_2
|
|
47: putfield #90 // Field eatSound:Lnet/minecraft/sounds/SoundEvent;
|
|
50: return
|
|
|
|
protected boolean checkExtraStartConditions(net.minecraft.server.level.ServerLevel, net.minecraft.world.entity.animal.frog.Frog);
|
|
Code:
|
|
0: aload_2
|
|
1: invokevirtual #102 // Method net/minecraft/world/entity/animal/frog/Frog.getBrain:()Lnet/minecraft/world/entity/ai/Brain;
|
|
4: getstatic #66 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.ATTACK_TARGET:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
7: invokevirtual #108 // Method net/minecraft/world/entity/ai/Brain.getMemory:(Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;)Ljava/util/Optional;
|
|
10: invokevirtual #114 // Method java/util/Optional.get:()Ljava/lang/Object;
|
|
13: checkcast #116 // class net/minecraft/world/entity/LivingEntity
|
|
16: astore_3
|
|
17: aload_0
|
|
18: aload_2
|
|
19: aload_3
|
|
20: invokevirtual #120 // Method canPathfindToTarget:(Lnet/minecraft/world/entity/animal/frog/Frog;Lnet/minecraft/world/entity/LivingEntity;)Z
|
|
23: istore 4
|
|
25: iload 4
|
|
27: ifne 46
|
|
30: aload_2
|
|
31: invokevirtual #102 // Method net/minecraft/world/entity/animal/frog/Frog.getBrain:()Lnet/minecraft/world/entity/ai/Brain;
|
|
34: getstatic #66 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.ATTACK_TARGET:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
37: invokevirtual #124 // Method net/minecraft/world/entity/ai/Brain.eraseMemory:(Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;)V
|
|
40: aload_0
|
|
41: aload_2
|
|
42: aload_3
|
|
43: invokevirtual #128 // Method addUnreachableTargetToMemory:(Lnet/minecraft/world/entity/animal/frog/Frog;Lnet/minecraft/world/entity/LivingEntity;)V
|
|
46: iload 4
|
|
48: ifeq 72
|
|
51: aload_2
|
|
52: invokevirtual #132 // Method net/minecraft/world/entity/animal/frog/Frog.getPose:()Lnet/minecraft/world/entity/Pose;
|
|
55: getstatic #138 // Field net/minecraft/world/entity/Pose.CROAKING:Lnet/minecraft/world/entity/Pose;
|
|
58: if_acmpeq 72
|
|
61: aload_3
|
|
62: invokestatic #142 // Method net/minecraft/world/entity/animal/frog/Frog.canEat:(Lnet/minecraft/world/entity/LivingEntity;)Z
|
|
65: ifeq 72
|
|
68: iconst_1
|
|
69: goto 73
|
|
72: iconst_0
|
|
73: ireturn
|
|
|
|
protected boolean canStillUse(net.minecraft.server.level.ServerLevel, net.minecraft.world.entity.animal.frog.Frog, long);
|
|
Code:
|
|
0: aload_2
|
|
1: invokevirtual #102 // Method net/minecraft/world/entity/animal/frog/Frog.getBrain:()Lnet/minecraft/world/entity/ai/Brain;
|
|
4: getstatic #66 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.ATTACK_TARGET:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
7: invokevirtual #156 // Method net/minecraft/world/entity/ai/Brain.hasMemoryValue:(Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;)Z
|
|
10: ifeq 40
|
|
13: aload_0
|
|
14: getfield #86 // Field state:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
17: getstatic #84 // Field net/minecraft/world/entity/animal/frog/ShootTongue$State.DONE:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
20: if_acmpeq 40
|
|
23: aload_2
|
|
24: invokevirtual #102 // Method net/minecraft/world/entity/animal/frog/Frog.getBrain:()Lnet/minecraft/world/entity/ai/Brain;
|
|
27: getstatic #72 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.IS_PANICKING:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
30: invokevirtual #156 // Method net/minecraft/world/entity/ai/Brain.hasMemoryValue:(Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;)Z
|
|
33: ifne 40
|
|
36: iconst_1
|
|
37: goto 41
|
|
40: iconst_0
|
|
41: ireturn
|
|
|
|
protected void start(net.minecraft.server.level.ServerLevel, net.minecraft.world.entity.animal.frog.Frog, long);
|
|
Code:
|
|
0: aload_2
|
|
1: invokevirtual #102 // Method net/minecraft/world/entity/animal/frog/Frog.getBrain:()Lnet/minecraft/world/entity/ai/Brain;
|
|
4: getstatic #66 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.ATTACK_TARGET:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
7: invokevirtual #108 // Method net/minecraft/world/entity/ai/Brain.getMemory:(Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;)Ljava/util/Optional;
|
|
10: invokevirtual #114 // Method java/util/Optional.get:()Ljava/lang/Object;
|
|
13: checkcast #116 // class net/minecraft/world/entity/LivingEntity
|
|
16: astore 5
|
|
18: aload_2
|
|
19: aload 5
|
|
21: invokestatic #168 // Method net/minecraft/world/entity/ai/behavior/BehaviorUtils.lookAtEntity:(Lnet/minecraft/world/entity/LivingEntity;Lnet/minecraft/world/entity/LivingEntity;)V
|
|
24: aload_2
|
|
25: aload 5
|
|
27: invokevirtual #172 // Method net/minecraft/world/entity/animal/frog/Frog.setTongueTarget:(Lnet/minecraft/world/entity/Entity;)V
|
|
30: aload_2
|
|
31: invokevirtual #102 // Method net/minecraft/world/entity/animal/frog/Frog.getBrain:()Lnet/minecraft/world/entity/ai/Brain;
|
|
34: getstatic #51 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.WALK_TARGET:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
37: new #174 // class net/minecraft/world/entity/ai/memory/WalkTarget
|
|
40: dup
|
|
41: aload 5
|
|
43: invokevirtual #178 // Method net/minecraft/world/entity/LivingEntity.position:()Lnet/minecraft/world/phys/Vec3;
|
|
46: fconst_2
|
|
47: iconst_0
|
|
48: invokespecial #181 // Method net/minecraft/world/entity/ai/memory/WalkTarget."<init>":(Lnet/minecraft/world/phys/Vec3;FI)V
|
|
51: invokevirtual #185 // Method net/minecraft/world/entity/ai/Brain.setMemory:(Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;Ljava/lang/Object;)V
|
|
54: aload_0
|
|
55: bipush 10
|
|
57: putfield #187 // Field calculatePathCounter:I
|
|
60: aload_0
|
|
61: getstatic #190 // Field net/minecraft/world/entity/animal/frog/ShootTongue$State.MOVE_TO_TARGET:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
64: putfield #86 // Field state:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
67: return
|
|
|
|
protected void stop(net.minecraft.server.level.ServerLevel, net.minecraft.world.entity.animal.frog.Frog, long);
|
|
Code:
|
|
0: aload_2
|
|
1: invokevirtual #102 // Method net/minecraft/world/entity/animal/frog/Frog.getBrain:()Lnet/minecraft/world/entity/ai/Brain;
|
|
4: getstatic #66 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.ATTACK_TARGET:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
7: invokevirtual #124 // Method net/minecraft/world/entity/ai/Brain.eraseMemory:(Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;)V
|
|
10: aload_2
|
|
11: invokevirtual #198 // Method net/minecraft/world/entity/animal/frog/Frog.eraseTongueTarget:()V
|
|
14: aload_2
|
|
15: getstatic #201 // Field net/minecraft/world/entity/Pose.STANDING:Lnet/minecraft/world/entity/Pose;
|
|
18: invokevirtual #205 // Method net/minecraft/world/entity/animal/frog/Frog.setPose:(Lnet/minecraft/world/entity/Pose;)V
|
|
21: return
|
|
|
|
private void eatEntity(net.minecraft.server.level.ServerLevel, net.minecraft.world.entity.animal.frog.Frog);
|
|
Code:
|
|
0: aload_1
|
|
1: aconst_null
|
|
2: aload_2
|
|
3: aload_0
|
|
4: getfield #90 // Field eatSound:Lnet/minecraft/sounds/SoundEvent;
|
|
7: getstatic #216 // Field net/minecraft/sounds/SoundSource.NEUTRAL:Lnet/minecraft/sounds/SoundSource;
|
|
10: fconst_2
|
|
11: fconst_1
|
|
12: invokevirtual #222 // Method net/minecraft/server/level/ServerLevel.playSound:(Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/world/entity/Entity;Lnet/minecraft/sounds/SoundEvent;Lnet/minecraft/sounds/SoundSource;FF)V
|
|
15: aload_2
|
|
16: invokevirtual #226 // Method net/minecraft/world/entity/animal/frog/Frog.getTongueTarget:()Ljava/util/Optional;
|
|
19: astore_3
|
|
20: aload_3
|
|
21: invokevirtual #230 // Method java/util/Optional.isPresent:()Z
|
|
24: ifeq 67
|
|
27: aload_3
|
|
28: invokevirtual #114 // Method java/util/Optional.get:()Ljava/lang/Object;
|
|
31: checkcast #13 // class net/minecraft/world/entity/Entity
|
|
34: astore 4
|
|
36: aload 4
|
|
38: invokevirtual #233 // Method net/minecraft/world/entity/Entity.isAlive:()Z
|
|
41: ifeq 67
|
|
44: aload_2
|
|
45: aload 4
|
|
47: invokevirtual #237 // Method net/minecraft/world/entity/animal/frog/Frog.doHurtTarget:(Lnet/minecraft/world/entity/Entity;)Z
|
|
50: pop
|
|
51: aload 4
|
|
53: invokevirtual #233 // Method net/minecraft/world/entity/Entity.isAlive:()Z
|
|
56: ifne 67
|
|
59: aload 4
|
|
61: getstatic #241 // Field net/minecraft/world/entity/Entity$RemovalReason.KILLED:Lnet/minecraft/world/entity/Entity$RemovalReason;
|
|
64: invokevirtual #245 // Method net/minecraft/world/entity/Entity.remove:(Lnet/minecraft/world/entity/Entity$RemovalReason;)V
|
|
67: return
|
|
|
|
protected void tick(net.minecraft.server.level.ServerLevel, net.minecraft.world.entity.animal.frog.Frog, long);
|
|
Code:
|
|
0: aload_2
|
|
1: invokevirtual #102 // Method net/minecraft/world/entity/animal/frog/Frog.getBrain:()Lnet/minecraft/world/entity/ai/Brain;
|
|
4: getstatic #66 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.ATTACK_TARGET:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
7: invokevirtual #108 // Method net/minecraft/world/entity/ai/Brain.getMemory:(Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;)Ljava/util/Optional;
|
|
10: invokevirtual #114 // Method java/util/Optional.get:()Ljava/lang/Object;
|
|
13: checkcast #116 // class net/minecraft/world/entity/LivingEntity
|
|
16: astore 5
|
|
18: aload_2
|
|
19: aload 5
|
|
21: invokevirtual #172 // Method net/minecraft/world/entity/animal/frog/Frog.setTongueTarget:(Lnet/minecraft/world/entity/Entity;)V
|
|
24: aload_0
|
|
25: getfield #86 // Field state:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
28: invokevirtual #255 // Method net/minecraft/world/entity/animal/frog/ShootTongue$State.ordinal:()I
|
|
31: tableswitch { // 0 to 3
|
|
|
|
0: 60
|
|
|
|
1: 197
|
|
|
|
2: 229
|
|
|
|
3: 261
|
|
default: 261
|
|
}
|
|
60: aload 5
|
|
62: aload_2
|
|
63: invokevirtual #259 // Method net/minecraft/world/entity/LivingEntity.distanceTo:(Lnet/minecraft/world/entity/Entity;)F
|
|
66: ldc #29 // float 1.75f
|
|
68: fcmpg
|
|
69: ifge 144
|
|
72: aload_1
|
|
73: aconst_null
|
|
74: aload_2
|
|
75: aload_0
|
|
76: getfield #88 // Field tongueSound:Lnet/minecraft/sounds/SoundEvent;
|
|
79: getstatic #216 // Field net/minecraft/sounds/SoundSource.NEUTRAL:Lnet/minecraft/sounds/SoundSource;
|
|
82: fconst_2
|
|
83: fconst_1
|
|
84: invokevirtual #222 // Method net/minecraft/server/level/ServerLevel.playSound:(Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/world/entity/Entity;Lnet/minecraft/sounds/SoundEvent;Lnet/minecraft/sounds/SoundSource;FF)V
|
|
87: aload_2
|
|
88: getstatic #262 // Field net/minecraft/world/entity/Pose.USING_TONGUE:Lnet/minecraft/world/entity/Pose;
|
|
91: invokevirtual #205 // Method net/minecraft/world/entity/animal/frog/Frog.setPose:(Lnet/minecraft/world/entity/Pose;)V
|
|
94: aload 5
|
|
96: aload 5
|
|
98: invokevirtual #178 // Method net/minecraft/world/entity/LivingEntity.position:()Lnet/minecraft/world/phys/Vec3;
|
|
101: aload_2
|
|
102: invokevirtual #263 // Method net/minecraft/world/entity/animal/frog/Frog.position:()Lnet/minecraft/world/phys/Vec3;
|
|
105: invokevirtual #269 // Method net/minecraft/world/phys/Vec3.vectorTo:(Lnet/minecraft/world/phys/Vec3;)Lnet/minecraft/world/phys/Vec3;
|
|
108: invokevirtual #272 // Method net/minecraft/world/phys/Vec3.normalize:()Lnet/minecraft/world/phys/Vec3;
|
|
111: ldc2_w #273 // double 0.75d
|
|
114: invokevirtual #278 // Method net/minecraft/world/phys/Vec3.scale:(D)Lnet/minecraft/world/phys/Vec3;
|
|
117: invokevirtual #282 // Method net/minecraft/world/entity/LivingEntity.setDeltaMovement:(Lnet/minecraft/world/phys/Vec3;)V
|
|
120: aload_0
|
|
121: aload 5
|
|
123: invokevirtual #178 // Method net/minecraft/world/entity/LivingEntity.position:()Lnet/minecraft/world/phys/Vec3;
|
|
126: putfield #284 // Field itemSpawnPos:Lnet/minecraft/world/phys/Vec3;
|
|
129: aload_0
|
|
130: iconst_0
|
|
131: putfield #286 // Field eatAnimationTimer:I
|
|
134: aload_0
|
|
135: getstatic #289 // Field net/minecraft/world/entity/animal/frog/ShootTongue$State.CATCH_ANIMATION:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
138: putfield #86 // Field state:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
141: goto 261
|
|
144: aload_0
|
|
145: getfield #187 // Field calculatePathCounter:I
|
|
148: ifgt 184
|
|
151: aload_2
|
|
152: invokevirtual #102 // Method net/minecraft/world/entity/animal/frog/Frog.getBrain:()Lnet/minecraft/world/entity/ai/Brain;
|
|
155: getstatic #51 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.WALK_TARGET:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
158: new #174 // class net/minecraft/world/entity/ai/memory/WalkTarget
|
|
161: dup
|
|
162: aload 5
|
|
164: invokevirtual #178 // Method net/minecraft/world/entity/LivingEntity.position:()Lnet/minecraft/world/phys/Vec3;
|
|
167: fconst_2
|
|
168: iconst_0
|
|
169: invokespecial #181 // Method net/minecraft/world/entity/ai/memory/WalkTarget."<init>":(Lnet/minecraft/world/phys/Vec3;FI)V
|
|
172: invokevirtual #185 // Method net/minecraft/world/entity/ai/Brain.setMemory:(Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;Ljava/lang/Object;)V
|
|
175: aload_0
|
|
176: bipush 10
|
|
178: putfield #187 // Field calculatePathCounter:I
|
|
181: goto 261
|
|
184: aload_0
|
|
185: dup
|
|
186: getfield #187 // Field calculatePathCounter:I
|
|
189: iconst_1
|
|
190: isub
|
|
191: putfield #187 // Field calculatePathCounter:I
|
|
194: goto 261
|
|
197: aload_0
|
|
198: dup
|
|
199: getfield #286 // Field eatAnimationTimer:I
|
|
202: dup_x1
|
|
203: iconst_1
|
|
204: iadd
|
|
205: putfield #286 // Field eatAnimationTimer:I
|
|
208: bipush 6
|
|
210: if_icmplt 261
|
|
213: aload_0
|
|
214: getstatic #292 // Field net/minecraft/world/entity/animal/frog/ShootTongue$State.EAT_ANIMATION:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
217: putfield #86 // Field state:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
220: aload_0
|
|
221: aload_1
|
|
222: aload_2
|
|
223: invokevirtual #294 // Method eatEntity:(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/entity/animal/frog/Frog;)V
|
|
226: goto 261
|
|
229: aload_0
|
|
230: getfield #286 // Field eatAnimationTimer:I
|
|
233: bipush 10
|
|
235: if_icmplt 248
|
|
238: aload_0
|
|
239: getstatic #84 // Field net/minecraft/world/entity/animal/frog/ShootTongue$State.DONE:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
242: putfield #86 // Field state:Lnet/minecraft/world/entity/animal/frog/ShootTongue$State;
|
|
245: goto 261
|
|
248: aload_0
|
|
249: dup
|
|
250: getfield #286 // Field eatAnimationTimer:I
|
|
253: iconst_1
|
|
254: iadd
|
|
255: putfield #286 // Field eatAnimationTimer:I
|
|
258: goto 261
|
|
261: return
|
|
|
|
private boolean canPathfindToTarget(net.minecraft.world.entity.animal.frog.Frog, net.minecraft.world.entity.LivingEntity);
|
|
Code:
|
|
0: aload_1
|
|
1: invokevirtual #301 // Method net/minecraft/world/entity/animal/frog/Frog.getNavigation:()Lnet/minecraft/world/entity/ai/navigation/PathNavigation;
|
|
4: aload_2
|
|
5: iconst_0
|
|
6: invokevirtual #307 // Method net/minecraft/world/entity/ai/navigation/PathNavigation.createPath:(Lnet/minecraft/world/entity/Entity;I)Lnet/minecraft/world/level/pathfinder/Path;
|
|
9: astore_3
|
|
10: aload_3
|
|
11: ifnull 28
|
|
14: aload_3
|
|
15: invokevirtual #313 // Method net/minecraft/world/level/pathfinder/Path.getDistToTarget:()F
|
|
18: ldc #29 // float 1.75f
|
|
20: fcmpg
|
|
21: ifge 28
|
|
24: iconst_1
|
|
25: goto 29
|
|
28: iconst_0
|
|
29: ireturn
|
|
|
|
private void addUnreachableTargetToMemory(net.minecraft.world.entity.animal.frog.Frog, net.minecraft.world.entity.LivingEntity);
|
|
Code:
|
|
0: aload_1
|
|
1: invokevirtual #102 // Method net/minecraft/world/entity/animal/frog/Frog.getBrain:()Lnet/minecraft/world/entity/ai/Brain;
|
|
4: getstatic #319 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.UNREACHABLE_TONGUE_TARGETS:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
7: invokevirtual #108 // Method net/minecraft/world/entity/ai/Brain.getMemory:(Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;)Ljava/util/Optional;
|
|
10: invokedynamic #337, 0 // InvokeDynamic #0:get:()Ljava/util/function/Supplier;
|
|
15: invokevirtual #341 // Method java/util/Optional.orElseGet:(Ljava/util/function/Supplier;)Ljava/lang/Object;
|
|
18: checkcast #343 // class java/util/List
|
|
21: astore_3
|
|
22: aload_3
|
|
23: aload_2
|
|
24: invokevirtual #347 // Method net/minecraft/world/entity/LivingEntity.getUUID:()Ljava/util/UUID;
|
|
27: invokeinterface #351, 2 // InterfaceMethod java/util/List.contains:(Ljava/lang/Object;)Z
|
|
32: ifne 39
|
|
35: iconst_1
|
|
36: goto 40
|
|
39: iconst_0
|
|
40: istore 4
|
|
42: aload_3
|
|
43: invokeinterface #354, 1 // InterfaceMethod java/util/List.size:()I
|
|
48: iconst_5
|
|
49: if_icmpne 65
|
|
52: iload 4
|
|
54: ifeq 65
|
|
57: aload_3
|
|
58: iconst_0
|
|
59: invokeinterface #357, 2 // InterfaceMethod java/util/List.remove:(I)Ljava/lang/Object;
|
|
64: pop
|
|
65: iload 4
|
|
67: ifeq 81
|
|
70: aload_3
|
|
71: aload_2
|
|
72: invokevirtual #347 // Method net/minecraft/world/entity/LivingEntity.getUUID:()Ljava/util/UUID;
|
|
75: invokeinterface #360, 2 // InterfaceMethod java/util/List.add:(Ljava/lang/Object;)Z
|
|
80: pop
|
|
81: aload_1
|
|
82: invokevirtual #102 // Method net/minecraft/world/entity/animal/frog/Frog.getBrain:()Lnet/minecraft/world/entity/ai/Brain;
|
|
85: getstatic #319 // Field net/minecraft/world/entity/ai/memory/MemoryModuleType.UNREACHABLE_TONGUE_TARGETS:Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;
|
|
88: aload_3
|
|
89: ldc2_w #361 // long 100l
|
|
92: invokevirtual #366 // Method net/minecraft/world/entity/ai/Brain.setMemoryWithExpiry:(Lnet/minecraft/world/entity/ai/memory/MemoryModuleType;Ljava/lang/Object;J)V
|
|
95: return
|
|
|
|
protected boolean checkExtraStartConditions(net.minecraft.server.level.ServerLevel, net.minecraft.world.entity.LivingEntity);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: aload_2
|
|
3: checkcast #98 // class net/minecraft/world/entity/animal/frog/Frog
|
|
6: invokevirtual #373 // Method checkExtraStartConditions:(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/entity/animal/frog/Frog;)Z
|
|
9: ireturn
|
|
|
|
protected boolean canStillUse(net.minecraft.server.level.ServerLevel, net.minecraft.world.entity.LivingEntity, long);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: aload_2
|
|
3: checkcast #98 // class net/minecraft/world/entity/animal/frog/Frog
|
|
6: lload_3
|
|
7: invokevirtual #376 // Method canStillUse:(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/entity/animal/frog/Frog;J)Z
|
|
10: ireturn
|
|
|
|
protected void stop(net.minecraft.server.level.ServerLevel, net.minecraft.world.entity.LivingEntity, long);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: aload_2
|
|
3: checkcast #98 // class net/minecraft/world/entity/animal/frog/Frog
|
|
6: lload_3
|
|
7: invokevirtual #379 // Method stop:(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/entity/animal/frog/Frog;J)V
|
|
10: return
|
|
|
|
protected void tick(net.minecraft.server.level.ServerLevel, net.minecraft.world.entity.LivingEntity, long);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: aload_2
|
|
3: checkcast #98 // class net/minecraft/world/entity/animal/frog/Frog
|
|
6: lload_3
|
|
7: invokevirtual #381 // Method tick:(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/entity/animal/frog/Frog;J)V
|
|
10: return
|
|
|
|
protected void start(net.minecraft.server.level.ServerLevel, net.minecraft.world.entity.LivingEntity, long);
|
|
Code:
|
|
0: aload_0
|
|
1: aload_1
|
|
2: aload_2
|
|
3: checkcast #98 // class net/minecraft/world/entity/animal/frog/Frog
|
|
6: lload_3
|
|
7: invokevirtual #383 // Method start:(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/entity/animal/frog/Frog;J)V
|
|
10: return
|
|
}
|