Uses of Class
net.minecraft.entity.ai.brain.Activity
Package
Description
-
Uses of Activity in net.minecraft.entity.ai.brain
Modifier 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.FIGHT
static final Activity
Activity.HIDE
static final Activity
Activity.IDLE
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.WORK
Modifier 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
Modifier and TypeMethodDescriptionScheduleBuilder.ActivityEntry.getActivity()
Schedule.getActivityForTime
(int time) private static Activity
Modifier and TypeMethodDescriptionBrain.getFirstPossibleNonCoreActivity()
Brain.getPossibleActivities()
Deprecated.Modifier 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) Modifier and TypeMethodDescriptionvoid
Brain.resetPossibleActivities
(List<Activity> activities) void
Brain.setCoreActivities
(Set<Activity> coreActivities) -
Uses of Activity in net.minecraft.entity.mob
Modifier 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
Modifier and TypeFieldDescriptionRegistry.ACTIVITY
static final RegistryKey<Registry<Activity>>
Registry.ACTIVITY_KEY