Class NearestVisibleLivingEntitySensor
java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<LivingEntity>
net.minecraft.entity.ai.brain.sensor.NearestVisibleLivingEntitySensor
- Direct Known Subclasses:
AxolotlAttackablesSensor
,FrogAttackablesSensor
,VillagerHostilesSensor
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor
intermediary net/minecraft/class_6045
official cgj
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Optional
<LivingEntity> getNearestVisibleLivingEntity
(ServerWorld world, LivingEntity entity) protected abstract MemoryModuleType
<LivingEntity> Set
<MemoryModuleType<?>> protected Optional
<LivingTargetCache> getVisibleLivingEntities
(LivingEntity entity) protected abstract boolean
matches
(ServerWorld world, LivingEntity entity, LivingEntity target) protected void
sense
(ServerWorld world, LivingEntity entity) Methods inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
hasPredicatePassedRecently, hasTargetBeenAttackableRecently, testAttackableTargetPredicate, testAttackableTargetPredicateIgnoreVisibility, testTargetPredicate, tick
-
Constructor Details
-
NearestVisibleLivingEntitySensor
public NearestVisibleLivingEntitySensor()
-
-
Method Details
-
matches
- Mappings:
Namespace Name Mixin selector named matches
Lnet/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor;matches(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_35148
Lnet/minecraft/class_6045;method_35148(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
official a
Lcgj;a(Lash;Lbwf;Lbwf;)Z
-
getOutputMemoryModule
- Mappings:
Namespace Name Mixin selector named getOutputMemoryModule
Lnet/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor;getOutputMemoryModule()Lnet/minecraft/entity/ai/brain/MemoryModuleType;
intermediary method_35150
Lnet/minecraft/class_6045;method_35150()Lnet/minecraft/class_4140;
official b
Lcgj;b()Lcfj;
-
getOutputMemoryModules
- Specified by:
getOutputMemoryModules
in classSensor<LivingEntity>
- Mappings:
Namespace Name Mixin selector named getOutputMemoryModules
Lnet/minecraft/entity/ai/brain/sensor/Sensor;getOutputMemoryModules()Ljava/util/Set;
intermediary method_19099
Lnet/minecraft/class_4148;method_19099()Ljava/util/Set;
official a
Lcgp;a()Ljava/util/Set;
-
sense
- Specified by:
sense
in classSensor<LivingEntity>
- Mappings:
Namespace Name Mixin selector named sense
Lnet/minecraft/entity/ai/brain/sensor/Sensor;sense(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
intermediary method_19101
Lnet/minecraft/class_4148;method_19101(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
official a
Lcgp;a(Lash;Lbwf;)V
-
getNearestVisibleLivingEntity
private Optional<LivingEntity> getNearestVisibleLivingEntity(ServerWorld world, LivingEntity entity) - Mappings:
Namespace Name Mixin selector named getNearestVisibleLivingEntity
Lnet/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor;getNearestVisibleLivingEntity(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Ljava/util/Optional;
intermediary method_35151
Lnet/minecraft/class_6045;method_35151(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Ljava/util/Optional;
official c
Lcgj;c(Lash;Lbwf;)Ljava/util/Optional;
-
getVisibleLivingEntities
- Mappings:
Namespace Name Mixin selector named getVisibleLivingEntities
Lnet/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor;getVisibleLivingEntities(Lnet/minecraft/entity/LivingEntity;)Ljava/util/Optional;
intermediary method_35147
Lnet/minecraft/class_6045;method_35147(Lnet/minecraft/class_1309;)Ljava/util/Optional;
official a
Lcgj;a(Lbwf;)Ljava/util/Optional;
-