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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doTick
(ServerLevel pLevel, LivingEntity pEntity) findNearestRepellent
(ServerLevel pLevel, LivingEntity pLivingEntity) private static boolean
isValidRepellent
(ServerLevel pLevel, BlockPos pPos) 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
private static Optional<BlockPos> findNearestRepellent(ServerLevel pLevel, LivingEntity pLivingEntity) -
isValidRepellent
-