Class VillagerHostilesSensor
java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<LivingEntity>
net.minecraft.entity.ai.brain.sensor.NearestVisibleLivingEntitySensor
net.minecraft.entity.ai.brain.sensor.VillagerHostilesSensor
- Mappings:
Namespace Name official bqj
intermediary net/minecraft/class_4150
named net/minecraft/entity/ai/brain/sensor/VillagerHostilesSensor
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
BASE_MAX_DISTANCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MemoryModuleType<LivingEntity>
private boolean
isCloseEnoughForDanger
(LivingEntity villager, LivingEntity target) private boolean
isHostile
(LivingEntity entity) protected boolean
matches
(LivingEntity entity, LivingEntity target) Methods inherited from class net.minecraft.entity.ai.brain.sensor.NearestVisibleLivingEntitySensor
getOutputMemoryModules, getVisibleLivingEntities, sense
Methods inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
testAttackableTargetPredicate, testAttackableTargetPredicateIgnoreVisibility, testTargetPredicate, tick
-
Field Details
-
SQUARED_DISTANCES_FOR_DANGER
- Mappings:
Namespace Name Mixin selector official a
Lbqj;a:Lcom/google/common/collect/ImmutableMap;
intermediary field_18473
Lnet/minecraft/class_4150;field_18473:Lcom/google/common/collect/ImmutableMap;
named SQUARED_DISTANCES_FOR_DANGER
Lnet/minecraft/entity/ai/brain/sensor/VillagerHostilesSensor;SQUARED_DISTANCES_FOR_DANGER:Lcom/google/common/collect/ImmutableMap;
-
-
Constructor Details
-
VillagerHostilesSensor
public VillagerHostilesSensor()
-
-
Method Details
-
matches
- Specified by:
matches
in classNearestVisibleLivingEntitySensor
- Mappings:
Namespace Name Mixin selector official a
Lbpz;a(Lbfz;Lbfz;)Z
intermediary method_35148
Lnet/minecraft/class_6045;method_35148(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
named matches
Lnet/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor;matches(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-
isCloseEnoughForDanger
- Mappings:
Namespace Name Mixin selector official e
Lbqj;e(Lbfz;Lbfz;)Z
intermediary method_19105
Lnet/minecraft/class_4150;method_19105(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
named isCloseEnoughForDanger
Lnet/minecraft/entity/ai/brain/sensor/VillagerHostilesSensor;isCloseEnoughForDanger(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-
getOutputMemoryModule
- Specified by:
getOutputMemoryModule
in classNearestVisibleLivingEntitySensor
- Mappings:
Namespace Name Mixin selector official b
Lbpz;b()Lbpb;
intermediary method_35150
Lnet/minecraft/class_6045;method_35150()Lnet/minecraft/class_4140;
named getOutputMemoryModule
Lnet/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor;getOutputMemoryModule()Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
isHostile
- Mappings:
Namespace Name Mixin selector official b
Lbqj;b(Lbfz;)Z
intermediary method_19104
Lnet/minecraft/class_4150;method_19104(Lnet/minecraft/class_1309;)Z
named isHostile
Lnet/minecraft/entity/ai/brain/sensor/VillagerHostilesSensor;isHostile(Lnet/minecraft/entity/LivingEntity;)Z
-