net.minecraft.world.entity.ai.sensing

public class NearestItemSensor

extends Sensor<Mob>

cgi
net.minecraft.world.entity.ai.sensing.NearestItemSensor
net.minecraft.class_4833
net.minecraft.entity.ai.brain.sensor.NearestItemsSensor
net.minecraft.world.entity.ai.sensing.SensorNearestItems

Field summary

Modifier and TypeField
private static final long
b
XZ_RANGE
field_30255
HORIZONTAL_RANGE
private static final long
c
Y_RANGE
field_30256
VERTICAL_RANGE
public static final int
a
MAX_DISTANCE_TO_WANTED_ITEM
field_30254
MAX_RANGE

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public Set<MemoryModuleType<?>>
a()
requires()
method_19099()
getOutputMemoryModules()
protected void
a(ash arg0, bwi arg1)
doTick(ServerLevel arg0, Mob arg1)
method_24645(class_3218 arg0, class_1308 arg1)
sense(ServerWorld arg0, MobEntity arg1)