Class PiglinSpecificSensor
java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<LivingEntity>
net.minecraft.entity.ai.brain.sensor.PiglinSpecificSensor
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/sensor/PiglinSpecificSensor
intermediary net/minecraft/class_4834
official cdu
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
BASE_MAX_DISTANCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindPiglinRepellent
(ServerWorld world, LivingEntity entity) Set
<MemoryModuleType<?>> private static boolean
isPiglinRepellent
(ServerWorld world, BlockPos pos) protected void
sense
(ServerWorld world, LivingEntity entity) Methods inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
testAttackableTargetPredicate, testAttackableTargetPredicateIgnoreVisibility, testTargetPredicate, tick
-
Constructor Details
-
PiglinSpecificSensor
public PiglinSpecificSensor()
-
-
Method Details
-
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
Lcdy;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
Lcdy;a(Laqu;Lbtn;)V
-
findPiglinRepellent
- Mappings:
Namespace Name Mixin selector named findPiglinRepellent
Lnet/minecraft/entity/ai/brain/sensor/PiglinSpecificSensor;findPiglinRepellent(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Ljava/util/Optional;
intermediary method_24649
Lnet/minecraft/class_4834;method_24649(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Ljava/util/Optional;
official c
Lcdu;c(Laqu;Lbtn;)Ljava/util/Optional;
-
isPiglinRepellent
- Mappings:
Namespace Name Mixin selector named isPiglinRepellent
Lnet/minecraft/entity/ai/brain/sensor/PiglinSpecificSensor;isPiglinRepellent(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_24648
Lnet/minecraft/class_4834;method_24648(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
official a
Lcdu;a(Laqu;Ljd;)Z
-