private void renderItem(TileEntityInventoryBase tileEnt,
RenderItem itemRender, ItemStack stack, float x, float y, float z) {
GL11.glPushMatrix();
float scaleFactor = CoreUtil.getGhostItemScaleFactor(this.outputRender,
stack);
float rotationAngle = (float) (720.0 * (System.currentTimeMillis() & 0x3FFFL) / 0x3FFFL);
EntityItem ghostEntityItem = new EntityItem(tileEnt.getWorldObj());
ghostEntityItem.hoverStart = 0.0F;
ghostEntityItem.setEntityItemStack(stack);
GL11.glTranslatef(x, y, z);
GL11.glScalef(scaleFactor, scaleFactor, scaleFactor);
GL11.glRotatef(rotationAngle, 0.0F, 1.0F, 0.0F);
itemRender.doRender(ghostEntityItem, 0, 0, 0, 0, 0);
GL11.glPopMatrix();
}
RenderGreenhouse.java 文件源码
java
阅读 15
收藏 0
点赞 0
评论 0
项目:CountryGamer_PlantsVsZombies
作者:
评论列表
文章目录