net.minecraft.world.entity.ai.sensing

public class TemptingSensor

extends Sensor<PathfinderMob>

cgs
net.minecraft.world.entity.ai.sensing.TemptingSensor
net.minecraft.class_5760
net.minecraft.entity.ai.brain.sensor.TemptationsSensor
net.minecraft.world.entity.ai.sensing.TemptingSensor

Field summary

Modifier and TypeField
private static final TargetingConditions
a
TEMPT_TARGETING
field_28330
TEMPTER_PREDICATE
private final Predicate<ItemStack>
b
temptations
field_28331
predicate

Constructor summary

ModifierConstructor
public (Predicate<ItemStack> predicate)

Method summary

Modifier and TypeMethod
protected void
a(ash arg0, bwo arg1)
doTick(ServerLevel arg0, PathfinderMob arg1)
method_33213(class_3218 arg0, class_1314 arg1)
sense(ServerWorld arg0, PathAwareEntity arg1)
private boolean
a(cpx arg0)
playerHoldingTemptation(Player arg0)
method_33215(class_1657 arg0)
test(PlayerEntity player)
private boolean
a(cxp arg0)
isTemptation(ItemStack arg0)
method_33216(class_1799 arg0)
test(ItemStack stack)
public Set<MemoryModuleType<?>>
a()
requires()
method_19099()
getOutputMemoryModules()