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

Method addTrait

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

Adds a trait to this NPC. This will use the TraitFactory defined for this NPC to construct and attach a trait using #addTrait(Trait). @param trait The class of the trait to add

(Class<? extends Trait> trait)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

acceptMethod · 0.65

Implementers 1

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

Calls

no outgoing calls

Tested by

no test coverage detected