Class PiglinSpecificSensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<LivingEntity>
net.minecraft.world.entity.ai.sensing.PiglinSpecificSensor
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.sensing.Sensor
TARGETING_RANGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doTick
(ServerLevel p_26726_, LivingEntity p_26727_) findNearestRepellent
(ServerLevel p_26735_, LivingEntity p_26736_) private static boolean
isValidRepellent
(ServerLevel p_26729_, BlockPos p_26730_) Set
<MemoryModuleType<?>> requires()
Methods inherited from class net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, tick
-
Constructor Details
-
PiglinSpecificSensor
public PiglinSpecificSensor()
-
-
Method Details
-
requires
- Specified by:
requires
in classSensor<LivingEntity>
-
doTick
- Specified by:
doTick
in classSensor<LivingEntity>
-
findNearestRepellent
-
isValidRepellent
-