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
Modifier and TypeFieldDescriptionprivate static final Random
private final int
private static final EntityPredicate
private static final EntityPredicate
private long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
doTick
(ServerWorld p_212872_1_, E p_212872_2_) protected static boolean
isEntityTargetable
(LivingEntity p_242316_0_, LivingEntity p_242316_1_) abstract Set<MemoryModuleType<?>>
requires()
final void
tick
(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
-