- All Implemented Interfaces:
Runnable
, Listener
public class ClickRedirectTrait
extends Trait
Redirects left and right clicks to another
NPC
.
-
Field Summary
Fields inherited from class net.citizensnpcs.api.trait.Trait
npc
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class net.citizensnpcs.api.trait.Trait
getName, getNPC, isRunImplemented, linkToNPC, onAttach, onCopy, onDespawn, onDespawn, onPreSpawn, onRemove, onRemove, onSpawn, run
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ClickRedirectTrait
public ClickRedirectTrait()
-
ClickRedirectTrait
public ClickRedirectTrait(NPC npc)
-
Method Details
-
getRedirectNPC
public NPC getRedirectNPC()
-
load
Description copied from class: Trait
Loads a trait.
- Overrides:
load
in class Trait
- Parameters:
key
- DataKey to load from
-
-
save
Description copied from class: Trait
Saves a trait.
- Overrides:
save
in class Trait
- Parameters:
key
- DataKey to save to