mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 15:37:59 +01:00
These don't have to be public
This commit is contained in:
parent
6f7164b3e1
commit
fd8c724f47
2 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@ public class BethlehemSkinServer extends AbstractSkinServer {
|
|||
}
|
||||
|
||||
@Override
|
||||
public MinecraftTexturesPayload getProfileData(GameProfile profile) {
|
||||
protected MinecraftTexturesPayload getProfileData(GameProfile profile) {
|
||||
try (NetClient client = new NetClient("GET", getPath(profile))) {
|
||||
if (client.getResponseCode() == HttpStatus.SC_OK) {
|
||||
return gson.fromJson(client.getResponseText(), MinecraftTexturesPayload.class);
|
||||
|
@ -44,7 +44,7 @@ public class BethlehemSkinServer extends AbstractSkinServer {
|
|||
}
|
||||
|
||||
@Override
|
||||
public SkinUploadResponse doUpload(Session session, URI image, Type type, Map<String, String> metadata) throws AuthenticationException, IOException {
|
||||
protected SkinUploadResponse doUpload(Session session, URI image, Type type, Map<String, String> metadata) throws AuthenticationException, IOException {
|
||||
SkinServer.verifyServerConnection(session, SERVER_ID);
|
||||
|
||||
try (NetClient client = new NetClient("POST", address)) {
|
||||
|
|
|
@ -61,7 +61,7 @@ public class LegacySkinServer extends AbstractSkinServer {
|
|||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public MinecraftTexturesPayload getProfileData(GameProfile profile) {
|
||||
protected MinecraftTexturesPayload getProfileData(GameProfile profile) {
|
||||
ImmutableMap.Builder<Type, MinecraftProfileTexture> builder = ImmutableMap.builder();
|
||||
|
||||
for (Type type : Type.values()) {
|
||||
|
@ -90,7 +90,7 @@ public class LegacySkinServer extends AbstractSkinServer {
|
|||
}
|
||||
|
||||
@Override
|
||||
public SkinUploadResponse doUpload(Session session, URI image, Type type, Map<String, String> metadata) throws AuthenticationException, IOException {
|
||||
protected SkinUploadResponse doUpload(Session session, URI image, Type type, Map<String, String> metadata) throws AuthenticationException, IOException {
|
||||
SkinServer.verifyServerConnection(session, SERVER_ID);
|
||||
|
||||
try (NetClient client = new NetClient("POST", address)) {
|
||||
|
|
Loading…
Reference in a new issue