RunOne .java

net.minecraft.world.entity.ai.behavior.RunOne (class, 21 lines): extends GateBehavior. imports: ImmutableSet, MemoryStatus, ImmutableMap, MemoryModuleType.

net.minecraft.world.entity.ai.behaviorclass21 linescommonextends LivingEntity>917 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (5)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

RunOne.java21 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity.ai.behavior;
2
3
import com.google.common.collect.ImmutableMap;
4
import com.google.common.collect.ImmutableSet;
5
import com.mojang.datafixers.util.Pair;
6
import java.util.List;
7
import java.util.Map;
8
import net.minecraft.world.entity.LivingEntity;
9
import net.minecraft.world.entity.ai.memory.MemoryModuleType;
10
import net.minecraft.world.entity.ai.memory.MemoryStatus;
11
12
public class RunOne<E extends LivingEntity> extends GateBehavior<E> {
13
	public RunOne(final List<Pair<? extends BehaviorControl<? super E>, Integer>> weightedBehaviors) {
14
		this(ImmutableMap.of(), weightedBehaviors);
15
	}
16
17
	public RunOne(final Map<MemoryModuleType<?>, MemoryStatus> entryCondition, final List<Pair<? extends BehaviorControl<? super E>, Integer>> weightedBehaviors) {
18
		super(entryCondition, ImmutableSet.of(), GateBehavior.OrderPolicy.SHUFFLED, GateBehavior.RunningPolicy.RUN_ONE, weightedBehaviors);
19
	}
20
}
21

Decompiled Minecraft 26.3 source of RunOne (net/minecraft/world/entity/ai/behavior/RunOne.java) with Mojang official mappings, stored verbatim on the site.