Java 类net.minecraftforge.client.model.ISmartItemModel 实例源码

项目:NOVA-Core    文件:FWSmartItemModel.java   
@Override
public ISmartItemModel handleItemState(ItemStack stack) {
    Item item = ItemConverter.instance().toNova(stack);

    if (item.components.has(Renderer.class)) {
        return new FWSmartItemModel(item);
    }

    return new FWEmptyModel();
}
项目:NOVA-Core    文件:FWSmartBlockModel.java   
@Override
public ISmartItemModel handleItemState(ItemStack stack) {
    Item item = ItemConverter.instance().toNova(stack);

    if (item.components.has(Renderer.class) || block.components.has(Renderer.class)) {
        return new FWSmartBlockModel(block, item);
    }

    return new FWEmptyModel();
}
项目:NOVA-Core    文件:FWEmptyModel.java   
@Override
public ISmartItemModel handleItemState(ItemStack stack) {
    return this;
}