mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
formatting
This commit is contained in:
@@ -3,10 +3,10 @@ plugins {
|
||||
}
|
||||
|
||||
configurations {
|
||||
commonJava{
|
||||
commonJava {
|
||||
canBeResolved = true
|
||||
}
|
||||
commonResources{
|
||||
commonResources {
|
||||
canBeResolved = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
plugins {
|
||||
id 'multiloader-common'
|
||||
|
||||
|
||||
id 'fabric-loom'
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ loom {
|
||||
if (aw.exists()) {
|
||||
accessWidenerPath.set(aw)
|
||||
}
|
||||
|
||||
|
||||
mixin {
|
||||
useLegacyMixinAp = false
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
fabric.loom.dontRemap = true
|
||||
fabric.loom.dontRemap=true
|
||||
|
||||
@@ -36,6 +36,10 @@ public class SkinShuffleCompatibility {
|
||||
if (!property.hasSignature())
|
||||
return;
|
||||
|
||||
server.execute(() -> SkinRestorer.applySkin(server, Collections.singleton(player.getGameProfile()), new SkinValue(SkinShuffleSkinProvider.PROVIDER_NAME, null, null, property)));
|
||||
server.execute(() -> SkinRestorer.applySkin(
|
||||
server,
|
||||
Collections.singleton(player.getGameProfile()),
|
||||
new SkinValue(SkinShuffleSkinProvider.PROVIDER_NAME, null, null, property)
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,8 @@ import net.minecraft.network.codec.StreamCodec;
|
||||
import net.minecraft.network.protocol.common.custom.CustomPacketPayload;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public record SkinShuffleSkinRefreshV1Payload(Property textureProperty) implements CustomPacketPayload, SkinShuffleSkinRefreshPayload {
|
||||
public record SkinShuffleSkinRefreshV1Payload(
|
||||
Property textureProperty) implements CustomPacketPayload, SkinShuffleSkinRefreshPayload {
|
||||
|
||||
public static final CustomPacketPayload.Type<SkinShuffleSkinRefreshV1Payload> PACKET_ID = new CustomPacketPayload.Type<>(SkinShuffleCompatibility.resourceLocation("refresh"));
|
||||
public static final StreamCodec<FriendlyByteBuf, SkinShuffleSkinRefreshV1Payload> PACKET_CODEC = StreamCodec.of(
|
||||
|
||||
@@ -6,7 +6,8 @@ import net.minecraft.network.codec.StreamCodec;
|
||||
import net.minecraft.network.protocol.common.custom.CustomPacketPayload;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public record SkinShuffleSkinRefreshV2Payload(Property textureProperty) implements CustomPacketPayload, SkinShuffleSkinRefreshPayload {
|
||||
public record SkinShuffleSkinRefreshV2Payload(
|
||||
Property textureProperty) implements CustomPacketPayload, SkinShuffleSkinRefreshPayload {
|
||||
|
||||
public static final CustomPacketPayload.Type<SkinShuffleSkinRefreshV2Payload> PACKET_ID = new CustomPacketPayload.Type<>(SkinShuffleCompatibility.resourceLocation("skin_refresh"));
|
||||
public static final StreamCodec<FriendlyByteBuf, SkinShuffleSkinRefreshV2Payload> PACKET_CODEC = StreamCodec.of(
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
"compatibilityLevel": "JAVA_8",
|
||||
"refmap": "${mod_id}.refmap.json",
|
||||
"mixins": [
|
||||
"ChunkMapAccessor",
|
||||
"PlayerListMixin",
|
||||
"ServerLoginPacketListenerImplMixin",
|
||||
"ChunkMapAccessor",
|
||||
"TrackedEntityAccessorInvoker"
|
||||
],
|
||||
"injectors": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
plugins {
|
||||
id 'multiloader-loader'
|
||||
|
||||
|
||||
id 'fabric-loom'
|
||||
|
||||
id 'multiloader-publish'
|
||||
@@ -12,7 +12,7 @@ dependencies {
|
||||
parchment("org.parchmentmc.data:parchment-${parchment_minecraft}:${parchment_version}@zip")
|
||||
}
|
||||
modImplementation "net.fabricmc:fabric-loader:${fabric_loader_version}"
|
||||
|
||||
|
||||
modCompileOnly "net.fabricmc.fabric-api:fabric-api:${fabric_api_version}"
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ loom {
|
||||
if (aw.exists()) {
|
||||
accessWidenerPath.set(aw)
|
||||
}
|
||||
|
||||
|
||||
mixin {
|
||||
defaultRefmapName.set("${mod_id}.refmap.json")
|
||||
}
|
||||
|
||||
|
||||
runs {
|
||||
client {
|
||||
client()
|
||||
|
||||
@@ -2,7 +2,7 @@ plugins {
|
||||
id 'multiloader-loader'
|
||||
id 'idea'
|
||||
id 'eclipse'
|
||||
|
||||
|
||||
id 'net.minecraftforge.gradle'
|
||||
id 'org.parchmentmc.librarian.forgegradle'
|
||||
id 'org.spongepowered.mixin'
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package net.lionarius.skinrestorer.forge.compat.skinshuffle;
|
||||
|
||||
import net.lionarius.skinrestorer.SkinRestorer;
|
||||
import net.lionarius.skinrestorer.compat.skinshuffle.*;
|
||||
import net.lionarius.skinrestorer.compat.skinshuffle.SkinShuffleCompatibility;
|
||||
import net.lionarius.skinrestorer.compat.skinshuffle.*;
|
||||
import net.minecraft.network.Connection;
|
||||
import net.minecraft.network.protocol.common.custom.CustomPacketPayload;
|
||||
import net.minecraftforge.event.network.CustomPayloadEvent;
|
||||
|
||||
Reference in New Issue
Block a user