net.minecraft.entity.ai.goal

public class RevengeGoal

extends TrackTargetGoal

net.minecraft.world.entity.ai.goal.target.HurtByTargetGoal
net.minecraft.class_1399
net.minecraft.entity.ai.goal.RevengeGoal

Field summary

Modifier and TypeField
private static final TargetPredicate
HURT_BY_TARGETING
field_18091
VALID_AVOIDABLES_PREDICATE
private static final int
ALERT_RANGE_Y
field_30230
BOX_VERTICAL_EXPANSION
private boolean
alertSameType
field_6639
groupRevenge
private int
timestamp
field_6638
lastAttackedTime
private final Class<?>[]
toIgnoreDamage
field_6637
noRevengeTypes
private Class<?>[]
toIgnoreAlert
field_6640
noHelpTypes

Constructor summary

ModifierConstructor
public (PathAwareEntity mob, Class<?>... noRevengeTypes)

Method summary

Modifier and TypeMethod
public boolean
canUse()
method_6264()
canStart()
public RevengeGoal
setAlertOthers(Class<?>... exceptTheseTypes)
method_6318(Class<?>... arg0)
setGroupRevenge(Class<?>... noHelpTypes)
public void
start()
method_6269()
start()
protected void
alertOthers()
method_6317()
callSameTypeForRevenge()
protected void
alertOther(Mob other, LivingEntity hurtByMob)
method_6319(class_1308 arg0, class_1309 arg1)
setMobEntityTarget(MobEntity mob, LivingEntity target)