net.minecraft.entity.ai.goal

public class TemptGoal

extends Goal

net.minecraft.world.entity.ai.goal.TemptGoal
net.minecraft.class_1391
net.minecraft.entity.ai.goal.TemptGoal

Field summary

Modifier and TypeField
private static final TargetPredicate
TEMPT_TARGETING
field_18090
TEMPTING_ENTITY_PREDICATE
private static final double
DEFAULT_STOP_DISTANCE
field_59677
DEFAULT_RANGE
private final TargetPredicate
targetingConditions
field_28404
predicate
protected final MobEntity
mob
field_6616
mob
protected final double
speedModifier
field_6615
speed
private double
px
field_6614
lastPlayerX
private double
py
field_6611
lastPlayerY
private double
pz
field_6621
lastPlayerZ
private double
pRotX
field_6619
lastPlayerPitch
private double
pRotY
field_6618
lastPlayerYaw
protected PlayerEntity
player
field_6617
closestPlayer
private int
calmDown
field_6612
cooldown
private boolean
isRunning
field_6613
active
private final Predicate<ItemStack>
items
field_6622
temptItemPredicate
private final boolean
canScare
field_6620
canBeScared
private final double
stopDistance
field_59678
range

Constructor summary

ModifierConstructor
public (PathAwareEntity entity, double speed, Predicate<ItemStack> temptItemPredicate, boolean canBeScared)
public (PathAwareEntity entity, double speed, Predicate<ItemStack> temptItemPredicate, boolean canBeScared, double range)
private (MobEntity mob, double speed, Predicate<ItemStack> temptItemPredicate, boolean canBeScared, double range)

Method summary

Modifier and TypeMethod
public boolean
canUse()
method_6264()
canStart()
private boolean
shouldFollow(LivingEntity player)
method_6312(class_1309 arg0)
isTemptedBy(LivingEntity entity)
public boolean
canContinueToUse()
method_6266()
shouldContinue()
protected boolean
canScare()
method_16081()
canBeScared()
public void
start()
method_6269()
start()
public void
stop()
method_6270()
stop()
public void
tick()
method_6268()
tick()
protected void
stopNavigation()
method_70685()
stopMoving()
protected void
navigateTowards(Player player)
method_70684(class_1657 arg0)
startMovingTo(PlayerEntity player)
public boolean
isRunning()
method_6313()
isActive()
private boolean
lambda$new$0(LivingEntity arg0, ServerLevel arg1)
method_1_131(class_1309 arg0, class_3218 arg1)
method_1_131(LivingEntity arg0, ServerWorld arg1)