Uses of Class
net.minecraft.entity.ai.brain.Brain
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 Brain in net.minecraft.entity
Modifier and TypeMethodDescriptionprotected Brain<?>
LivingEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) Brain<?>
LivingEntity.getBrain()
-
Uses of Brain in net.minecraft.entity.ai.brain
Modifier and TypeMethodDescriptionBrain.copy()
Brain.Profile.deserialize
(com.mojang.serialization.Dynamic<?> data) Modifier and TypeMethodDescriptionstatic <E extends LivingEntity>
com.mojang.serialization.Codec<Brain<E>>Brain.createBrainCodec
(Collection<? extends MemoryModuleType<?>> memoryModules, Collection<? extends SensorType<? extends Sensor<? super E>>> sensors) Modifier and TypeMethodDescription(package private) void
MemoryQueryResult<com.mojang.datafixers.kinds.Const.Mu<com.mojang.datafixers.util.Unit>,
Value> MemoryQuery.Absent.toQueryResult
(Brain<?> brain, Optional<Value> value) MemoryQueryResult<com.mojang.datafixers.kinds.OptionalBox.Mu,
Value> MemoryQuery.Optional.toQueryResult
(Brain<?> brain, Optional<Value> value) @Nullable MemoryQueryResult<F,
MemoryQuery.Value> MemoryQuery.toQueryResult
(Brain<?> brain, Optional<MemoryQuery.Value> value) MemoryQueryResult<com.mojang.datafixers.kinds.IdF.Mu,
Value> MemoryQuery.Value.toQueryResult
(Brain<?> brain, Optional<Value> value) ModifierConstructorDescriptionMemoryQueryResult
(Brain<?> brain, MemoryModuleType<Value> memory, com.mojang.datafixers.kinds.App<F, Value> value) ModifierConstructorDescriptionBrain
(Collection<? extends MemoryModuleType<?>> memories, Collection<? extends SensorType<? extends Sensor<? super E>>> sensors, ImmutableList<Brain.MemoryEntry<?>> memoryEntries, Supplier<com.mojang.serialization.Codec<Brain<E>>> codecSupplier) -
Uses of Brain in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionprivate static boolean
LookTargetUtil.canSee
(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryType, Predicate<LivingEntity> filter) static boolean
LookTargetUtil.canSee
(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryModuleType, EntityType<?> entityType) static boolean
LookTargetUtil.canSee
(Brain<?> brain, LivingEntity target) private static boolean
OpenDoorsTask.hasReached
(Brain<?> brain, BlockPos pos) -
Uses of Brain in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionprotected static Brain<?>
HoglinBrain.create
(Brain<HoglinEntity> brain) protected static Brain<?>
PiglinBrain.create
(PiglinEntity piglin, Brain<PiglinEntity> brain) protected static Brain<?>
PiglinBruteBrain.create
(PiglinBruteEntity piglinBrute, Brain<PiglinBruteEntity> brain) protected static Brain<?>
WardenBrain.create
(WardenEntity warden, com.mojang.serialization.Dynamic<?> dynamic) protected Brain<?>
HoglinEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected Brain<?>
PiglinBruteEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected Brain<?>
PiglinEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected Brain<?>
WardenEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected Brain<?>
ZoglinEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) HoglinEntity.getBrain()
PiglinBruteEntity.getBrain()
PiglinEntity.getBrain()
WardenEntity.getBrain()
ZoglinEntity.getBrain()
Modifier and TypeMethodDescriptionprivate static void
PiglinBrain.addAdmireItemActivities
(Brain<PiglinEntity> brain) private static void
PiglinBrain.addAvoidActivities
(Brain<PiglinEntity> brain) private static void
HoglinBrain.addAvoidTasks
(Brain<HoglinEntity> brain) private static void
PiglinBrain.addCelebrateActivities
(Brain<PiglinEntity> brain) private static void
PiglinBrain.addCoreActivities
(Brain<PiglinEntity> piglin) private static void
PiglinBruteBrain.addCoreActivities
(PiglinBruteEntity piglinBrute, Brain<PiglinBruteEntity> brain) private static void
WardenBrain.addCoreActivities
(Brain<WardenEntity> brain) private static void
HoglinBrain.addCoreTasks
(Brain<HoglinEntity> brain) private static void
ZoglinEntity.addCoreTasks
(Brain<ZoglinEntity> brain) private static void
WardenBrain.addDigActivities
(Brain<WardenEntity> brain) private static void
WardenBrain.addEmergeActivities
(Brain<WardenEntity> brain) private static void
PiglinBrain.addFightActivities
(PiglinEntity piglin, Brain<PiglinEntity> brain) private static void
PiglinBruteBrain.addFightActivities
(PiglinBruteEntity piglinBrute, Brain<PiglinBruteEntity> brain) private static void
WardenBrain.addFightActivities
(WardenEntity warden, Brain<WardenEntity> brain) private static void
HoglinBrain.addFightTasks
(Brain<HoglinEntity> brain) private static void
ZoglinEntity.addFightTasks
(Brain<ZoglinEntity> brain) private static void
PiglinBrain.addIdleActivities
(Brain<PiglinEntity> piglin) private static void
PiglinBruteBrain.addIdleActivities
(PiglinBruteEntity piglinBrute, Brain<PiglinBruteEntity> brain) private static void
WardenBrain.addIdleActivities
(Brain<WardenEntity> brain) private static void
HoglinBrain.addIdleTasks
(Brain<HoglinEntity> brain) private static void
ZoglinEntity.addIdleTasks
(Brain<ZoglinEntity> brain) private static void
WardenBrain.addInvestigateActivities
(Brain<WardenEntity> brain) private static void
PiglinBrain.addRideActivities
(Brain<PiglinEntity> brain) private static void
WardenBrain.addRoarActivities
(Brain<WardenEntity> brain) private static void
WardenBrain.addSniffActivities
(Brain<WardenEntity> brain) protected static Brain<?>
HoglinBrain.create
(Brain<HoglinEntity> brain) protected static Brain<?>
PiglinBrain.create
(PiglinEntity piglin, Brain<PiglinEntity> brain) protected static Brain<?>
PiglinBruteBrain.create
(PiglinBruteEntity piglinBrute, Brain<PiglinBruteEntity> brain) -
Uses of Brain in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionprotected static Brain<?>
AllayBrain.create
(Brain<AllayEntity> brain) protected static Brain<?>
AxolotlBrain.create
(Brain<AxolotlEntity> brain) protected static Brain<?>
CamelBrain.create
(Brain<CamelEntity> brain) protected static Brain<?>
FrogBrain.create
(Brain<FrogEntity> brain) protected static Brain<?>
GoatBrain.create
(Brain<GoatEntity> brain) protected static Brain<?>
SnifferBrain.create
(Brain<SnifferEntity> brain) protected static Brain<?>
TadpoleBrain.create
(Brain<TadpoleEntity> brain) protected Brain<?>
AllayEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected Brain<?>
AxolotlEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected Brain<?>
CamelEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected Brain<?>
FrogEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected Brain<?>
GoatEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected Brain<?>
SnifferEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected Brain<?>
TadpoleEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) protected Brain<?>
VillagerEntity.deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) AllayEntity.getBrain()
AxolotlEntity.getBrain()
FrogEntity.getBrain()
GoatEntity.getBrain()
SnifferEntity.getBrain()
TadpoleEntity.getBrain()
VillagerEntity.getBrain()
Modifier and TypeMethodDescriptionprivate static void
AllayBrain.addCoreActivities
(Brain<AllayEntity> brain) private static void
AxolotlBrain.addCoreActivities
(Brain<AxolotlEntity> brain) private static void
CamelBrain.addCoreActivities
(Brain<CamelEntity> brain) private static void
FrogBrain.addCoreActivities
(Brain<FrogEntity> brain) private static void
GoatBrain.addCoreActivities
(Brain<GoatEntity> brain) private static void
SnifferBrain.addCoreActivities
(Brain<SnifferEntity> brain) private static void
TadpoleBrain.addCoreActivities
(Brain<TadpoleEntity> brain) private static void
SnifferBrain.addDigActivities
(Brain<SnifferEntity> brain) private static void
AxolotlBrain.addFightActivities
(Brain<AxolotlEntity> brain) private static void
AllayBrain.addIdleActivities
(Brain<AllayEntity> brain) private static void
AxolotlBrain.addIdleActivities
(Brain<AxolotlEntity> brain) private static void
CamelBrain.addIdleActivities
(Brain<CamelEntity> brain) private static void
FrogBrain.addIdleActivities
(Brain<FrogEntity> brain) private static void
GoatBrain.addIdleActivities
(Brain<GoatEntity> brain) private static void
SnifferBrain.addIdleActivities
(Brain<SnifferEntity> brain) private static void
TadpoleBrain.addIdleActivities
(Brain<TadpoleEntity> brain) private static void
FrogBrain.addLaySpawnActivities
(Brain<FrogEntity> brain) private static void
FrogBrain.addLongJumpActivities
(Brain<FrogEntity> brain) private static void
GoatBrain.addLongJumpActivities
(Brain<GoatEntity> brain) private static void
AxolotlBrain.addPlayDeadActivities
(Brain<AxolotlEntity> brain) private static void
GoatBrain.addRamActivities
(Brain<GoatEntity> brain) private static void
SnifferBrain.addSniffActivities
(Brain<SnifferEntity> brain) private static void
FrogBrain.addSwimActivities
(Brain<FrogEntity> brain) private static void
FrogBrain.addTongueActivities
(Brain<FrogEntity> brain) protected static Brain<?>
AllayBrain.create
(Brain<AllayEntity> brain) protected static Brain<?>
AxolotlBrain.create
(Brain<AxolotlEntity> brain) protected static Brain<?>
CamelBrain.create
(Brain<CamelEntity> brain) protected static Brain<?>
FrogBrain.create
(Brain<FrogEntity> brain) protected static Brain<?>
GoatBrain.create
(Brain<GoatEntity> brain) protected static Brain<?>
SnifferBrain.create
(Brain<SnifferEntity> brain) protected static Brain<?>
TadpoleBrain.create
(Brain<TadpoleEntity> brain) private void
VillagerEntity.initBrain
(Brain<VillagerEntity> brain) private static boolean
AllayBrain.shouldGoTowardsNoteBlock
(LivingEntity allay, Brain<?> brain, GlobalPos pos)