MCPcopy Create free account
hub / github.com/Teneted/Tenet / setTarget

Method setTarget

src/main/java/org/bukkit/entity/Mob.java:19–19  ·  view source on GitHub ↗

Instructs this Mob to set the specified LivingEntity as its target. Hostile creatures may attack their target, and friendly creatures may follow their target. @param target New LivingEntity to target, or null to clear the target

(@Nullable LivingEntity target)

Source from the content-addressed store, hash-verified

17 * @param target New LivingEntity to target, or null to clear the target
18 */
19 public void setTarget(@Nullable LivingEntity target);
20
21 /**
22 * Gets the current target of this Mob

Callers 2

setTargetMethod · 0.65
setTargetMethod · 0.65

Implementers 1

CraftMobsrc/main/java/org/bukkit/craftbukkit/v

Calls

no outgoing calls

Tested by

no test coverage detected