Class Sensor<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<E>
- Direct Known Subclasses:
DummySensor
,GolemLastSeenSensor
,HoglinSpecificSensor
,HurtBySensor
,NearestBedSensor
,NearestItemsSensor
,NearestLivingEntitiesSensor
,NearestPlayersSensor
,NearestVisibleAdultSensor
,PiglinBruteSpecificSensor
,PiglinSpecificSensor
,SecondaryPointsOfInterestSensor
,VillagerBabiesSensor
,VillagerHostilesSensor
public abstract class Sensor<E extends LivingEntity> extends Object
-
Field Summary
Fields Modifier and Type Field Description private static TargetPredicate
field_26630
private static TargetPredicate
field_26631
private long
lastSenseTime
private static Random
RANDOM
private int
senseInterval
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description abstract Set<MemoryModuleType<?>>
getOutputMemoryModules()
protected static boolean
method_30954(LivingEntity livingEntity, LivingEntity livingEntity2)
protected abstract void
sense(ServerWorld world, E entity)
void
tick(ServerWorld serverWorld, E entity)
-
Field Details
-
RANDOM
-
field_26630
-
field_26631
-
senseInterval
private final int senseInterval -
lastSenseTime
private long lastSenseTime
-
-
Constructor Details
-
Sensor
public Sensor(int senseInterval) -
Sensor
public Sensor()
-
-
Method Details
-
tick
-
sense
-
getOutputMemoryModules
-
method_30954
-