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 int
private static long
private static 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:
- Constant Field Values
-
Y_RANGE
private static final long Y_RANGE- See Also:
- Constant Field Values
-
MAX_DISTANCE_TO_WANTED_ITEM
public static final int MAX_DISTANCE_TO_WANTED_ITEM- See Also:
- Constant Field Values
-
-
Constructor Details
-
NearestItemSensor
public NearestItemSensor()
-
-
Method Details