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