use of com.builtbroken.mc.client.json.render.item.ItemJsonRenderer in project Engine by VoltzEngine-Project.
the class ClientProxy method postInit.
@Override
public void postInit() {
super.postInit();
//Item that uses a model for all states
registerItemJsonRenders(new ItemJsonRenderer(), "VE-Item", "item", "tile", "block");
List<IJsonGenObject> objects = JsonContentLoader.INSTANCE.generatedObjects.get(JsonBlockProcessor.KEY);
if (objects != null && !objects.isEmpty()) {
for (IJsonGenObject object : objects) {
if (object instanceof BlockBase) {
List<ITileEventListener> listeners = ((BlockBase) object).listeners.get("placement");
if (listeners != null && !listeners.isEmpty()) {
for (ITileEventListener listener : listeners) {
if (listener instanceof RotatableListener) {
((BlockBase) object).addListener(new RotatableIconListener((BlockBase) object));
break;
}
}
}
}
}
}
}
Aggregations