Instead of a memo
-Create a Model that returns true with IBakedModel.isGui and IBakedModel.isBuiltInRenderer -Register the Model created by ModelBakeEvent to the Item you want to draw.
-Inherit TileEntityItemStackRenderer (TEISR) and write drawing processing in renderByItem (not only TileEntity but also ItemBlock can be used) -Pass the TEISR created for Item with Item.setTileEntityItemStackRenderer
https://github.com/Otamusan/NotEnoughCompression/blob/master/src/main/java/otamusan/nec/client/itemcompressed/CompressedModel.java
https://github.com/Otamusan/NotEnoughCompression/blob/master/src/main/java/otamusan/nec/client/ModelBakeEventHandler.java
https://github.com/Otamusan/NotEnoughCompression/blob/master/src/main/java/otamusan/nec/client/blockcompressed/TileSpecialItemRendererCompressed.java
https://github.com/Otamusan/NotEnoughCompression/blob/master/src/main/java/otamusan/nec/client/ClientProxy.java#L101
Recommended Posts