Class PiglinMobsSensor
java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<LivingEntity>
net.minecraft.entity.ai.brain.sensor.PiglinMobsSensor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doTick
(ServerWorld p_212872_1_, LivingEntity p_212872_2_) findNearestRepellent
(ServerWorld p_234126_0_, LivingEntity p_234126_1_) private static boolean
isValidRepellent
(ServerWorld p_241391_0_, BlockPos p_241391_1_) Set<MemoryModuleType<?>>
requires()
Methods inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
isEntityTargetable, tick
-
Constructor Details
-
PiglinMobsSensor
public PiglinMobsSensor()
-
-
Method Details
-
requires
- Specified by:
requires
in classSensor<LivingEntity>
-
doTick
- Specified by:
doTick
in classSensor<LivingEntity>
-
findNearestRepellent
private static Optional<BlockPos> findNearestRepellent(ServerWorld p_234126_0_, LivingEntity p_234126_1_) -
isValidRepellent
-