-
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.
fix: 对于克隆出来的伪装,MorphManager仍然会对其设定随机的伪装属性
misc: 使用DisguieProperty替换原本的WrapperAttribute
- Loading branch information
1 parent
ebe9c3a
commit ac0ff84
Showing
12 changed files
with
163 additions
and
196 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
48 changes: 0 additions & 48 deletions
48
src/main/java/xyz/nifeather/morph/backends/WrapperAttribute.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/main/java/xyz/nifeather/morph/backends/WrapperProperties.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,17 @@ | ||
package xyz.nifeather.morph.backends; | ||
|
||
import com.mojang.authlib.GameProfile; | ||
import net.minecraft.nbt.CompoundTag; | ||
import xyz.nifeather.morph.misc.disguiseProperty.SingleProperty; | ||
|
||
import java.util.Optional; | ||
|
||
public class WrapperProperties | ||
{ | ||
public static final SingleProperty<String> DISGUISE_ID = SingleProperty.of("wrapper_disguiseIdentifier", "nil"); | ||
public static final SingleProperty<Optional<GameProfile>> PROFILE = SingleProperty.of("wrapper_profile", Optional.empty()); | ||
public static final SingleProperty<CompoundTag> NBT = SingleProperty.of("wrapper_nbt", new CompoundTag()); | ||
public static final SingleProperty<Boolean> DISPLAY_FAKE_EQUIP = SingleProperty.of("wrapper_display_fake_equip", false); | ||
public static final SingleProperty<String> DISGUISE_NAME = SingleProperty.of("wrapper_disguise_name", ""); | ||
public static final SingleProperty<Boolean> SADDLED = SingleProperty.of("wrapper_saddled", false); | ||
} |
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
Oops, something went wrong.