Class Sensor<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<E>
- Direct Known Subclasses:
DummySensor,GolemLastSeenSensor,HoglinMobsSensor,HurtBySensor,MateSensor,NearestBedSensor,NearestLivingEntitiesSensor,NearestPlayersSensor,PiglinBruteSpecificSensor,PiglinMobsSensor,SecondaryPositionSensor,VillagerBabiesSensor,VillagerHostilesSensor,WantedItemsSensor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Randomprivate final intprivate static final EntityPredicateprivate static final EntityPredicateprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoTick(ServerWorld p_212872_1_, E p_212872_2_) protected static booleanisEntityTargetable(LivingEntity p_242316_0_, LivingEntity p_242316_1_) abstract Set<MemoryModuleType<?>>requires()final voidtick(ServerWorld p_220973_1_, E p_220973_2_)
-
Field Details
-
RANDOM
-
TARGET_CONDITIONS
-
TARGET_CONDITIONS_IGNORE_INVISIBILITY_TESTING
-
scanRate
private final int scanRate -
timeToTick
private long timeToTick
-
-
Constructor Details
-
Sensor
public Sensor(int p_i50301_1_) -
Sensor
public Sensor()
-
-
Method Details
-
tick
-
doTick
-
requires
-
isEntityTargetable
-