-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update skin converter. Local skins. Add skin options
- Loading branch information
Showing
10 changed files
with
364 additions
and
46 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
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
25 changes: 25 additions & 0 deletions
25
src/main/java/org/mcphackers/launchwrapper/protocol/SkinOption.java
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,25 @@ | ||
package org.mcphackers.launchwrapper.protocol; | ||
|
||
public enum SkinOption { | ||
IGNORE_ALEX("ignoreAlex"), | ||
IGNORE_LAYERS("ignoreLayers"), | ||
REMOVE_HAT("removeHat"), | ||
USE_LEFT_ARM("useLeftArm"), | ||
USE_LEFT_LEG("useLeftLeg"); | ||
|
||
public String name; | ||
|
||
private SkinOption(String name) { | ||
this.name = name; | ||
} | ||
|
||
public static SkinOption getEnum(String name) { | ||
for(SkinOption skinType : values()) { | ||
if(skinType.name.equals(name)) { | ||
return skinType; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
} |
Oops, something went wrong.