Class NearestItemSensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<Mob>
net.minecraft.world.entity.ai.sensing.NearestItemSensor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
private static final long
private static final long
Fields inherited from class net.minecraft.world.entity.ai.sensing.Sensor
TARGETING_RANGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doTick
(ServerLevel p_26697_, Mob p_26698_) Set
<MemoryModuleType<?>> requires()
Methods inherited from class net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, tick
-
Field Details
-
XZ_RANGE
private static final long XZ_RANGE- See Also:
-
Y_RANGE
private static final long Y_RANGE- See Also:
-
MAX_DISTANCE_TO_WANTED_ITEM
public static final int MAX_DISTANCE_TO_WANTED_ITEM- See Also:
-
-
Constructor Details
-
NearestItemSensor
public NearestItemSensor()
-
-
Method Details