-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: Initial support for specifying disguise properties
- Loading branch information
1 parent
ae962fd
commit 3b37389
Showing
25 changed files
with
618 additions
and
52 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
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
16 changes: 15 additions & 1 deletion
16
src/main/java/xyz/nifeather/morph/misc/disguiseProperty/values/ArmorStandProperties.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 |
---|---|---|
@@ -1,13 +1,27 @@ | ||
package xyz.nifeather.morph.misc.disguiseProperty.values; | ||
|
||
import it.unimi.dsi.fastutil.Pair; | ||
import org.jetbrains.annotations.Nullable; | ||
import xyz.nifeather.morph.misc.disguiseProperty.SingleProperty; | ||
|
||
import java.util.Map; | ||
import java.util.concurrent.ConcurrentHashMap; | ||
|
||
public class ArmorStandProperties extends AbstractProperties | ||
{ | ||
public final SingleProperty<Boolean> SHOW_ARMS = getSingle("show_arms", false); | ||
public final SingleProperty<Boolean> SHOW_ARMS = getSingle("armor_stand_show_arms", false).withValidInput("true", "false"); | ||
|
||
public ArmorStandProperties() | ||
{ | ||
registerSingle(SHOW_ARMS); | ||
} | ||
|
||
@Override | ||
protected @Nullable Pair<SingleProperty<?>, Object> parseSingleInput(String key, String value) | ||
{ | ||
if (key.equals(SHOW_ARMS.id())) | ||
return Pair.of(SHOW_ARMS, Boolean.valueOf(value)); | ||
|
||
return null; | ||
} | ||
} |
Oops, something went wrong.