Code Monkey home page Code Monkey logo

iitemrenderer's Introduction

IItem Renderer

  • Use GL calls during item rendering.
  • Allow animations and dynamic rendering
  • Change GUI overlay.
  • Acess to camera transformations
  • Acess to item stack's NBT
  • Acess to current partialTicks and TEISR doesn't provide any access to these things that say access

Installation

  1. Download Source
  2. Download Evil Notch Lib srg/deob jar
  3. Throw the jar into your libs folder.
  4. add "useDepAts = true" under the minecraft section in your build.gradle
  5. run gradlew setupDecompWorkspace eclipse
  6. add the libs of to your java build path in eclipse

Usage

  • Register using IItemRendererHandler.registerIItemRenderer()
  • For custom overlays override IItemRenderer#renderOverlay
  • For faster rendering without fancy graphics override fast methods inside of IItemRenderer
  • Render Enchantments IItemRendererHandler.renderModelEffect()
  • Access Entity Holder data in IItemRendererHandler
  • If your model contains random you need to cache data for enchantment support then override renderEffect() in your IItemRenderer to fully support enchantments into your dynamic random containing mode

Differences with forge 1.7.10 IItem Renderer

  • Rendering items with your IItemRenderer you call IItemRendererHandler.renderItem(itemstack,ibakedmodel) or just itemstack.
  • You can now override gui overlays it has a default override inside of the interface you can override for your object
  • Ability to render enchantments you must call it yourself in IItemRendererHandler
  • Ability to have a fast builtin version of your IItemRenderer for when graphics are fast

TODO

  • IBlockRenderer
  • Bug Fixes
  • Support for Resource Pack System 1.8+ where you can override the iitemrenderer with a static jsons model

Demos

https://minecraft.curseforge.com/projects/silk-spawners-forge-edition

iitemrenderer's People

Contributors

jredfox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sizstan

iitemrenderer's Issues

Why is this needed

Hi,
just interested why bring back an old system from 1.7 to 1.12 when people in large forums say that there are much better and performant solutions in 1.12, and even if you need a dynamic model, there are solutions for this as well in 1.12.
So please tell me an actual usecase of this mod, as I don't see any, and I am really interested to learn more about modding.

Add ability to render Enchantments

included for:
TESR
IItemRenderer

Need help:
there is no vanilla code to dynamically render an enchantment around something that isn't a IBakedModel. It is still an open issue with vanilla forge of old and new versions. I am not a rendering guy and can't write up a new method and hope it's the same as the original enchantment

Incompatible with LLib

on startup the TransformType will be null for gui thus crashing the game when in debug mode. this appears to be on their side???

My asm should also return from the entire method preventing further incompatibilities when it's detected it should no longer continue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.