mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 22:38:00 +01:00
Merge branch 'master' of https://github.com/MineLittlePony/MineLittlePony
This commit is contained in:
commit
cf34174ac1
2 changed files with 14 additions and 30 deletions
|
@ -1,8 +1,5 @@
|
|||
package com.minelittlepony.render.player;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
import com.minelittlepony.MineLittlePony;
|
||||
import com.minelittlepony.PonyConfig;
|
||||
import com.minelittlepony.ducks.IRenderPony;
|
||||
|
@ -11,8 +8,8 @@ import com.minelittlepony.model.components.ModelDeadMau5Ears;
|
|||
import com.minelittlepony.pony.data.Pony;
|
||||
import com.minelittlepony.pony.data.PonyLevel;
|
||||
import com.minelittlepony.render.PonySkull;
|
||||
import com.minelittlepony.render.RenderPony;
|
||||
import com.minelittlepony.render.PonySkullRenderer.ISkull;
|
||||
import com.minelittlepony.render.RenderPony;
|
||||
import com.minelittlepony.render.layer.LayerEntityOnPonyShoulder;
|
||||
import com.minelittlepony.render.layer.LayerHeldPonyItemMagical;
|
||||
import com.minelittlepony.render.layer.LayerPonyArmor;
|
||||
|
@ -23,19 +20,19 @@ import com.mojang.authlib.GameProfile;
|
|||
import com.mojang.authlib.minecraft.MinecraftProfileTexture;
|
||||
import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;
|
||||
import com.voxelmodpack.hdskins.HDSkinManager;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.entity.AbstractClientPlayer;
|
||||
import net.minecraft.client.renderer.GlStateManager;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
|
||||
import net.minecraft.client.resources.DefaultPlayerSkin;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.EnumHandSide;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderPlayer;
|
||||
import net.minecraft.client.renderer.entity.layers.LayerArrow;
|
||||
import net.minecraft.client.resources.DefaultPlayerSkin;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
public class RenderPonyPlayer extends RenderPlayer implements IRenderPony<AbstractClientPlayer> {
|
||||
|
||||
|
@ -84,9 +81,11 @@ public class RenderPonyPlayer extends RenderPlayer implements IRenderPony<Abstra
|
|||
}.register(ISkull.PLAYER);
|
||||
|
||||
protected final RenderPony<AbstractClientPlayer> renderPony = new RenderPony<>(this);
|
||||
private final RenderPlayer renderPlayer;
|
||||
|
||||
public RenderPonyPlayer(RenderManager manager, boolean useSmallArms, ModelWrapper model) {
|
||||
super(manager, useSmallArms);
|
||||
renderPlayer = new RenderPlayer(manager, useSmallArms);
|
||||
|
||||
mainModel = renderPony.setPonyModel(model);
|
||||
|
||||
|
@ -143,27 +142,12 @@ public class RenderPonyPlayer extends RenderPlayer implements IRenderPony<Abstra
|
|||
|
||||
@Override
|
||||
public final void renderRightArm(AbstractClientPlayer player) {
|
||||
renderArm(player, EnumHandSide.RIGHT);
|
||||
renderPlayer.renderRightArm(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public final void renderLeftArm(AbstractClientPlayer player) {
|
||||
renderArm(player, EnumHandSide.LEFT);
|
||||
}
|
||||
|
||||
protected void renderArm(AbstractClientPlayer player, EnumHandSide side) {
|
||||
renderPony.updateModel(player);
|
||||
bindEntityTexture(player);
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.translate(side == EnumHandSide.LEFT ? 0.06 : 0, -0.37, 0);
|
||||
|
||||
if (side == EnumHandSide.LEFT) {
|
||||
super.renderLeftArm(player);
|
||||
} else {
|
||||
super.renderRightArm(player);
|
||||
}
|
||||
|
||||
GlStateManager.popMatrix();
|
||||
renderPlayer.renderLeftArm(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -18,7 +18,7 @@ minelp.mobs.pigzombies=Понифицировать свинозомби
|
|||
minelp.mobs.skeletons=Понифицировать скелетов
|
||||
minelp.mobs.illagers=Понифицировать обитателей Особняка
|
||||
minelp.mobs.guardians=Понифицировать Стражей
|
||||
minelp.mobs.endermen=Понифицировать Эндермен
|
||||
minelp.mobs.endermen=Понифицировать Странников Края
|
||||
|
||||
minelp.mode.dry=Земля пони
|
||||
minelp.mode.wet=Морской пони
|
||||
minelp.mode.dry=Пони на земле
|
||||
minelp.mode.wet=Пони под водой
|
||||
|
|
Loading…
Reference in a new issue