Skip to content

Commit

Permalink
Add new traitfactory method
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Aug 20, 2019
1 parent 9754a6c commit 65f1a88
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/net/citizensnpcs/api/trait/TraitFactory.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package net.citizensnpcs.api.trait;

import java.util.Collection;

import net.citizensnpcs.api.npc.NPC;

public interface TraitFactory {
Expand All @@ -20,6 +22,13 @@ public interface TraitFactory {
*/
void deregisterTrait(TraitInfo info);

/**
* Returns all currently registered traits, including <em>internal</em> traits
*
* @return
*/
Collection<TraitInfo> getRegisteredTraits();

/**
* Gets a trait with the given class.
*
Expand Down

0 comments on commit 65f1a88

Please sign in to comment.