Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sjcl committed Feb 9, 2017
1 parent e1b3ec4 commit 1831d84
Showing 1 changed file with 2 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import com.google.common.collect.ImmutableList;
import com.kamesuta.mc.bnnwidget.render.OpenGL;
import com.kamesuta.mc.signpic.Log;
import com.kamesuta.mc.signpic.attr.CompoundAttr;
import com.kamesuta.mc.signpic.attr.prop.OffsetData;
import com.kamesuta.mc.signpic.attr.prop.RotationData.RotationGL;
Expand Down Expand Up @@ -105,6 +106,7 @@ public void renderItem(final @Nonnull TransformType type, final @Nullable ItemSt
else*/ if (type==net.minecraft.client.renderer.block.model.ItemCameraTransforms.TransformType.NONE) {
final float f = 0.0078125F; // vanilla map offset
OpenGL.glTranslatef(-size.getWidth()/2f, .5f, f);
Log.log.info("NONE");
} else if (type==net.minecraft.client.renderer.block.model.ItemCameraTransforms.TransformType.FIRST_PERSON)
OpenGL.glTranslatef(-.25f, .25f, 0f);
else if (type==net.minecraft.client.renderer.block.model.ItemCameraTransforms.TransformType.THIRD_PERSON) {
Expand All @@ -123,53 +125,9 @@ else if (type==net.minecraft.client.renderer.block.model.ItemCameraTransforms.Tr

}

// @Override
// public boolean isGui3d() {
// return super.isGui3d();
// // return false;
// }
//
// @Override
// public boolean isBuiltInRenderer() {
// return super.isBuiltInRenderer();
// // return false;
// }
//
// @Override
// public TextureAtlasSprite getTexture() {
// return super.getTexture();
// // return this.baseModel.getTexture();
// }
//
// @Override
// public @Nullable List<BakedQuad> getFaceQuads(final @Nullable EnumFacing facing) {
// return super.getFaceQuads(facing);
// // return this.baseModel.getFaceQuads(facing);
// }

@Override
public @Nullable List<BakedQuad> getGeneralQuads() {
// return super.getGeneralQuads();
return ImmutableList.of();
}

// @Override
// @Deprecated
// public @Nullable ItemCameraTransforms getItemCameraTransforms() {
// return super.getItemCameraTransforms();
// // return ItemCameraTransforms.DEFAULT;
// }
//
// @Override
// @SuppressWarnings("deprecation")
// public boolean isAmbientOcclusion() {
// return super.isAmbientOcclusion();
// // return this.baseModel.isAmbientOcclusion();
// }
//
// @Override
// public VertexFormat getFormat() {
// return super.getFormat();
// // return Attributes.DEFAULT_BAKED_FORMAT;
// }
}

0 comments on commit 1831d84

Please sign in to comment.