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 voiddoTick(ServerLevel level, LivingEntity entity) findNearestRepellent(ServerLevel level, LivingEntity livingEntity) private static booleanisValidRepellent(ServerLevel level, BlockPos pos) 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:
requiresin classSensor<LivingEntity>
-
doTick
- Specified by:
doTickin classSensor<LivingEntity>
-
findNearestRepellent
private static Optional<BlockPos> findNearestRepellent(ServerLevel level, LivingEntity livingEntity) -
isValidRepellent
-