Class WardenAttackablesSensor
java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<WardenEntity>
net.minecraft.entity.ai.brain.sensor.NearestLivingEntitiesSensor<WardenEntity>
net.minecraft.entity.ai.brain.sensor.WardenAttackablesSensor
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/sensor/WardenAttackablesSensor
intermediary net/minecraft/class_7252
official ceb
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
BASE_MAX_DISTANCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static Optional
<LivingEntity> findNearestTarget
(WardenEntity warden, Predicate<LivingEntity> targetPredicate) protected int
protected int
Set
<MemoryModuleType<?>> protected void
sense
(ServerWorld serverWorld, WardenEntity wardenEntity) Methods inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
testAttackableTargetPredicate, testAttackableTargetPredicateIgnoreVisibility, testTargetPredicate, tick
-
Constructor Details
-
WardenAttackablesSensor
public WardenAttackablesSensor()
-
-
Method Details
-
getOutputMemoryModules
- Overrides:
getOutputMemoryModules
in classNearestLivingEntitiesSensor<WardenEntity>
- 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
Lcdw;a()Ljava/util/Set;
-
sense
- Overrides:
sense
in classNearestLivingEntitiesSensor<WardenEntity>
- Mappings:
Namespace Name Mixin selector named sense
Lnet/minecraft/entity/ai/brain/sensor/WardenAttackablesSensor;sense(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/WardenEntity;)V
intermediary method_43083
Lnet/minecraft/class_7252;method_43083(Lnet/minecraft/class_3218;Lnet/minecraft/class_7260;)V
official a
Lceb;a(Laqt;Lclz;)V
-
findNearestTarget
private static Optional<LivingEntity> findNearestTarget(WardenEntity warden, Predicate<LivingEntity> targetPredicate) - Mappings:
Namespace Name Mixin selector named findNearestTarget
Lnet/minecraft/entity/ai/brain/sensor/WardenAttackablesSensor;findNearestTarget(Lnet/minecraft/entity/mob/WardenEntity;Ljava/util/function/Predicate;)Ljava/util/Optional;
intermediary method_43086
Lnet/minecraft/class_7252;method_43086(Lnet/minecraft/class_7260;Ljava/util/function/Predicate;)Ljava/util/Optional;
official a
Lceb;a(Lclz;Ljava/util/function/Predicate;)Ljava/util/Optional;
-
getHorizontalExpansion
protected int getHorizontalExpansion()- Overrides:
getHorizontalExpansion
in classNearestLivingEntitiesSensor<WardenEntity>
- Mappings:
Namespace Name Mixin selector named getHorizontalExpansion
Lnet/minecraft/entity/ai/brain/sensor/NearestLivingEntitiesSensor;getHorizontalExpansion()I
intermediary method_43081
Lnet/minecraft/class_4146;method_43081()I
official b
Lcdp;b()I
-
getHeightExpansion
protected int getHeightExpansion()- Overrides:
getHeightExpansion
in classNearestLivingEntitiesSensor<WardenEntity>
- Mappings:
Namespace Name Mixin selector named getHeightExpansion
Lnet/minecraft/entity/ai/brain/sensor/NearestLivingEntitiesSensor;getHeightExpansion()I
intermediary method_43082
Lnet/minecraft/class_4146;method_43082()I
official c
Lcdp;c()I
-