Add missing Override's

This commit is contained in:
Matthew Messinger 2016-04-06 22:13:05 -04:00
parent 1d5e22040b
commit 64b578bc70
7 changed files with 14 additions and 2 deletions

View file

@ -104,10 +104,12 @@ public final class HDSkinManager {
ThreadDownloadImageData threaddownloadimagedata = new ThreadDownloadImageData(file2, texture.getUrl(), ThreadDownloadImageData threaddownloadimagedata = new ThreadDownloadImageData(file2, texture.getUrl(),
DefaultPlayerSkin.getDefaultSkinLegacy(), DefaultPlayerSkin.getDefaultSkinLegacy(),
new IImageBuffer() { new IImageBuffer() {
@Override
public BufferedImage parseUserSkin(BufferedImage image) { public BufferedImage parseUserSkin(BufferedImage image) {
return imagebufferdownload.parseUserSkin(image); return imagebufferdownload.parseUserSkin(image);
} }
@Override
public void skinAvailable() { public void skinAvailable() {
imagebufferdownload.skinAvailable(); imagebufferdownload.skinAvailable();
if (callback != null) { if (callback != null) {

View file

@ -3,7 +3,6 @@ package com.brohoof.minelittlepony.mixin;
import static net.minecraft.client.renderer.GlStateManager.scale; import static net.minecraft.client.renderer.GlStateManager.scale;
import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.Inject;
@ -66,7 +65,7 @@ public abstract class MixinRenderPlayer extends RendererLivingEntity<AbstractCli
* @reason render a pony instead of a human * @reason render a pony instead of a human
* @author JoyJoy * @author JoyJoy
*/ */
@Overwrite @Override
public void doRender(AbstractClientPlayer player, double x, double y, double z, float yaw, float partialTicks) { public void doRender(AbstractClientPlayer player, double x, double y, double z, float yaw, float partialTicks) {
updateModel(player); updateModel(player);
ItemStack currentItemStack = player.inventory.getCurrentItem(); ItemStack currentItemStack = player.inventory.getCurrentItem();

View file

@ -64,6 +64,7 @@ public class UnicornHorn extends AbstractHeadPart implements PonyModelConstants
} }
} }
@Override
protected void position(float posX, float posY, float posZ) { protected void position(float posX, float posY, float posZ) {
AbstractPonyModel.setRotationPoint(this.horn, posX, posY, posZ); AbstractPonyModel.setRotationPoint(this.horn, posX, posY, posZ);
for (int i = 0; i < this.hornglow.length; i++) { for (int i = 0; i < this.hornglow.length; i++) {
@ -71,6 +72,7 @@ public class UnicornHorn extends AbstractHeadPart implements PonyModelConstants
} }
} }
@Override
protected void rotate(float rotX, float rotY) { protected void rotate(float rotX, float rotY) {
this.horn.rotateAngleX = rotX + 0.5F; this.horn.rotateAngleX = rotX + 0.5F;

View file

@ -559,6 +559,7 @@ public class ModelPlayerPony extends AbstractPonyModel implements PonyModelConst
} }
} }
@Override
protected void initTextures() { protected void initTextures() {
this.Tail = new PlaneRenderer[21]; this.Tail = new PlaneRenderer[21];
@ -653,6 +654,7 @@ public class ModelPlayerPony extends AbstractPonyModel implements PonyModelConst
this.Tail[20] = new PlaneRenderer(this, 32, 0); this.Tail[20] = new PlaneRenderer(this, 32, 0);
} }
@Override
protected void initPositions(float yOffset, float stretch) { protected void initPositions(float yOffset, float stretch) {
this.initHeadPositions(yOffset, stretch); this.initHeadPositions(yOffset, stretch);
this.initBodyPositions(yOffset, stretch); this.initBodyPositions(yOffset, stretch);

View file

@ -27,6 +27,7 @@ public class HornGlowRenderer extends ModelRenderer {
} }
@Override
public HornGlowRenderer addBox(String par1Str, float par2, float par3, float par4, int par5, int par6, int par7) { public HornGlowRenderer addBox(String par1Str, float par2, float par3, float par4, int par5, int par6, int par7) {
par1Str = this.boxName + "." + par1Str; par1Str = this.boxName + "." + par1Str;
TextureOffset var8 = this.baseModel.getTextureOffset(par1Str); TextureOffset var8 = this.baseModel.getTextureOffset(par1Str);
@ -35,11 +36,13 @@ public class HornGlowRenderer extends ModelRenderer {
return this; return this;
} }
@Override
public HornGlowRenderer addBox(float par1, float par2, float par3, int par4, int par5, int par6) { public HornGlowRenderer addBox(float par1, float par2, float par3, int par4, int par5, int par6) {
this.cubeList.add(new ModelHornGlow(this, this.textureOffsetX, this.textureOffsetY, par1, par2, par3, par4, par5, par6, 0.0F)); this.cubeList.add(new ModelHornGlow(this, this.textureOffsetX, this.textureOffsetY, par1, par2, par3, par4, par5, par6, 0.0F));
return this; return this;
} }
@Override
public void addBox(float par1, float par2, float par3, int par4, int par5, int par6, float par7) { public void addBox(float par1, float par2, float par3, int par4, int par5, int par6, float par7) {
this.cubeList.add(new ModelHornGlow(this, this.textureOffsetX, this.textureOffsetY, par1, par2, par3, par4, par5, par6, par7)); this.cubeList.add(new ModelHornGlow(this, this.textureOffsetX, this.textureOffsetY, par1, par2, par3, par4, par5, par6, par7));
} }

View file

@ -289,6 +289,7 @@ public class PlaneRenderer extends ModelRenderer {
} }
@Override
public void render(float f) { public void render(float f) {
if (!this.isHidden) { if (!this.isHidden) {
if (this.showModel) { if (this.showModel) {
@ -327,6 +328,7 @@ public class PlaneRenderer extends ModelRenderer {
} }
} }
@Override
public void renderWithRotation(float f) { public void renderWithRotation(float f) {
if (!this.isHidden) { if (!this.isHidden) {
if (this.showModel) { if (this.showModel) {
@ -354,6 +356,7 @@ public class PlaneRenderer extends ModelRenderer {
} }
} }
@Override
public void postRender(float scale) { public void postRender(float scale) {
if (!this.isHidden) { if (!this.isHidden) {
if (this.showModel) { if (this.showModel) {

View file

@ -28,6 +28,7 @@ public class LayerPonyCape implements LayerRenderer<AbstractClientPlayer> {
this.cape = new LayerCape((RenderPlayer) entity); this.cape = new LayerCape((RenderPlayer) entity);
} }
@Override
public void doRenderLayer(AbstractClientPlayer clientPlayer, float p2, float p3, float ticks, float p5, float p6, public void doRenderLayer(AbstractClientPlayer clientPlayer, float p2, float p3, float ticks, float p5, float p6,
float p7, float scale) { float p7, float scale) {
PlayerModel model = ((IRenderPony) renderer).getPony(); PlayerModel model = ((IRenderPony) renderer).getPony();