Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new API to avoid default skin fetching
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package net.citizensnpcs.trait; | ||
|
||
import net.citizensnpcs.api.persistence.Persist; | ||
import net.citizensnpcs.api.trait.Trait; | ||
import net.citizensnpcs.api.trait.TraitName; | ||
|
||
@TraitName("skintrait") | ||
public class SkinTrait extends Trait { | ||
@Persist | ||
private boolean fetchDefaultSkin = true; | ||
|
||
public SkinTrait() { | ||
super("skintrait"); | ||
} | ||
|
||
public boolean fetchDefaultSkin() { | ||
return fetchDefaultSkin; | ||
} | ||
|
||
public void setFetchDefaultSkin(boolean fetch) { | ||
this.fetchDefaultSkin = fetch; | ||
} | ||
} |