mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 13:57:59 +01:00
1.20.2-rc1 -> 1.20.2
This commit is contained in:
parent
34087bd105
commit
a94137fda9
10 changed files with 19 additions and 19 deletions
|
@ -3,10 +3,10 @@ org.gradle.daemon=false
|
||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/develop
|
# check these on https://fabricmc.net/develop
|
||||||
minecraft_version=1.20.2-rc1
|
minecraft_version=1.20.2
|
||||||
yarn_mappings=1.20.2-rc1+build.2
|
yarn_mappings=1.20.2+build.4
|
||||||
loader_version=0.14.22
|
loader_version=0.15.1
|
||||||
fabric_version=0.88.5+1.20.2
|
fabric_version=0.91.1+1.20.2
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
group=com.minelittlepony
|
group=com.minelittlepony
|
||||||
|
@ -20,7 +20,7 @@ org.gradle.daemon=false
|
||||||
modrinth_project_id=JBjInUXM
|
modrinth_project_id=JBjInUXM
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
modmenu_version=8.0.0-beta.1
|
modmenu_version=8.0.0
|
||||||
kirin_version=1.16.0+1.20.2
|
kirin_version=1.16.0+1.20.2
|
||||||
hd_skins_version=6.11.0+1.20.2
|
hd_skins_version=6.11.0+1.20.2
|
||||||
mson_version=1.9.1
|
mson_version=1.9.1
|
||||||
|
|
|
@ -30,7 +30,7 @@ public final class DefaultPonySkinHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getModelType(UUID id) {
|
public static String getModelType(UUID id) {
|
||||||
SkinTextures textures = DefaultSkinHelper.getTexture(id);
|
SkinTextures textures = DefaultSkinHelper.getSkinTextures(id);
|
||||||
return getModelType(Pony.getManager().getPony(textures.texture(), id).race(), textures.model());
|
return getModelType(Pony.getManager().getPony(textures.texture(), id).race(), textures.model());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,16 +79,16 @@ public class PonyManagerImpl implements PonyManager, SimpleSynchronousResourceRe
|
||||||
@Override
|
@Override
|
||||||
public Pony getBackgroundPony(@Nullable UUID uuid) {
|
public Pony getBackgroundPony(@Nullable UUID uuid) {
|
||||||
if (config.ponyLevel.get() == PonyLevel.PONIES) {
|
if (config.ponyLevel.get() == PonyLevel.PONIES) {
|
||||||
return loadPony(MineLittlePony.getInstance().getVariatedTextures().get(VariatedTextureSupplier.BACKGROUND_PONIES_POOL, uuid).orElse(DefaultSkinHelper.getTexture(uuid).texture()), true);
|
return loadPony(MineLittlePony.getInstance().getVariatedTextures().get(VariatedTextureSupplier.BACKGROUND_PONIES_POOL, uuid).orElse(DefaultSkinHelper.getSkinTextures(uuid).texture()), true);
|
||||||
}
|
}
|
||||||
return loadPony(DefaultSkinHelper.getTexture(uuid).texture(), true);
|
return loadPony(DefaultSkinHelper.getSkinTextures(uuid).texture(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
private Identifier getSkin(LivingEntity entity) {
|
private Identifier getSkin(LivingEntity entity) {
|
||||||
if (entity instanceof PlayerEntity player) {
|
if (entity instanceof PlayerEntity player) {
|
||||||
if (player.getGameProfile() != null && player instanceof AbstractClientPlayerEntity clientPlayer) {
|
if (player.getGameProfile() != null && player instanceof AbstractClientPlayerEntity clientPlayer) {
|
||||||
return clientPlayer.method_52814().texture();
|
return clientPlayer.getSkinTextures().texture();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (MineLittlePony.getInstance().getRenderDispatcher().getPonyRenderer(entity) != null) {
|
if (MineLittlePony.getInstance().getRenderDispatcher().getPonyRenderer(entity) != null) {
|
||||||
|
|
|
@ -26,7 +26,7 @@ abstract class MixinDefaultSkinHelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "getTexture(Ljava/util/UUID;)Lnet/minecraft/client/util/SkinTextures;",
|
@Inject(method = "getSkinTextures(Ljava/util/UUID;)Lnet/minecraft/client/util/SkinTextures;",
|
||||||
at = @At("RETURN"),
|
at = @At("RETURN"),
|
||||||
cancellable = true)
|
cancellable = true)
|
||||||
private static void onGetTexture(UUID uuid, CallbackInfoReturnable<SkinTextures> cir) {
|
private static void onGetTexture(UUID uuid, CallbackInfoReturnable<SkinTextures> cir) {
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class PonyRenderDispatcher {
|
||||||
player -> {
|
player -> {
|
||||||
return !Pony.getManager().getPony(player).race().isHuman()
|
return !Pony.getManager().getPony(player).race().isHuman()
|
||||||
&& PonyPosture.hasSeaponyForm(player)
|
&& PonyPosture.hasSeaponyForm(player)
|
||||||
&& player.method_52814().model() == armShape;
|
&& player.getSkinTextures().model() == armShape;
|
||||||
},
|
},
|
||||||
context -> new AquaticPlayerPonyRenderer(context, armShape == SkinTextures.Model.SLIM)
|
context -> new AquaticPlayerPonyRenderer(context, armShape == SkinTextures.Model.SLIM)
|
||||||
);
|
);
|
||||||
|
@ -55,7 +55,7 @@ public class PonyRenderDispatcher {
|
||||||
player -> {
|
player -> {
|
||||||
return !Pony.getManager().getPony(player).race().isHuman()
|
return !Pony.getManager().getPony(player).race().isHuman()
|
||||||
&& PonyPosture.hasNirikForm(player)
|
&& PonyPosture.hasNirikForm(player)
|
||||||
&& player.method_52814().model() == armShape;
|
&& player.getSkinTextures().model() == armShape;
|
||||||
},
|
},
|
||||||
context -> new FormChangingPlayerPonyRenderer(context, armShape == SkinTextures.Model.SLIM, DefaultPonySkinHelper.NIRIK_SKIN_TYPE_ID, PonyPosture::isNirikModifier)
|
context -> new FormChangingPlayerPonyRenderer(context, armShape == SkinTextures.Model.SLIM, DefaultPonySkinHelper.NIRIK_SKIN_TYPE_ID, PonyPosture::isNirikModifier)
|
||||||
);
|
);
|
||||||
|
@ -64,7 +64,7 @@ public class PonyRenderDispatcher {
|
||||||
player -> {
|
player -> {
|
||||||
return !Pony.getManager().getPony(player).race().isHuman()
|
return !Pony.getManager().getPony(player).race().isHuman()
|
||||||
&& !PonyPosture.hasSeaponyForm(player) && !PonyPosture.hasNirikForm(player)
|
&& !PonyPosture.hasSeaponyForm(player) && !PonyPosture.hasNirikForm(player)
|
||||||
&& player.method_52814().model() == armShape;
|
&& player.getSkinTextures().model() == armShape;
|
||||||
},
|
},
|
||||||
context -> new PlayerPonyRenderer(context, armShape == SkinTextures.Model.SLIM)
|
context -> new PlayerPonyRenderer(context, armShape == SkinTextures.Model.SLIM)
|
||||||
);
|
);
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class PlayerPonySkull implements ISkull {
|
||||||
return skin;
|
return skin;
|
||||||
}
|
}
|
||||||
|
|
||||||
return DefaultSkinHelper.getTexture(profile).texture();
|
return DefaultSkinHelper.getSkinTextures(profile).texture();
|
||||||
}
|
}
|
||||||
|
|
||||||
return DefaultSkinHelper.getTexture();
|
return DefaultSkinHelper.getTexture();
|
||||||
|
|
|
@ -150,7 +150,7 @@ public class PlayerPonyRenderer extends PlayerEntityRenderer implements PonyRend
|
||||||
stack.translate(reflect * 0.1F, -0.54F, 0);
|
stack.translate(reflect * 0.1F, -0.54F, 0);
|
||||||
|
|
||||||
Identifier texture = getTexture(player);
|
Identifier texture = getTexture(player);
|
||||||
Identifier playerSkin = player.method_52814().texture();
|
Identifier playerSkin = player.getSkinTextures().texture();
|
||||||
VertexConsumerProvider interceptedContext = layer -> {
|
VertexConsumerProvider interceptedContext = layer -> {
|
||||||
return renderContext.getBuffer(RenderLayerUtil
|
return renderContext.getBuffer(RenderLayerUtil
|
||||||
.getTexture(layer)
|
.getTexture(layer)
|
||||||
|
|
|
@ -26,7 +26,7 @@ public class CapeFeature<M extends ClientPonyModel<AbstractClientPlayerEntity>>
|
||||||
M model = getModelWrapper().body();
|
M model = getModelWrapper().body();
|
||||||
|
|
||||||
if (!player.isInvisible()
|
if (!player.isInvisible()
|
||||||
&& player.isPartVisible(PlayerModelPart.CAPE) && player.method_52814().capeTexture() != null
|
&& player.isPartVisible(PlayerModelPart.CAPE) && player.getSkinTextures().capeTexture() != null
|
||||||
&& player.getEquippedStack(EquipmentSlot.CHEST).getItem() != Items.ELYTRA) {
|
&& player.getEquippedStack(EquipmentSlot.CHEST).getItem() != Items.ELYTRA) {
|
||||||
|
|
||||||
stack.push();
|
stack.push();
|
||||||
|
@ -64,7 +64,7 @@ public class CapeFeature<M extends ClientPonyModel<AbstractClientPlayerEntity>>
|
||||||
stack.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(180));
|
stack.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(180));
|
||||||
stack.multiply(RotationAxis.POSITIVE_X.rotationDegrees(90));
|
stack.multiply(RotationAxis.POSITIVE_X.rotationDegrees(90));
|
||||||
|
|
||||||
VertexConsumer vertices = renderContext.getBuffer(RenderLayer.getEntitySolid(player.method_52814().capeTexture()));
|
VertexConsumer vertices = renderContext.getBuffer(RenderLayer.getEntitySolid(player.getSkinTextures().capeTexture()));
|
||||||
model.renderCape(stack, vertices, lightUv, OverlayTexture.DEFAULT_UV);
|
model.renderCape(stack, vertices, lightUv, OverlayTexture.DEFAULT_UV);
|
||||||
stack.pop();
|
stack.pop();
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class DJPon3Feature<T extends AbstractClientPlayerEntity, M extends Entit
|
||||||
|
|
||||||
deadMau5.setVisible(true);
|
deadMau5.setVisible(true);
|
||||||
|
|
||||||
VertexConsumer vertices = renderContext.getBuffer(deadMau5.getLayer(entity.method_52814().texture()));
|
VertexConsumer vertices = renderContext.getBuffer(deadMau5.getLayer(entity.getSkinTextures().texture()));
|
||||||
|
|
||||||
deadMau5.render(stack, vertices, OverlayTexture.DEFAULT_UV, lightUv, limbDistance, limbAngle, tickDelta, 1);
|
deadMau5.render(stack, vertices, OverlayTexture.DEFAULT_UV, lightUv, limbDistance, limbAngle, tickDelta, 1);
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ public class ElytraFeature<T extends LivingEntity, M extends EntityModel<T> & Po
|
||||||
|
|
||||||
protected Identifier getElytraTexture(T entity) {
|
protected Identifier getElytraTexture(T entity) {
|
||||||
if (entity instanceof AbstractClientPlayerEntity player) {
|
if (entity instanceof AbstractClientPlayerEntity player) {
|
||||||
SkinTextures textures = player.method_52814();
|
SkinTextures textures = player.getSkinTextures();
|
||||||
|
|
||||||
if (textures.elytraTexture() != null) {
|
if (textures.elytraTexture() != null) {
|
||||||
return textures.elytraTexture();
|
return textures.elytraTexture();
|
||||||
|
|
Loading…
Reference in a new issue