Class BedrockAppearanceStore
java.lang.Object
com.viaversion.viafabricplus.bedrock.appearance.BedrockAppearanceStore
Stores the selected classic appearance separately for each Bedrock account.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaccountId(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) booleanhasCustomSkin(String accountId) booleanhasSavedAppearance(String accountId) importCape(String accountId, Path source) importPackSkin(String accountId, BedrockClassicSkinPack pack, BedrockClassicSkinPack.Skin selected, boolean slim) importPersona(String accountId, BedrockPersonaModel.Converted converted, String profileHash, String armSize, String skinColor, BedrockPersonaProfile profile) importSkin(String accountId, Path source) importSkinImage(String accountId, BufferedImage image, boolean slim) importSkinImage(String accountId, BufferedImage image, boolean slim, BedrockClassicModel model, BedrockClassicOptions options) initializeAccountCharacter(String accountId, BedrockCharacterProfiles.PreparedCharacter character) removeCape(String accountId) select(String accountId, BedrockAppearanceStore.Selection selection) booleanusesAccountCharacter(String accountId, BedrockCharacterProfiles.Slot slot)
-
Constructor Details
-
BedrockAppearanceStore
-
-
Method Details
-
accountId
-
load
- Throws:
IOException
-
hasCustomSkin
-
hasSavedAppearance
-
initializeAccountCharacter
public Optional<BedrockAppearanceStore.Appearance> initializeAccountCharacter(String accountId, BedrockCharacterProfiles.PreparedCharacter character) throws IOException - Throws:
IOException
-
select
public BedrockAppearanceStore.Appearance select(String accountId, BedrockAppearanceStore.Selection selection) throws IOException - Throws:
IOException
-
setSlim
- Throws:
IOException
-
importSkin
public BedrockAppearanceStore.Appearance importSkin(String accountId, Path source) throws IOException - Throws:
IOException
-
importSkinImage
public BedrockAppearanceStore.Appearance importSkinImage(String accountId, BufferedImage image, boolean slim) throws IOException - Throws:
IOException
-
importSkinImage
public BedrockAppearanceStore.Appearance importSkinImage(String accountId, BufferedImage image, boolean slim, BedrockClassicModel model, BedrockClassicOptions options) throws IOException - Throws:
IOException
-
importPackSkin
public BedrockAppearanceStore.Appearance importPackSkin(String accountId, BedrockClassicSkinPack pack, BedrockClassicSkinPack.Skin selected, boolean slim) throws IOException - Throws:
IOException
-
usesAccountCharacter
public boolean usesAccountCharacter(String accountId, BedrockCharacterProfiles.Slot slot) throws IOException - Throws:
IOException
-
importCape
public BedrockAppearanceStore.Appearance importCape(String accountId, Path source) throws IOException - Throws:
IOException
-
removeCape
- Throws:
IOException
-
importPersona
public BedrockAppearanceStore.Appearance importPersona(String accountId, BedrockPersonaModel.Converted converted, String profileHash, String armSize, String skinColor, BedrockPersonaProfile profile) throws IOException - Throws:
IOException
-