MCPcopy Create free account
hub / github.com/CitizensDev/CitizensAPI / hasTrait

Method hasTrait

src/main/java/net/citizensnpcs/api/npc/NPC.java:269–269  ·  view source on GitHub ↗

Checks if this NPC has the given trait. @param trait Trait to check @return Whether this NPC has the given trait

(Class<? extends Trait> trait)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

processMethod · 0.95

Implementers 1

AbstractNPCsrc/main/java/net/citizensnpcs/api/npc

Calls

no outgoing calls

Tested by

no test coverage detected