Class GolemSensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<LivingEntity>
net.minecraft.world.entity.ai.sensing.GolemSensor
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static int
Fields inherited from class net.minecraft.world.entity.ai.sensing.Sensor
TARGETING_RANGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkForNearbyGolem(LivingEntity p_26648_)
protected void
doTick(ServerLevel p_26645_, LivingEntity p_26646_)
static void
golemDetected(LivingEntity p_26650_)
Set<MemoryModuleType<?>>
requires()
Methods inherited from class net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, tick
-
Field Details
-
GOLEM_SCAN_RATE
private static final int GOLEM_SCAN_RATE- See Also:
- Constant Field Values
-
MEMORY_TIME_TO_LIVE
private static final int MEMORY_TIME_TO_LIVE- See Also:
- Constant Field Values
-
-
Constructor Details
-
GolemSensor
public GolemSensor() -
GolemSensor
public GolemSensor(int p_26642_)
-
-
Method Details
-
doTick
- Specified by:
doTick
in classSensor<LivingEntity>
-
requires
- Specified by:
requires
in classSensor<LivingEntity>
-
checkForNearbyGolem
-
golemDetected
-