Class TemptingSensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<PathfinderMob>
net.minecraft.world.entity.ai.sensing.TemptingSensor
-
Field Summary
Modifier and TypeFieldDescriptionprivate static TargetingConditions
static int
private Ingredient
Fields inherited from class net.minecraft.world.entity.ai.sensing.Sensor
TARGETING_RANGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doTick(ServerLevel p_148331_, PathfinderMob p_148332_)
private boolean
isTemptation(ItemStack p_148339_)
private boolean
playerHoldingTemptation(Player p_148337_)
Set<MemoryModuleType<?>>
requires()
Methods inherited from class net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, tick
-
Field Details
-
TEMPTATION_RANGE
public static final int TEMPTATION_RANGE- See Also:
- Constant Field Values
-
TEMPT_TARGETING
-
temptations
-
-
Constructor Details
-
TemptingSensor
-
-
Method Details
-
doTick
- Specified by:
doTick
in classSensor<PathfinderMob>
-
playerHoldingTemptation
-
isTemptation
-
requires
- Specified by:
requires
in classSensor<PathfinderMob>
-