net.minecraft.world.entity.ai.sensing

public class TemptingSensor

extends Sensor<PathfinderMob>

ced
net.minecraft.world.entity.ai.sensing.TemptingSensor
net.minecraft.class_5760
net.minecraft.entity.ai.brain.sensor.TemptationsSensor
net.minecraft.src.C_141106_
net.minecraft.world.entity.ai.sensing.TemptingSensor

Field summary

Modifier and TypeField
public static final int
a
TEMPTATION_RANGE
field_30262
MAX_DISTANCE
f_148320_
private static final TargetingConditions
c
TEMPT_TARGETING
field_28330
TEMPTER_PREDICATE
f_148321_
private final Predicate<ItemStack>
d
temptations
field_28331
predicate
f_148322_

Constructor summary

ModifierConstructor
public (Predicate<ItemStack> predicate)

Method summary

Modifier and TypeMethod
protected void
a(arf arg0, bua arg1)
doTick(ServerLevel arg0, PathfinderMob arg1)
method_33213(class_3218 arg0, class_1314 arg1)
sense(ServerWorld arg0, PathAwareEntity arg1)
m_5578_(C_12_ p_148332_, C_533_ arg1)
private boolean
a(cmz arg0)
playerHoldingTemptation(Player arg0)
method_33215(class_1657 arg0)
test(PlayerEntity player)
m_148336_(C_1141_ arg0)
private boolean
a(cur arg0)
isTemptation(ItemStack arg0)
method_33216(class_1799 arg0)
test(ItemStack stack)
m_148338_(C_1391_ arg0)
public Set<MemoryModuleType<?>>
a()
requires()
method_19099()
getOutputMemoryModules()
m_7163_()