Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void renderItem(TileEntityPedastal_Magic te) {
- ItemStack stack = te.getStack();
- long angle = (System.currentTimeMillis() / 10) % 360;
- if (!stack.isEmpty()) {
- RenderHelper.enableStandardItemLighting();
- GlStateManager.enableLighting();
- GlStateManager.pushMatrix();
- // Translate to the center of the block and .9 points higher
- GlStateManager.translate(.5, 1.4, .5);
- GlStateManager.scale(.4f, .4f, .4f);
- GlStateManager.rotate(angle, te.getPos().getX(), te.getPos().getY(), te.getPos().getZ());
- Minecraft.getMinecraft().getRenderItem().renderItem(stack, ItemCameraTransforms.TransformType.NONE);
- GlStateManager.popMatrix();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement