Uses of Class
net.minecraft.entity.ai.brain.Activity
Packages that use Activity
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
-
Uses of Activity in net.minecraft.entity.ai.brain
Fields in net.minecraft.entity.ai.brain declared as ActivityModifier and TypeFieldDescriptionprivate final Activity
ScheduleBuilder.ActivityEntry.activity
static final Activity
Activity.ADMIRE_ITEM
static final Activity
Activity.AVOID
static final Activity
Activity.CELEBRATE
static final Activity
Activity.CORE
private Activity
Brain.defaultActivity
static final Activity
Activity.DIG
static final Activity
Activity.EMERGE
static final Activity
Activity.FIGHT
static final Activity
Activity.HIDE
static final Activity
Activity.IDLE
static final Activity
Activity.INVESTIGATE
static final Activity
Activity.LAY_SPAWN
static final Activity
Activity.LONG_JUMP
static final Activity
Activity.MEET
static final Activity
Activity.PANIC
static final Activity
Activity.PLAY
static final Activity
Activity.PLAY_DEAD
static final Activity
Activity.PRE_RAID
static final Activity
Activity.RAID
static final Activity
Activity.RAM
static final Activity
Activity.REST
static final Activity
Activity.RIDE
static final Activity
Activity.ROAR
static final Activity
Activity.SNIFF
static final Activity
Activity.SWIM
static final Activity
Activity.TONGUE
static final Activity
Activity.WORK
Fields in net.minecraft.entity.ai.brain with type parameters of type ActivityModifier and TypeFieldDescriptionBrain.coreActivities
private final Map<Activity,
Set<MemoryModuleType<?>>> The map from activities to the memories to forget after the activity is completed.Brain.possibleActivities
private final Map<Activity,
Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryModuleState>>> Brain.requiredActivityMemories
private final Map<Activity,
ScheduleRule> Schedule.scheduleRules
Brain.tasks
Methods in net.minecraft.entity.ai.brain that return ActivityModifier and TypeMethodDescriptionScheduleBuilder.ActivityEntry.getActivity()
Schedule.getActivityForTime
(int time) private static Activity
Methods in net.minecraft.entity.ai.brain that return types with arguments of type ActivityModifier and TypeMethodDescriptionBrain.getFirstPossibleNonCoreActivity()
Brain.getPossibleActivities()
Deprecated.Methods in net.minecraft.entity.ai.brain with parameters of type ActivityModifier and TypeMethodDescriptionprotected void
Schedule.addActivity
(Activity activity) private boolean
Brain.canDoActivity
(Activity activity) void
Brain.doExclusively
(Activity activity) private void
Brain.forgetIrrelevantMemories
(Activity except) protected List<ScheduleRule>
Schedule.getOtherRules
(Activity activity) protected ScheduleRule
boolean
Brain.hasActivity
(Activity activity) private void
Brain.resetPossibleActivities
(Activity except) void
Brain.setDefaultActivity
(Activity activity) void
Brain.setTaskList
(Activity activity, int begin, ImmutableList<? extends Task<? super E>> list) void
Brain.setTaskList
(Activity activity, int begin, ImmutableList<? extends Task<? super E>> tasks, MemoryModuleType<?> memoryType) void
Brain.setTaskList
(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super E>>> indexedTasks) void
Brain.setTaskList
(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super E>>> indexedTasks, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryModuleState>> requiredMemories) void
Brain.setTaskList
(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super E>>> indexedTasks, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryModuleState>> requiredMemories, Set<MemoryModuleType<?>> forgettingMemories) ScheduleBuilder.withActivity
(int startTime, Activity activity) Method parameters in net.minecraft.entity.ai.brain with type arguments of type ActivityModifier and TypeMethodDescriptionvoid
Brain.resetPossibleActivities
(List<Activity> activities) void
Brain.setCoreActivities
(Set<Activity> coreActivities) Constructors in net.minecraft.entity.ai.brain with parameters of type Activity -
Uses of Activity in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob with parameters of type ActivityModifier and TypeMethodDescriptionprivate static SoundEvent
PiglinBrain.getSound
(PiglinEntity piglin, Activity activity) private static SoundEvent
HoglinBrain.getSoundEvent
(HoglinEntity hoglin, Activity activity) -
Uses of Activity in net.minecraft.util.registry
Fields in net.minecraft.util.registry with type parameters of type ActivityModifier and TypeFieldDescriptionRegistry.ACTIVITY
static final RegistryKey<Registry<Activity>>
Registry.ACTIVITY_KEY